You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to build and run the project in a linux environment.
These are the steps I have followed (you can use the same to reproduce):
Since i am using g++ to build - I have removed __declspec(dllexport) from /include/TopotagDetection.hpp
Then I ran cmake -S . -B build in the CMakeList.txt folder
Then cmake --build build
The error I get is somewhat strange I do not understand how to debug it:
/usr/bin/ld: CMakeFiles/TopoTag.dir/test/main.cpp.o: in function `main':
main.cpp:(.text+0x4e): undefined reference to `LoadConfigParams(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: main.cpp:(.text+0xbb): undefined reference to `DetectTopotag(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<TopotagPose, std::allocator<TopotagPose> >&)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/TopoTag.dir/build.make:85: TopoTag] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/TopoTag.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
As per the error the function signature of LoadConfigParams and DetectTopotag are not matching. But I verified that they are the same.
I have also tried type casting the string input to LoadConfigParams and DetectTopotag in test/main.cpp using (std::string) but I still get the same error.
Any help would be much appreciated :)
The text was updated successfully, but these errors were encountered:
I am trying to build and run the project in a linux environment.
These are the steps I have followed (you can use the same to reproduce):
__declspec(dllexport)
from/include/TopotagDetection.hpp
cmake -S . -B build
in theCMakeList.txt
foldercmake --build build
The error I get is somewhat strange I do not understand how to debug it:
As per the error the function signature of LoadConfigParams and DetectTopotag are not matching. But I verified that they are the same.
I have also tried type casting the string input to LoadConfigParams and DetectTopotag in test/main.cpp using (std::string) but I still get the same error.
Any help would be much appreciated :)
The text was updated successfully, but these errors were encountered: