When following the build instruction for Linux from this page, I encounter the following error when running ./build.sh for AirSim (after running ./setup.sh):
yann@yann-ub:~/Desktop/git/AirSim$ ./build.sh
+ debug=false
+ gcc=false
+ [[ 0 -gt 0 ]]
+ RPC_VERSION_FOLDER=rpclib-2.3.0
+ '[' '!' -d ./external/rpclib/rpclib-2.3.0 ']'
+ '[' -d ./cmake_build ']'
++ which cmake
+ CMAKE=/home/yann/.local/bin/cmake
+ false
+ build_dir=build_release
++ uname
+ '[' Linux == Darwin ']'
+ false
+ export CC=clang-8
+ CC=clang-8
+ export CXX=clang++-8
+ CXX=clang++-8
+ [[ -d ./AirLib/deps/eigen3/Eigen ]]
+ echo 'putting build in build_release folder, to clean, just delete the directory...'
putting build in build_release folder, to clean, just delete the directory...
+ [[ -f ./cmake/CMakeCache.txt ]]
+ [[ -d ./cmake/CMakeFiles ]]
+ [[ ! -d build_release ]]
+ mkdir -p build_release
+ pushd build_release
+ false
+ folder_name=Release
+ /home/yann/.local/bin/cmake ../cmake -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is Clang 8.0.0
-- The CXX compiler identification is Clang 8.0.0
-- Check for working C compiler: /usr/bin/clang-8
-- Check for working C compiler: /usr/bin/clang-8 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++-8
-- Check for working CXX compiler: /usr/bin/clang++-8 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
CMake Error at cmake-modules/CommonSetup.cmake:61 (find_package):
Could not find a package configuration file provided by "LLVM" with any of
the following names:
LLVMConfig.cmake
llvm-config.cmake
Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
"LLVM_DIR" to a directory containing one of the above files. If "LLVM"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
rpclib_wrapper/CMakeLists.txt:6 (CommonSetup)
-- Configuring incomplete, errors occurred!
See also "/home/yann/Desktop/git/AirSim/build_release/CMakeFiles/CMakeOutput.log".
See also "/home/yann/Desktop/git/AirSim/build_release/CMakeFiles/CMakeError.log".
+ popd
~/Desktop/git/AirSim ~/Desktop/git/AirSim
+ rm -r build_release
+ exit 1
The output of ./setup.sh was:
yann@yann-ub:~/Desktop/git/AirSim$ ./setup.sh
+ set -e
+++ dirname ./setup.sh
++ cd .
++ pwd
+ SCRIPT_DIR=/home/yann/Desktop/git/AirSim
+ pushd /home/yann/Desktop/git/AirSim
+ downloadHighPolySuv=true
+ MIN_CMAKE_VERSION=3.10.0
+ [[ 0 -gt 0 ]]
++ uname
+ '[' Linux == Darwin ']'
+ sudo apt-get update
Get:1 file:/var/cuda-repo-10-1-local-10.1.105-418.39 InRelease
Ign:1 file:/var/cuda-repo-10-1-local-10.1.105-418.39 InRelease
Get:2 file:/var/nv-tensorrt-repo-cuda10.1-trt5.1.5.0-ga-20190427 InRelease
Ign:2 file:/var/nv-tensorrt-repo-cuda10.1-trt5.1.5.0-ga-20190427 InRelease
Get:3 file:/var/cuda-repo-10-1-local-10.1.105-418.39 Release [574 B]
Get:4 file:/var/nv-tensorrt-repo-cuda10.1-trt5.1.5.0-ga-20190427 Release [574 B]
Get:3 file:/var/cuda-repo-10-1-local-10.1.105-418.39 Release [574 B]
Get:4 file:/var/nv-tensorrt-repo-cuda10.1-trt5.1.5.0-ga-20190427 Release [574 B]
Ign:5 http://linux.dropbox.com/ubuntu bionic InRelease
Hit:7 https://nvidia.github.io/libnvidia-container/ubuntu18.04/amd64 InRelease
Hit:8 http://linux.dropbox.com/ubuntu bionic Release
Get:9 https://nvidia.github.io/nvidia-container-runtime/ubuntu18.04/amd64 InRelease [1,481 B]
Ign:10 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease
Hit:11 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease
Hit:12 https://download.docker.com/linux/ubuntu bionic InRelease
Get:13 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 InRelease [1,474 B]
Hit:14 http://archive.canonical.com/ubuntu bionic InRelease
Hit:15 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:16 https://linux.teamviewer.com/deb stable InRelease
Ign:18 http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 InRelease
Hit:19 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 Release
Hit:20 http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 Release
Hit:22 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:23 https://repo.skype.com/deb stable InRelease
Get:24 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:25 http://neurodeb.pirsquared.org data InRelease
Hit:26 http://neurodeb.pirsquared.org bionic InRelease
Fetched 91.7 kB in 3s (27.4 kB/s)
Reading package lists... Done
+ sudo apt-get -y install --no-install-recommends lsb-release rsync software-properties-common wget libvulkan1 vulkan-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
lsb-release is already the newest version (9.20170808ubuntu1).
rsync is already the newest version (3.1.2-2.1ubuntu1.1).
software-properties-common is already the newest version (0.96.24.32.14).
wget is already the newest version (1.19.4-1ubuntu2.2).
libvulkan1 is already the newest version (1.1.126.0-2~gpu18.04.1).
vulkan-utils is already the newest version (1.1.126.0+dfsg1-1~gpu18.04.1).
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
++ lsb_release -rs
++ cut -d. -f1
+ VERSION=18
+ '[' 18 -lt 17 ']'
+ sudo apt-get install -y clang-8 clang++-8 libc++-8-dev libc++abi-8-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'clang-8-doc' for regex 'clang++-8'
Note, selecting 'python-clang-8' for regex 'clang++-8'
Note, selecting 'clang-8' for regex 'clang++-8'
Note, selecting 'clang-8-examples' for regex 'clang++-8'
Note, selecting 'libclang-8-dev' for regex 'clang++-8'
clang-8 is already the newest version (1:8-3~ubuntu18.04.2).
clang-8-doc is already the newest version (1:8-3~ubuntu18.04.2).
clang-8-examples is already the newest version (1:8-3~ubuntu18.04.2).
libc++-8-dev is already the newest version (1:8-3~ubuntu18.04.2).
libc++abi-8-dev is already the newest version (1:8-3~ubuntu18.04.2).
libclang-8-dev is already the newest version (1:8-3~ubuntu18.04.2).
python-clang-8 is already the newest version (1:8-3~ubuntu18.04.2).
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
+ which cmake
/home/yann/.local/bin/cmake
++ cmake --version
++ head -n1
++ cut -d ' ' -f3
++ awk '{print $NF}'
+ cmake_ver=3.13.3
++ uname
+ '[' Linux == Darwin ']'
+ [[ ! -z '' ]]
+ sudo apt-get install -y build-essential unzip
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
unzip is already the newest version (6.0-21ubuntu1.1).
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
+ version_less_than_equal_to 3.13.3 3.10.0
++ printf '%s\n' 3.13.3 3.10.0
++ sort -V
++ head -n 1
+ test 3.10.0 = 3.13.3
+ echo 'Already have good version of cmake: 3.13.3'
Already have good version of cmake: 3.13.3
+ '[' '!' -d external/rpclib/rpclib-2.3.0 ']'
+ true
+ '[' '!' -d Unreal/Plugins/AirSim/Content/VehicleAdv ']'
+ '[' '!' -d Unreal/Plugins/AirSim/Content/VehicleAdv/SUV/v1.2.0 ']'
+ echo 'Installing Eigen library...'
Installing Eigen library...
+ '[' '!' -d AirLib/deps/eigen3 ']'
+ echo 'Eigen is already installed.'
Eigen is already installed.
+ popd
+ set +x
************************************
AirSim setup completed successfully!
************************************
Settings
How can the issue be reproduced?
Include full error message in text form
CMake Error at cmake-modules/CommonSetup.cmake:61 (find_package):
Could not find a package configuration file provided by "LLVM" with any of
the following names:
LLVMConfig.cmake
llvm-config.cmake
Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
"LLVM_DIR" to a directory containing one of the above files. If "LLVM"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
rpclib_wrapper/CMakeLists.txt:6 (CommonSetup)
What's better than filing an issue? Filing a pull request :).
Bug report
What's the issue you encountered?
When following the build instruction for Linux from this page, I encounter the following error when running
./build.sh
for AirSim (after running./setup.sh
):The output of
./setup.sh
was:Settings
How can the issue be reproduced?
Include full error message in text form
CMake Error at cmake-modules/CommonSetup.cmake:61 (find_package): Could not find a package configuration file provided by "LLVM" with any of the following names:
Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set "LLVM_DIR" to a directory containing one of the above files. If "LLVM" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): rpclib_wrapper/CMakeLists.txt:6 (CommonSetup)
What's better than filing an issue? Filing a pull request :).