Open joansola opened 5 months ago
The end of the cmake command gives us a clue of what is possibly going on:
CMake Warning (dev) at test/CMakeLists.txt:37 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
The dependency target "gtest" of target "gtest_misc" does not exist.
Call Stack (most recent call first):
test/CMakeLists.txt:53 (manif_add_gtest)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at test/CMakeLists.txt:37 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
The dependency target "gtest" of target "gtest_rn" does not exist.
Call Stack (most recent call first):
test/rn/CMakeLists.txt:3 (manif_add_gtest)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at test/CMakeLists.txt:37 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
[...] // one block of this ^^^ for each target
Could you try to also install gmock
alongside gtest
?
OK what I did is uninstall gtest and run ccmake again. the option INSTALL_GTEST was then ON,, and now it works. Also, BUILD_GMOCK is now ON
I however now have trouble with autodiff. I will also uninstall it and proceed with this minimal setup
Don't bother with the autodiff
library for now, I haven't added sgal to that set of tests. Ceres auto diff only at the moment.
Oh, the autodiff
issue is probably because I need an old version of ceres-solver
, since local_parametrization
is deprecated in ceres in favor of teh new Manifold
class.
Oh, the
autodiff
issue is probably because I need an old version ofceres-solver
, sincelocal_parametrization
is deprecated in ceres in favor of teh newManifold
class.
Right, I haven't ported manif
to the new Ceres framework yet.
OK now I have it.
Pre-installed gtest did not work -- maybe this could be fixed
Uninstalled ceres-solver, autodiff, gtest
cmake --> make --> OK !
All tests pass except for sgal3 which is the one I wanted to check.
Thanks.
again, I think it's a ceres version issue related to
local_parametrization
being obsolete. What do you think?
Yeah manif
doesn't support the 'new' Ceres yet (#288). If you can install an older Ceres version that would work.
Otherwise I'll see to add support for autodiff
.
Compilation error
gtest/gtest.h file not found
.I install my packages using mamba which is a wrapper over conda.
Here's my setup using
mamba
(withconda
would be the same):The build setup using
cmake
then with
ccmake
I activate testing and examples. This is theccmake
setup:see that all deps are found, including
gtest
.Then compiling fails: