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

How to build on linux? #3

Open
VineetTambe opened this issue Dec 16, 2022 · 0 comments
Open

How to build on linux? #3

VineetTambe opened this issue Dec 16, 2022 · 0 comments

Comments

@VineetTambe
Copy link

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):

  1. Since i am using g++ to build - I have removed __declspec(dllexport) from /include/TopotagDetection.hpp
  2. Then I ran cmake -S . -B build in the CMakeList.txt folder
  3. 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 :)

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

1 participant