Skip to content

PlusLib build issues with StealthLink #957

Description

@mkomaiha

Hi,

I am having issues using PlusBuild. I am using the following cmake settings:

cmake ../PlusBuild \
  -DSTEALTHLINK_ROOT_DIR=/StealthPyCLinkLibs \
  -DPLUS_USE_STEALTHLINK=ON \
  -DCMAKE_CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=0" \
  -DBUILD_TESTING=OFF \
  -DCMAKE_BUILD_TYPE=Debug

I get these errors:

/bin/ld: /home/mkomaiha/opt/PlusBuild-bin/bin/libvtkPlusDataCollection.so: undefined reference to `MNavStealthLink::StealthServer::StealthServer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
/bin/ld: /home/mkomaiha/opt/PlusBuild-bin/bin/libvtkPlusDataCollection.so: undefined reference to `MNavStealthLink::Exam::getExamData(MNavStealthLink::StealthServer&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, MNavStealthLink::Error&)'
/bin/ld: /home/mkomaiha/opt/PlusBuild-bin/bin/libvtkPlusDataCollection.so: undefined reference to `boost::system::system_category()'
/bin/ld: /home/mkomaiha/opt/PlusBuild-bin/bin/libvtkPlusDataCollection.so: undefined reference to `MNavStealthLink::StealthServer::get(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, MNavStealthLink::DataItem&, MNavStealthLink::DateTime&, MNavStealthLink::Error&)'
/bin/ld: /home/mkomaiha/opt/PlusBuild-bin/bin/libvtkPlusDataCollection.so: undefined reference to `boost::system::generic_category()'
collect2: error: ld returned 1 exit status
make[2]: *** [src/PlusDataCollection/CMakeFiles/PlusVersion.dir/build.make:291: /home/mkomaiha/opt/PlusBuild-bin/bin/PlusVersion] Error 1
make[1]: *** [CMakeFiles/Makefile2:1677: src/PlusDataCollection/CMakeFiles/PlusVersion.dir/all] Error 2

I think it has to do with "-D_GLIBCXX_USE_CXX11_ABI=0" not getting passed to the PlusLib cmake file. However, when I manually add it to the CXX flags in PlusLib-bin and try to make again I get different issues:

/bin/ld: CMakeFiles/EditSequenceFile.dir/Tools/EditSequenceFile.cxx.o: in function `MixTrackedFrameLists(vtkIGSIOTrackedFrameList*, std::vector<std::string, std::allocator<std::string> >)':
/home/mkomaiha/opt/PlusBuild-bin/PlusLib/src/PlusCommon/Tools/EditSequenceFile.cxx:147: undefined reference to `igsioTrackedFrame::GetCustomFields()'
...
/bin/ld: /home/mkomaiha/opt/PlusBuild-bin/bin/libvtkPlusCommon.so: undefined reference to `vtksys::SystemTools::GetCurrentDateTime(char const*)'
/bin/ld: /home/mkomaiha/opt/PlusBuild-bin/bin/libvtkPlusCommon.so: undefined reference to `vtksys::SystemTools::FileIsFullPath(std::string const&)'
/bin/ld: /home/mkomaiha/opt/PlusBuild-bin/bin/libvtkPlusCommon.so: undefined reference to `vtksys::SystemTools::GetCurrentWorkingDirectory(bool)'
collect2: error: ld returned 1 exit status
make[2]: *** [src/PlusCommon/CMakeFiles/EditSequenceFile.dir/build.make:283: /home/mkomaiha/opt/PlusBuild-bin/bin/EditSequenceFile] Error 1
make[1]: *** [CMakeFiles/Makefile2:715: src/PlusCommon/CMakeFiles/EditSequenceFile.dir/all] Error 2

Any help would be much appreciated!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions