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

libmyCobotCpp.so: error adding symbols: file in wrong format #2

Open
eleramp opened this issue Sep 9, 2022 · 0 comments
Open

libmyCobotCpp.so: error adding symbols: file in wrong format #2

eleramp opened this issue Sep 9, 2022 · 0 comments

Comments

@eleramp
Copy link

eleramp commented Sep 9, 2022

Hi,

I'm trying to use the library on Ubuntu 20.04 LTS. I downloaded the .so files of the latest release (v0.05).
When I try to compile the example file, I get this error:

/usr/local/bin/cmake -S/myCobotCpp -B/myCobotCpp/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/bin/cmake -E cmake_progress_start /myCobotCpp/build/CMakeFiles /myCobotCpp/build//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/myCobotCpp/build'
make  -f CMakeFiles/myCobotCppExample.dir/build.make CMakeFiles/myCobotCppExample.dir/depend
make[2]: Entering directory '/myCobotCpp/build'
cd /myCobotCpp/build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /myCobotCpp /myCobotCpp /myCobotCpp/build /myCobotCpp/build /myCobotCpp/build/CMakeFiles/myCobotCppExample.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/myCobotCpp/build'
make  -f CMakeFiles/myCobotCppExample.dir/build.make CMakeFiles/myCobotCppExample.dir/build
make[2]: Entering directory '/myCobotCpp/build'
[ 50%] Linking CXX executable bin/myCobotCppExample
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/myCobotCppExample.dir/link.txt --verbose=1
/usr/bin/c++ -O3 -DNDEBUG -flto -fno-fat-lto-objects CMakeFiles/myCobotCppExample.dir/src/myCobotExample.cpp.o -o bin/myCobotCppExample  -Wl,-rpath,/myCobotCpp/lib: ../lib/libmyCobotCpp.so 
/usr/bin/ld: ../lib/libmyCobotCpp.so: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/myCobotCppExample.dir/build.make:107: bin/myCobotCppExample] Error 1
make[2]: Leaving directory '/myCobotCpp/build'
make[1]: *** [CMakeFiles/Makefile2:153: CMakeFiles/myCobotCppExample.dir/all] Error 2
make[1]: Leaving directory '/myCobotCpp/build'
make: *** [Makefile:163: all] Error 2

Could you provide details about the system setup this library is supposed to run on?

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