microsoft / AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
https://microsoft.github.io/AirSim/
Other
16.44k stars 4.58k forks source link

Error in ./build.sh #3361

Open wq1148927746 opened 3 years ago

wq1148927746 commented 3 years ago

Bug report

What's the issue you encountered?

I do like this, everything is well before I run the command ./build.sh.


AirSim setup completed successfully!


-- Configuring incomplete, errors occurred! See also "/home/wqf/AirSim/build_release/CMakeFiles/CMakeOutput.log". See also "/home/wqf/AirSim/build_release/CMakeFiles/CMakeError.log".

Settings

How can the issue be reproduced?

1. 2.

Include full error message in text form

What's better than filing an issue? Filing a pull request :).

wq1148927746 commented 3 years ago

I think it's the cmake error

but I don't know how to solve this.

Thans!

rajat2004 commented 3 years ago

Seems to be a linker error from the line - usr/bin/ld: 找不到 -lstdc++ Try installing libstdc++-8-dev package and run the script again

wq1148927746 commented 3 years ago

Seems to be a linker error from the line - usr/bin/ld: 找不到 -lstdc++ Try installing libstdc++-8-dev package and run the script again

I have done this,but it still error.

-- Configuring incomplete, errors occurred! See also "/home/wqf/AirSim/build_release/CMakeFiles/CMakeOutput.log". See also "/home/wqf/AirSim/build_release/CMakeFiles/CMakeError.log".

rajat2004 commented 3 years ago

Checking my packages, since its related to clang, you might be missing libc++-8-dev instead of libstdc++-8-dev which is for GCC, try installing that. Otherwise check you packages and see if anything important seems to be missing. (The -7 files are for GCC 7)

$ dpkg -l | grep c++           
ii  lib32stdc++-8-dev                                                8.4.0-1ubuntu1~18.04                             amd64        GNU Standard C++ Library v3 (development files)
ii  lib32stdc++6                                                     8.4.0-1ubuntu1~18.04                             amd64        GNU Standard C++ Library v3 (32 bit Version)
ii  libc++-8-dev:amd64                                               1:8-3~ubuntu18.04.2                              amd64        LLVM C++ Standard library (development files)
ii  libc++1-8:amd64                                                  1:8-3~ubuntu18.04.2                              amd64        LLVM C++ Standard library
ii  libc++abi-8-dev:amd64                                            1:8-3~ubuntu18.04.2                              amd64        LLVM low level support for a standard C++ library (development files)
ii  libc++abi1-8:amd64                                               1:8-3~ubuntu18.04.2                              amd64        LLVM low level support for a standard C++ library
ii  libnetcdf-c++4                                                   4.2-8                                            amd64        legacy NetCDF C++ interface
ii  libsigc++-2.0-0v5:amd64                                          2.10.0-2                                         amd64        type-safe Signal Framework for C++ - runtime
ii  libstdc++-7-dev:amd64                                            7.5.0-3ubuntu1~18.04                             amd64        GNU Standard C++ Library v3 (development files)
ii  libstdc++-8-dev:amd64                                            8.4.0-1ubuntu1~18.04                             amd64        GNU Standard C++ Library v3 (development files)
ii  libstdc++6:amd64                                                 8.4.0-1ubuntu1~18.04                             amd64        GNU Standard C++ Library v3
ii  libstdc++6:i386                                                  8.4.0-1ubuntu1~18.04                             i386         GNU Standard C++ Library v3
ii  libx32stdc++-8-dev                                               8.4.0-1ubuntu1~18.04                             amd64        GNU Standard C++ Library v3 (development files)
ii  libx32stdc++6                                                    8.4.0-1ubuntu1~18.04                             amd64        GNU Standard C++ Library v3 (x32)
ii  ros-melodic-xmlrpcpp                                             1.14.10-1bionic.20201017.071853                  amd64        XmlRpc++ is a C++ implementation of the XML-RPC protocol.
wq1148927746 commented 3 years ago

Checking my packages, since its related to clang, you might be missing libc++-8-dev instead of libstdc++-8-dev which is for GCC, try installing that. Otherwise check you packages and see if anything important seems to be missing. (The -7 files are for GCC 7)

$ dpkg -l | grep c++           
ii  lib32stdc++-8-dev                                                8.4.0-1ubuntu1~18.04                             amd64        GNU Standard C++ Library v3 (development files)
ii  lib32stdc++6                                                     8.4.0-1ubuntu1~18.04                             amd64        GNU Standard C++ Library v3 (32 bit Version)
ii  libc++-8-dev:amd64                                               1:8-3~ubuntu18.04.2                              amd64        LLVM C++ Standard library (development files)
ii  libc++1-8:amd64                                                  1:8-3~ubuntu18.04.2                              amd64        LLVM C++ Standard library
ii  libc++abi-8-dev:amd64                                            1:8-3~ubuntu18.04.2                              amd64        LLVM low level support for a standard C++ library (development files)
ii  libc++abi1-8:amd64                                               1:8-3~ubuntu18.04.2                              amd64        LLVM low level support for a standard C++ library
ii  libnetcdf-c++4                                                   4.2-8                                            amd64        legacy NetCDF C++ interface
ii  libsigc++-2.0-0v5:amd64                                          2.10.0-2                                         amd64        type-safe Signal Framework for C++ - runtime
ii  libstdc++-7-dev:amd64                                            7.5.0-3ubuntu1~18.04                             amd64        GNU Standard C++ Library v3 (development files)
ii  libstdc++-8-dev:amd64                                            8.4.0-1ubuntu1~18.04                             amd64        GNU Standard C++ Library v3 (development files)
ii  libstdc++6:amd64                                                 8.4.0-1ubuntu1~18.04                             amd64        GNU Standard C++ Library v3
ii  libstdc++6:i386                                                  8.4.0-1ubuntu1~18.04                             i386         GNU Standard C++ Library v3
ii  libx32stdc++-8-dev                                               8.4.0-1ubuntu1~18.04                             amd64        GNU Standard C++ Library v3 (development files)
ii  libx32stdc++6                                                    8.4.0-1ubuntu1~18.04                             amd64        GNU Standard C++ Library v3 (x32)
ii  ros-melodic-xmlrpcpp                                             1.14.10-1bionic.20201017.071853                  amd64        XmlRpc++ is a C++ implementation of the XML-RPC protocol.

I have done this, too. image

I think the last package is about ROS, so I didn't install it.

wq1148927746 commented 3 years ago

However, it is still error.

图片

wq1148927746 commented 3 years ago

I encounter another problem about GPU.

When I try to run UE, There was a mistake, too.

图片

Maybe this is related to the settings of GPU?

However, I can use GPU in PyTorch. And nivdia-smi is perfectly normal.

图片

But, the bar of graph in setting displays as follows:

图片

I am new to ubuntu and GPU.

Thank you!

wq1148927746 commented 3 years ago

I use a GPU of nvidia 3060TI

nikhil-sethi commented 3 years ago

What kernel version are you using @wq1148927746? There are known GPU issues with an AMD-Nvidia configuration. I have a similar configuration and a lot of the gpu issues were resolved after 5.6-5.7 kernel versions. Also, in my case the 'llvmpipe' was showing when I had Nvidia-optimus enabled in the BIOS. Try setting it to only the dedicated GPU option and see if it changes.

wq1148927746 commented 3 years ago

What kernel version are you using @wq1148927746? There are known GPU issues with an AMD-Nvidia configuration. I have a similar configuration and a lot of the gpu issues were resolved after 5.6-5.7 kernel versions. Also, in my case the 'llvmpipe' was showing when I had Nvidia-optimus enabled in the BIOS. Try setting it to only the dedicated GPU option and see if it changes.

Thanks! I solved this problem. But I still error in ./build.sh.

lovettchris commented 3 years ago

This solved the problem for me:

sudo apt-get install libstdc++-8-dev

I see this in the setup.sh so I'm not sure what that didn't work, but running it manually fixed the build.

leimo2011 commented 3 years ago

same issue with mac os 11.2.2

-- Configuring incomplete, errors occurred! See also "/Users/xyz/Airsim/AirSim/build_release/CMakeFiles/CMakeOutput.log". See also "/Users/xyz/Airsim/AirSim/build_release/CMakeFiles/CMakeError.log".

derekwacks commented 2 years ago

For anyone who comes across this thread with @leimo2011 's problem above:

(i.e. problem running ./build.sh for AirSim on MacOS Big Sur getting clang-8: error: invalid version number in '-mmacosx-version-min=11.2')

in AirSim/build.sh ~ line 57,

Change

if [ "$(uname)" == "Darwin" ]; then 
    export CC=/usr/local/opt/llvm@8/bin/clang 
    export CXX=/usr/local/opt/llvm@8/bin/clang++ 
else

to

if [ "$(uname)" == "Darwin" ]; then
    export CC=clang
    export CXX=clang++
else

(Get rid of the absolute paths)

zimmy87 commented 2 years ago

Are you still experiencing this issue @wq1148927746?

thejeshk commented 2 years ago

Hi @wq1148927746 @zimmy87

Ubuntu 20.04 UE version 4.25

###########################

I am experiencing the same issue

ubuntu@ubuntu-OMEN-by-HP-Desktop-PC:~/AirSim$ ./build.sh

-- Configuring incomplete, errors occurred! See also "/home/ubuntu/AirSim/build_release/CMakeFiles/CMakeOutput.log". See also "/home/ubuntu/AirSim/build_release/CMakeFiles/CMakeError.log".