-
Notifications
You must be signed in to change notification settings - Fork 807
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
Unknown CMake command "gtsamAddExamplesGlob" #559
Comments
Could be related to #557 ? Ping @jlblancoc |
I think it is not, reverted to previous version the issue is still there. thanks! |
@gregsensem Examples are not intended to be used directly by instructing CMake to use their directories as a SOURCE_DIR, I think that's what you are trying to do, right? Build examples by compiling gtsam from its root directory instead. To bootstrap your own example / program, use as a template this directory instead: |
Running an example should just be possible using 'make Blahexample.run` in the build directory. |
Thanks Jose! Exactly like you said, I made a mistake to try to build examples from example's directory. Thank you and have a nice weeked! @jlblancoc |
Thanks Professor! I am reading your "Factor Graphs for Robot Perception" and testing with GTSAM library at the moment. It is really nice material to learn Factor Graph and really handy library as I am trying to apply pose graph optimization in my visual SLAM project. Thanks for your team's effort for bringing this great work to us. Have a nice weekend! @dellaert |
I encountered this error : Unknown CMake command "gtsamAddExamplesGlob" when I try to cmake and build examples. Does any one have similar issue? thanks!
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at CMakeLists.txt:5 (gtsamAddExamplesGlob):
Unknown CMake command "gtsamAddExamplesGlob".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
See also "/home/peter/Downloads/gtsam-develop/examples/build/CMakeFiles/CMakeOutput.log".
The text was updated successfully, but these errors were encountered: