-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
collect2: error: ld returned 1 exit status visualization/tools/CMakeFiles/pcl_viewer.dir/build.make:297: recipe for target 'bin/pcl_viewer' failed make[2]: *** [bin/pcl_viewer] Error 1 CMakeFiles/Makefile2:1367: recipe for target 'visualization/tools/CMakeFiles/pcl_viewer.dir/all' failed make[1]: *** [visualization/tools/CMakeFiles/pcl_viewer.dir/all] Error 2 Makefile:162: recipe for target 'all' failed make: *** [all] Error 2 #6171
Comments
Ubuntu18.04+vtk8.2.0+pcl1.9.1 |
@kingyongyongzz Seems to be a similar problem as in #5888 and #3548 Please see there for further information and possible solutions |
I tried the solution you mentioned as in #5888 and #3548 but it don't work. /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libSM.so:对‘uuid_generate@UUID_1.0’未定义的引用 |
I already solved this problem( this issue show up because the conflict between anaconda and pcl ),thanks for helping!@mvieth |
@kingyongyongzz Glad to hear that it is solved. Could you share how you fixed the conflict between anaconda and pcl? (In case anyone else has the same problem in the future) |
Sure! A conflict with the dynamic library in the environment due to anaconda3 being installed in the environment. /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to Terminal input : then input: output: Look at the versions used by each library separately output:-rw-rw-r-- 2 ls ls 29830 10月 6 2021 libuuid.a You can see that libuuid.so.1 in the system version actually points to version 1.3.0, while libuuid.so.1 in the Anaconda version actually points to version 1.0.0, and the difference in version results in an undefined reference. Then CMake . Done!!!! |
Scanning dependencies of target pcl_viewer
[ 36%] Building CXX object visualization/tools/CMakeFiles/pcl_viewer.dir/pcd_viewer.cpp.o
[ 37%] Linking CXX executable ../../bin/pcl_viewer
/usr/bin/ld: warning: /usr/lib/gcc/x86_64-linux-gnu/7/libstdc++.so: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001
/usr/bin/ld: warning: /usr/lib/gcc/x86_64-linux-gnu/7/libstdc++.so: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libSM.so:对‘uuid_generate@UUID_1.0’未定义的引用
/home/wzy/anaconda3/lib/libfontconfig.so.1:对‘FT_Done_MM_Var’未定义的引用
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libSM.so:对‘uuid_unparse_lower@UUID_1.0’未定义的引用
collect2: error: ld returned 1 exit status
visualization/tools/CMakeFiles/pcl_viewer.dir/build.make:297: recipe for target 'bin/pcl_viewer' failed
make[2]: *** [bin/pcl_viewer] Error 1
CMakeFiles/Makefile2:1367: recipe for target 'visualization/tools/CMakeFiles/pcl_viewer.dir/all' failed
make[1]: *** [visualization/tools/CMakeFiles/pcl_viewer.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
Please help!
The text was updated successfully, but these errors were encountered: