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 ERRORS IN THEIASFM #258

Open
Horizonzhou opened this issue Dec 28, 2020 · 2 comments
Open

BUILD ERRORS IN THEIASFM #258

Horizonzhou opened this issue Dec 28, 2020 · 2 comments

Comments

@Horizonzhou
Copy link

Check for Optimo
-- Found optimo headers: /home/tmirobot/LIB/TheiaSfM/libraries/optimo
CMake Error at libraries/vlfeat/CMakeLists.txt:3 (include):
include could not find load file:

/home/tmirobot/LIB/TheiaSfM/cmake;/home/tmirobot/LIB/glog/build/share/glog/cmake/OptimizeTheiaCompilerFlags.cmake

CMake Error at libraries/vlfeat/CMakeLists.txt:4 (optimizetheiacompilerflags):
Unknown CMake command "optimizetheiacompilerflags".

-- Configuring incomplete, errors occurred!

@johnrbent
Copy link

I also have this problem building on a new Mac using Homebrew for all dependencies.
Is it possible that something has changed with the installation of glog? The CMAKE_MODULE_PATH variable is a list, so the interpolation appends the "OptimizeTheiaCompilerFlags.cmake" filename to the last entry in the list, which is somehow related to glog (my guess is this used to not be in the list). It should be appended to the first entry in the list, where the file actually exists.

In any case, my workaround is to change line 3 in libraries/vlfeat/CMakeLists.txt from:
include("${CMAKE_MODULE_PATH}/OptimizeTheiaCompilerFlags.cmake")
to a hardcoded path to the OptimizeTheiaCompilerFlags.cmake file. So in your case it would be:
include("/home/tmirobot/LIB/TheiaSfM/cmake/OptimizeTheiaCompilerFlags.cmake")

@Horizonzhou
Copy link
Author

Horizonzhou commented Jan 18, 2022 via email

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