AliceVision
AliceVision copied to clipboard
debian/testing: CMake KO
Reporting here that cmake fails on debian/testing. Is there a workaround?
>> cmake -DCMAKE_BUILD_TYPE=Release -DALICEVISION_BUILD_TESTS=ON -DALICEVISION_BUILD_EXAMPLES=ON ..
...
-- Failed to find Ceres - Missing required Ceres dependency: glog.
CMake Error at src/CMakeLists.txt:392 (find_package):
Found package configuration file:
/usr/lib/x86_64-linux-gnu/cmake/Ceres/CeresConfig.cmake
but it set Ceres_FOUND to FALSE so package "Ceres" is considered to be NOT
FOUND.
>> sudo apt-get install libopenexr-dev libopenimageio-dev openimageio-tools libceres-dev libimath-dev libgoogle-glog-dev libgoogle-glog0v6
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libopenexr-dev is already the newest version (3.1.5-4).
libopenimageio-dev is already the newest version (2.4.7.1+dfsg-2).
openimageio-tools is already the newest version (2.4.7.1+dfsg-2).
libceres-dev is already the newest version (2.1.0+really2.1.0+dfsg-1).
libimath-dev is already the newest version (3.1.6-1).
libgoogle-glog-dev is already the newest version (0.6.0-2).
libgoogle-glog0v6 is already the newest version (0.6.0-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
>> dpkg -L libgoogle-glog-dev | grep cmake
14:/usr/lib/x86_64-linux-gnu/cmake
15:/usr/lib/x86_64-linux-gnu/cmake/glog
16:/usr/lib/x86_64-linux-gnu/cmake/glog/glog-config-version.cmake
17:/usr/lib/x86_64-linux-gnu/cmake/glog/glog-config.cmake
18:/usr/lib/x86_64-linux-gnu/cmake/glog/glog-modules.cmake
19:/usr/lib/x86_64-linux-gnu/cmake/glog/glog-targets-release.cmake
20:/usr/lib/x86_64-linux-gnu/cmake/glog/glog-targets.cmake
>> export CMAKE_MODULE_PATH="/usr/lib/x86_64-linux-gnu/cmake/glog:${CMAKE_MODULE_PATH}"
>> rm CMakeCache.txt
>> cmake -DCMAKE_BUILD_TYPE=Release -DALICEVISION_BUILD_TESTS=ON -DALICEVISION_BUILD_EXAMPLES=ON ..
...
-- Failed to find Ceres - Missing required Ceres dependency: glog.
CMake Error at src/CMakeLists.txt:392 (find_package):
Found package configuration file:
/usr/lib/x86_64-linux-gnu/cmake/Ceres/CeresConfig.cmake
but it set Ceres_FOUND to FALSE so package "Ceres" is considered to be NOT
FOUND.
Also noticed that
>> cmake -DCMAKE_BUILD_TYPE=Release -DALICEVISION_BUILD_TESTS=ON -DALICEVISION_BUILD_EXAMPLES=ON ..
...
-- OpenMP found.
CMake Error at src/CMakeLists.txt:284 (message):
Failed to find Boost.
That is strange indeed. I have successfully compiled branch cmake/allInOne/upgrade right now on Fedora 37, because of problems with default develop, but I compiled Ceres by myself - using glog-devel from RPM of version 0.3.5... maybe that is useful information to you. So my advice is to try to build that branch. If that doesn't help, try to compile glog and ceres by yourself and if that also doesn't help, try a lower version of glog than 0.6. That is all I can advice to you.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.