Errors happened during "make PythonAPI" when building Carla 0.9.12 on Ubuntu 20.04 #6145
Xiushishen
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
roar-remote@roarremote:
$ cd carla//carla$ make PythonAPIroar-remote@roarremote:
Setup.sh: llvm-8.0 already installed.
Setup.sh: boost-1.72.0-c8 already installed.
Setup.sh: rpclib-v2.2.1_c5-c8 already installed.
Setup.sh: gtest-1.8.1-c8 already installed.
Setup.sh: recast-0b13b0-c8 already installed.
Setup.sh: Libpng already installed.
Setup.sh: Xerces-c already installed.
Setup.sh: Sqlite already installed.
Setup.sh: PROJ already installed.
Setup.sh: Patchelf already installed.
Setup.sh: CARLA version 0.9.12-dirty.
Setup.sh: Generating CMake configuration files.
Setup.sh: Success!
BuildLibCarla.sh: Building LibCarla "Client.Release" configuration.
[1/2] Building CXX object LibCarla/cma...ource/test/common/test_streaming.cpp.o
FAILED: LibCarla/cmake/test/CMakeFiles/libcarla_test_client_release.dir///source/test/common/test_streaming.cpp.o
/usr/bin/clang++-10 -DBOOST_ERROR_CODE_HEADER_ONLY -DLIBCARLA_ENABLE_PROFILER -DLIBCARLA_IMAGE_WITH_PNG_SUPPORT=true -DLIBCARLA_TEST_CONTENT_FOLDER="/home/roar-remote/carla/Build/test-content" -DLIBCARLA_WITH_GTEST -I../../LibCarla/cmake/../source -I../../LibCarla/cmake/../source/third-party -I../../LibCarla/cmake/../source/test -isystem ../boost-1.72.0-c8-install/include -isystem ../rpclib-v2.2.1_c5-c8-libstdcxx-install/include -isystem ../gtest-1.8.1-c8-libstdcxx-install/include -isystem ../libpng-1.6.37-install/include -std=c++14 -pthread -fPIC -Wall -Wextra -Wpedantic -Wdeprecated -Wshadow -Wuninitialized -Wunreachable-code -Wpessimizing-move -Wold-style-cast -Wnull-dereference -Wduplicate-enum -Wnon-virtual-dtor -Wheader-hygiene -Wconversion -Wfloat-overflow-conversion -std=c++14 -pthread -fPIC -Wall -Wextra -Wpedantic -Wdeprecated -Wshadow -Wuninitialized -Wunreachable-code -Wpessimizing-move -Wold-style-cast -Wnull-dereference -Wduplicate-enum -Wnon-virtual-dtor -Wheader-hygiene -Wconversion -Wfloat-overflow-conversion -std=c++14 -pthread -fPIC -Wall -Wextra -Wpedantic -Wdeprecated -Wshadow -Wuninitialized -Wunreachable-code -Wpessimizing-move -Wold-style-cast -Wnull-dereference -Wduplicate-enum -Wnon-virtual-dtor -Wheader-hygiene -Wconversion -Wfloat-overflow-conversion -std=c++14 -pthread -fPIC -Wall -Wextra -Wpedantic -Wdeprecated -Wshadow -Wuninitialized -Wunreachable-code -Wpessimizing-move -Wold-style-cast -Wnull-dereference -Wduplicate-enum -Wnon-virtual-dtor -Wheader-hygiene -Wconversion -Wfloat-overflow-conversion -std=c++14 -pthread -fPIC -Wall -Wextra -Wpedantic -Wdeprecated -Wshadow -Wuninitialized -Wunreachable-code -Wpessimizing-move -Wold-style-cast -Wnull-dereference -Wduplicate-enum -Wnon-virtual-dtor -Wheader-hygiene -Wconversion -Wfloat-overflow-conversion -std=c++14 -pthread -fPIC -Wall -Wextra -Wpedantic -Wdeprecated -Wshadow -Wuninitialized -Wunreachable-code -Wpessimizing-move -Wold-style-cast -Wnull-dereference -Wduplicate-enum -Wnon-virtual-dtor -Wheader-hygiene -Wconversion -Wfloat-overflow-conversion -std=c++14 -pthread -fPIC -Wall -Wextra -Wpedantic -Wdeprecated -Wshadow -Wuninitialized -Wunreachable-code -Wpessimizing-move -Wold-style-cast -Wnull-dereference -Wduplicate-enum -Wnon-virtual-dtor -Wheader-hygiene -Wconversion -Wfloat-overflow-conversion -O3 -DNDEBUG -MD -MT LibCarla/cmake/test/CMakeFiles/libcarla_test_client_release.dir///source/test/common/test_streaming.cpp.o -MF LibCarla/cmake/test/CMakeFiles/libcarla_test_client_release.dir///source/test/common/test_streaming.cpp.o.d -o LibCarla/cmake/test/CMakeFiles/libcarla_test_client_release.dir///source/test/common/test_streaming.cpp.o -c ../../LibCarla/source/test/common/test_streaming.cpp
../../LibCarla/source/test/common/test_streaming.cpp:58:3: error: reference to 'Server' is ambiguous
Servertcp::Server srv(io.service, TESTING_PORT);
^
../../LibCarla/cmake/../source/carla/streaming/Server.h:20:9: note: candidate found by name lookup is 'carla::streaming::Server'
class Server {
^
../../LibCarla/cmake/../source/carla/streaming/low_level/Server.h:25:9: note: candidate found by name lookup is 'carla::streaming::low_level::Server'
class Server {
^
../../LibCarla/source/test/common/test_streaming.cpp:63:3: error: reference to 'Client' is ambiguous
Clienttcp::Client c;
^
../../LibCarla/cmake/../source/carla/streaming/Client.h:23:9: note: candidate found by name lookup is 'carla::streaming::Client'
class Client {
^
../../LibCarla/cmake/../source/carla/streaming/low_level/Client.h:27:9: note: candidate found by name lookup is 'carla::streaming::low_level::Client'
class Client {
^
../../LibCarla/source/test/common/test_streaming.cpp:93:3: error: reference to 'Server' is ambiguous
Servertcp::Server srv(io.service, TESTING_PORT);
^
../../LibCarla/cmake/../source/carla/streaming/Server.h:20:9: note: candidate found by name lookup is 'carla::streaming::Server'
class Server {
^
../../LibCarla/cmake/../source/carla/streaming/low_level/Server.h:25:9: note: candidate found by name lookup is 'carla::streaming::low_level::Server'
class Server {
^
../../LibCarla/source/test/common/test_streaming.cpp:96:3: error: reference to 'Client' is ambiguous
Clienttcp::Client c;
^
../../LibCarla/cmake/../source/carla/streaming/Client.h:23:9: note: candidate found by name lookup is 'carla::streaming::Client'
class Client {
^
../../LibCarla/cmake/../source/carla/streaming/low_level/Client.h:27:9: note: candidate found by name lookup is 'carla::streaming::low_level::Client'
class Client {
^
4 errors generated.
ninja: build stopped: subcommand failed.
make: *** [Util/BuildTools/Linux.mk:124: LibCarla.client.release] Error 1
roar-remote@roarremote:~/carla$
I am using Ubuntu 20.04 to build Carla 0.9.12. As clang-8 is not supported, so I have changed all the parameters in Setup.sh from clang version 8 to clang version 10. Also, I changed the XERCESC_VERSION = 3.2.4. However, "make PythonAPI" still doesn't work.
Any ideas or help would be greatly appreciated. Thank you!!!!
Beta Was this translation helpful? Give feedback.
All reactions