Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 20.04 #29

Closed
reza-shahriari opened this issue Sep 17, 2024 · 1 comment
Closed

Ubuntu 20.04 #29

reza-shahriari opened this issue Sep 17, 2024 · 1 comment

Comments

@reza-shahriari
Copy link

Hi,

Setting up cosys-airsim in Ubuntu 20.04 can be quite challenging. I spent a lot of time trying to make the necessary changes for this setup work. The issue arises because libc++-12-dev, libc++abi-12-dev, and libstdc++-12-dev are not installable in Ubuntu 20.04. As a result, the build.sh script may either not run at all or complete its job, but when you try to import the plugin into an Unreal project, Mavlink won't work and the project won't start.

To resolve this, I changed the clang version from 12 to 9 and installed g++-9 and gcc-9, which solved my problem. However, using GCC as the compiler (running ./build.sh --gcc) did not work.

If you are using Ubuntu 20.04, make the following changes:
In the setup.sh file, change line 52 from:
sudo apt-get install -y clang-12 clang++-12 libc++-12-dev libc++abi-12-dev libstdc++-12-dev
to:
sudo apt-get install -y clang-9 clang++-9 libc++-9-dev libc++abi-9-dev libstdc++-9-dev

In the build.sh file, change lines 70 and 71 from:
export CC="clang-9" and export CXX="clang++-9"
to:
export CC="clang-9" and export CXX="clang++-9"

@reza-shahriari
Copy link
Author

good if you add it into read me or as an option in the setup/build.sh
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant