AliceVision icon indicating copy to clipboard operation
AliceVision copied to clipboard

debian/testing: CMake KO

Open fghoussen opened this issue 1 year ago • 1 comments

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.


fghoussen avatar Mar 18 '23 11:03 fghoussen