carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
10.6k stars 3.41k forks source link

make PythonAPI repeated error [/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang.] #7516

Closed MOHAMMEDHUSSEIN94 closed 1 week ago

MOHAMMEDHUSSEIN94 commented 2 weeks ago

CARLA version: 0.9.15 Platform/OS: Ubuntu 22.04 Problem you have experienced: when I run [make PythonAPI] I get [CMake Error at /usr/share/cmake-3.22/Modules/CMakeDetermineCCompiler.cmake:49 (message): Could not find compiler set in environment variable CC:

/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang. Call Stack (most recent call first): CMakeLists.txt:2 (project)

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! See also "/home/mohammed/carla/Build/rpclib-v2.2.1_c5-c10-libcxx-build/CMakeFiles/CMakeOutput.log". make: *** [Util/BuildTools/Linux.mk:142: setup] Error 1 ] I added [export UE4_ROOT=~/UnrealEngineCarla] at the end of bashrc and then ran source and used echo $UE4_ROOT to make sure the directory is that of unreal engine and still getting the same error What you expected to happen: build to succeed Steps to reproduce: do not know Other information (documentation I consulted, workarounds you tried): tried all documentations , github, stackoverflow, gemini and chat gpt 4

Blyron commented 2 weeks ago

Please, do a make clean a retry following all steps in the guide https://carla.readthedocs.io/en/latest/build_linux/

MOHAMMEDHUSSEIN94 commented 2 weeks ago

Please, do a make clean a retry following all steps in the guide https://carla.readthedocs.io/en/latest/build_linux/

thanks.. I have tried that and did not work.. actually I have followed all steps in the guide and that was the result image

Blyron commented 2 weeks ago

it seems you haven't installed libc++

MOHAMMEDHUSSEIN94 commented 2 weeks ago

libc++

no it is installed and I am getting the same error. image

by the way I am using the latest unreal engine named carla(default) 4.26.2 cloned from your repository and set the path of UE4_ROOT to be its directory through bashrc and sourced bashrc