robot-control-stack
robot-control-stack copied to clipboard
Issues during installation
Hello everyone,
when installing with pip install -e . at the AIR-Tower (Ubuntu 22), I run into the following error:
` CMake Error at /tmp/pip-build-env-gsky0r0x/normal/lib/python3.10/site-packages/cmake/data/share/cmake-3.29/Modules/CMakeTestCXXCompiler.cmake:73 (message): The C++ compiler
"/usr/bin/clang++-14"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/home/blei/robot-control-stack/build/CMakeFiles/CMakeScratch/TryCompile-xH2kJx'
Run Build Command(s): /tmp/pip-build-env-gsky0r0x/normal/lib/python3.10/site-packages/ninja/data/bin/ninja -v cmTC_cd9cb
[1/2] /usr/bin/clang++-14 -MD -MT CMakeFiles/cmTC_cd9cb.dir/testCXXCompiler.cxx.o -MF CMakeFiles/cmTC_cd9cb.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_cd9cb.dir/testCXXCompiler.cxx.o -c /home/blei/robot-control-stack/build/CMakeFiles/CMakeScratch/TryCompile-xH2kJx/testCXXCompiler.cxx
[2/2] : && /usr/bin/clang++-14 CMakeFiles/cmTC_cd9cb.dir/testCXXCompiler.cxx.o -o cmTC_cd9cb && :
FAILED: cmTC_cd9cb
: && /usr/bin/clang++-14 CMakeFiles/cmTC_cd9cb.dir/testCXXCompiler.cxx.o -o cmTC_cd9cb && :
/usr/bin/ld: cannot find -lstdc++: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
`
Any idea how to fix this? :)
Greetings!
On ubuntu 22.04, clang-14 is missing the dependency on libstc++-12-dev.
Either install libstcd++-12-dev or use gcc.