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
libX11.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status #29
Comments
I have the same problem... |
https://www.google.co.uk/search?q=undefined+reference+to+symbol+%27XInitThreads%27 Leads to: "undefined reference to symbol" is a linker error, not a compiler error. If you get this message, the compiler has already finished compiled the file into an object file, but is unable to find the shared library which contains the function to link the object file into an executable. Using gcc, it generally means you have to add some -l flags, like so:
You can try adding it in the CMakesList.txt that references live_slam: |
Please explain in detail, where add libx11, but rather correct, please build rules because lsd-slam is not going on any configuration (ROS + Ubuntu) |
on Ubuntu 14.04 helped reinstall libx11* |
another solution should be to add X11 to the library list: target_link_libraries(lsdslam ${FABMAP_LIB} g2o_core g2o_stuff csparse cxsparse g2o_solver_csparse g2o_csparse_extension g2o_types_sim3 g2o_types_sba X11) in line 89 of lsd_slam_core/CMakeLists.txt. Please let me know if / what helped :) |
Thanks Jakob. Your second solution worked. Thanks others for their replies as well. Sorry for the late reply. I tried to uninstall X11 and reinstall, in the process I broke my Ubuntu installation :-). Hence reinstalled Ubuntu and everything else, got the above error again. Compilation was success after applying the fix by Jakob! We could close the issue now! |
to avoid: undefined reference to symbol 'XMapWindow' libX11.so error adding symbols: DSO missing from command line https://stackoverflow.com/questions/46028923/dso-missing-from-command-line-in-libx11 tum-vision/lsd_slam#29
Hi, I have added X11 but still I am facing the same error.
|
During compilation lsd_slam(ROS indigo + ubuntu 14.04), I get following error.
Linking CXX executable ../bin/live_slam
/usr/bin/ld: CMakeFiles/live_slam.dir/src/main_live_odometry.cpp.o: undefined reference to symbol 'XInitThreads'
//usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [../bin/live_slam] Error 1
make[3]: Leaving directory /home/user/ros_workspace/lsd_slam/lsd_slam_core/build' make[2]: *** [CMakeFiles/live_slam.dir/all] Error 2 make[2]: Leaving directory/home/user/ros_workspace/lsd_slam/lsd_slam_core/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/user/ros_workspace/lsd_slam/lsd_slam_core/build'
The text was updated successfully, but these errors were encountered: