-
Notifications
You must be signed in to change notification settings - Fork 148
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
Issue with compiling run_fixed_size.cc #340
Comments
Can you double-check your fmt and spdlog versions? I see fmt::v6, we only support fmt 8 at this point. |
It was on fmt version 6 yes. I removed and reinstalled using sudo apt-get install libfmt-dev. fmt version is now version 9.1.0 but the issue is still not resolved. Is there an email that I can liaise with on this? |
Could you post the console output? |
SymForce is not compatible with fmt 6 or fmt 9, we require fmt You should build a commit after f9c21ad if you aren't doing that already (if you're building something after that, I'm confused how the build allowed you to attempt to use fmt 6 at all). After that commit this should just work, and will use a compatible version of fmt if it's installed, and download it if not |
What version of python are you using? Can you post the full traceback / error message? |
I am currently on python 3.8.10. |
I tried to build from source again after cloning the repo. I attempted cmake .. but the below is what I encounter cmake ..
but this file does not exist. Possible reasons include:
but not all the files it references. Call Stack (most recent call first): -- Configuring incomplete, errors occurred! |
This seems like you've previously installed fmt and removed it but left the old cmake files? Maybe the find_package is using the old FindFmt.cmake and it's looking for the wrong lib. Just a guess. |
I managed rebuild somehow and am able to import cc_sym (I was not able to do that before). However, when I tried to compile (I'm not sure if I am doing it correctly) I got the below message: Starting build... Build finished with error(s).
It seems to be finding for core.h from /usr/local/include/spdlog but I have checked and core.h is in Somehow the fmt.h file they are using is also from /usr/local/include/spdlog/fmt since it is the default place to search? Is there a way to solve this? |
Also in run_fixed_size.h header file, I am getting the below error message: #include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (/home/ckengjwe/dso/symforce/symforce/benchmarks/robot_3d_localization/robot_3d_localization_benchmark.cc). |
This seems like you have a slightly messed up environment. If you have fmt or spdlog installed system-wide, then find_package will find them first. It is difficult to help debug your build failure through GitHub issues. May I suggest you start a clean build from a clean environment? For example, you could either remove all system-wide installation of fmt/spdlog (including all their cmake stuff in /usr/local/share or /usr/local/cmake) or you could do it in a conda environment. |
Do I have to write a separate cmake file to execute run_fixed_size.cc? What is the correct way to build and execute the example? |
When you run cmake you need to enable examples (which is ON by default) |
Hi all, I have some issues when trying to run the run_fixed_size.cc
#include <symforce/examples/robot_3d_localization/gen/measurements.h>
I then tried to just do #include "./gen/measurements.h" and the above error didn't pop up anymore. However, many more errors popped up as shown below
I would appreciate any help on the above two matters :)
The text was updated successfully, but these errors were encountered: