Open Oussamaaat opened 3 days ago
I am not familiar with cl
. Any reason you are not using CMake and then building the examples via the documented process?
It seems like in your process, the linker doesn't know the path to the GTSAM files for compilation.
Thank you for your answer !
My goal is to know if i compiled succesfully and enabling matlab wrapper, but i'm not familiar with building c++ apps.. I tried using the steps provided with the visual studio GUI but i failed.. so i used the following steps which seems to build without any errors but i have to check :
I installed boost cmake tbb and mkl
then :
git clone https://github.com/borglab/gtsam.git
cd gtsam
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DGTSAM_BUILD_UNSTABLE:OPTION=OFF DGTSAM_INSTALL_MATLAB_TOOLBOX:OPTION=ON -G "Visual Studio 17 2022" -A x64
cmake --build . --config Release
cmake --install . --config Release
Then the command i mentioned before to run the example
Thank you for your time
After the above steps, you should be able to run
cl examples/CameraResectioning
which is generated as an executable in the build directory.
Note: You may have to add the correct extension, e.g. cl examples/CameraResectioning.exe
.
I still have the same issue, i think it's related to the paths of the different .h files but i'm not sure how to solve it, for example :
when i 1st run i get fatal error C1083 'gtsam/config.h' : No such file or directory
which is the relative path in the 19th of CameraResectioning.cpp, when i change this path to #include "../build/gtsam/config.h"
he finds the confing.h but not symbol.h so i changed the 20th line to #include "../gtsam/inference/symbol.h"
but then he cant find the Testable.h file even if i added a #include "../gtsam/base/Testable.h"
which seems very werid..
can you please tell me where the CameraResectioning.cpp, config.h and Tetable.h for examlple should be located after building and installing so i'll make sure i'm running in the correct folders with the correct include paths ?
Thanks again
I don't know if it is related but i found out that several dependencies were not found on my machine when trying to use gtsam_wrapper.mexw64 with matlab :
Description
I get the following error when trying to run the example :
Steps to reproduce
cl /EHsc CameraResectioning.cpp
in the examples folder in powershellExpected behavior
I expect it to generate a .exe file
Environment
Windows 10, last version of gtsam built with visual studio 2022
Thanks in advance !