Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build with openexr 3 #496

Open
pgajdos opened this issue Aug 11, 2021 · 2 comments
Open

build with openexr 3 #496

pgajdos opened this issue Aug 11, 2021 · 2 comments

Comments

@pgajdos
Copy link

pgajdos commented Aug 11, 2021

Hi,

could you please consider building against OpenEXR 3? Patches to fix cmake rules exists already, e. g.:
https://src.fedoraproject.org/rpms/vigra/blob/rawhide/f/vigra-openexr3.patch

Thanks

@ChrisOfBristol
Copy link

ChrisOfBristol commented Nov 21, 2021

building against OpenEXR 3

Is needed for my Flatpak project too please. I have a version patched by Fedora, but it still fails.

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
Building module vigra in /home/chris/.flatpak-builder/build/vigra-9
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.21)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
CMake Warning (dev) at examples/tutorial/CMakeLists.txt:23 (ADD_EXECUTABLE):
  Policy CMP0115 is not set: Source file extensions must be explicit.  Run
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  File:

    /run/build/vigra/examples/tutorial/graph_agglomerative_clustering.cxx
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at examples/tutorial/CMakeLists.txt:23 (ADD_EXECUTABLE):
  Policy CMP0115 is not set: Source file extensions must be explicit.  Run
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  File:

    /run/build/vigra/examples/tutorial/smooth_blockwise.cxx
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    WITH_OPENEXR


-- Build files have been written to: /run/build/vigra
[1/22] Building CXX object impex/CMakeFiles/vigraimpex.dir/bmp.o
FAILED: impex/CMakeFiles/vigraimpex.dir/bmp.o 
/usr/bin/c++   -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -MD -MT impex/CMakeFiles/vigraimpex.dir/bmp.o -MF impex/CMakeFiles/vigraimpex.dir/bmp.o.d -o impex/CMakeFiles/vigraimpex.dir/bmp.o -c /run/build/vigra/impex/bmp.cxx
/run/build/vigra/impex/bmp.cxx:38:10: fatal error: vigra/config.hxx: No such file or directory
   38 | #include "vigra/config.hxx"
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Error: module vigra: Child process exited with code 1

@ChrisOfBristol
Copy link

ChrisOfBristol commented Dec 4, 2021

could you please consider building against OpenEXR 3?

If desperate you could try this yourself https://ask.fedoraproject.org/t/vigra-update/18853 post-2 says:

sudo dnf -y install fedpkg
fedpkg clone --anonymous vigra
cd vigra
fedpkg prep
This will create a vigra-1.11.1 sub-directory which will have all of the Fedora patches applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants