AliceVision
AliceVision copied to clipboard
Could NOT find opengv
I tryed to build AliceVision using:
cmake .. -DCMAKE_TOOLCHAIN_FILE=D:\Programming\Mehsroom\vcpkg\scripts\buildsystems\vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows -DOPENGV_DIR=D:\Programming\Mehsroom\opengv -G "Visual Studio 15 2017" -A x64 -T host=x64
But CMAKE is not able to find opengv that I cloned using:
git clone https://github.com/alicevision/opengv.git --branch=cmake_fix_install
So far I followed INSTALL.md but now I am stuck. Did I include it wrongly or why is it not finding opengv?
-DOPENGV_DIR should point to the directory containing the cmake config where you installed opengv.
In opengv you should have done something like
cmake .. -DCMAKE_INSTALL_PREFIX:PATH="/path/where/to/install"
make install
then in alicevision you should use -DOPENGV_DIR:PATH=/path/where/to/install/lib/cmake/opengv-1.0 (check the path contains the cmake config files)
Okay I now did the following:
git clone https://github.com/alicevision/opengv.git --branch=cmake_fix_install
cd opengv
mkdir build
cd build
cmake ..
And then in AliceVision/build
cmake .. -DCMAKE_TOOLCHAIN_FILE=D:\Programming\Mehsroom\vcpkg\scripts\buildsystems\vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows -DOPENGV_DIR:PATH=D:\Programming\Mehsroom\opengv\build -G "Visual Studio 15 2017" -A x64 -T host=x64
But I still get the same error and make install is not a known command
-DOPENGV_DIRshould point to the directory containing the cmake config where you installed opengv. In opengv you should have done something likecmake .. -DCMAKE_INSTALL_PREFIX:PATH="/path/where/to/install" make installthen in alicevision you should use
-DOPENGV_DIR:PATH=/path/where/to/install/lib/cmake/opengv-1.0(check the path contains the cmake config files)
in opengv you have to do from the build directory you created
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=D:\Programming\Mehsroom\opengv\build\install
make install
and then in alicevision use -DOPENGV_DIR:PATH=D:\Programming\Mehsroom\opengv\build\install\lib\cmake\opengv-1.0
did you fix this? I'm having the same problem
No unfortuonetly not
try with -Dopengv_DIR instead of -DOPENGV_DIR