-
Notifications
You must be signed in to change notification settings - Fork 92
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
problem with installation FSDS from source in ubuntu 20.04 #365
Comments
Hi @saikumar-kolla, Have you installed Airsim aswell? If so, do you know with which version of clang? It has been a while since I built the sim from source, and I would have to instal Unreal engine again. I'll try to build it again tomorrow and Tuesday. In the meantime, it could be good to get a full build log, so that I can analyze it a bit. |
I have ran into the issue before. When I run The undefined symbol in question is I'm going to try to look into building librpc with the Unreal engine toolchain, as this should solve the issues that we have, but in the meantime, there are other things you could do. For instance build librpc inside a docker container that runs ubuntu 18.04, or a different OS with an older glibc version than 2.30. Another option is to fully build the project without the toolchain provided by Unreal I'll let you know if I have some progress |
@wouter-heerwegh After that when i ran FSOnline.uproject with UE i got this log |
@saikumar-kolla,
|
@wouter-heerwegh |
Hi @saikumar-kolla, I made a cross compile toolchain, that could used to build the airsim libraries, so that they can be used by both your system and unreal engine. You can download the toolchain from my google drive here. I'll do some tests and patch the build and setup scripts tonight or tomorrow, but in case you can't wait, feel free to already compile. |
@wouter-heerwegh |
If you want to compile with the toolchain, you will have to do the following:
I haven't fully tested if everything works with this, but the If you're not sure about making these changes, I will be updating the scripts to build Airsim, so you could indeed pull the changes later. |
I tried building the unreal engine project with the libraries compiled with my toolchain, but it seems there is still an issue, I will need some more time to try and fix the toolchain. In the meantime, what worked for me was building airsim in an Ubuntu 18.04 docker container, and then continuing as usual. So if you don't want to wait, it's already something you can try. |
Wait @saikumar-kolla, Could you convert all clang mentions inside the build.sh and setup.sh scripts in Airsim to 8?
becomes:
|
@wouter-heerwegh |
@saikumar-kolla, did you fully remove the build_debug folder before rebuilding? |
Yes i removed the build_debug folder. |
Hi @saikumar-kolla, In the build log, it looks like the CC and CXX variables are still set to the cross compile toolchain. Could you remove these and replace them with clang-8 and clang++-8? Does that fix it? |
These lines (34-37) should be changed to clang-8 and clang++-8
|
@wouter-heerwegh |
Looks good. If you now run the Unreal project and rebuild the Airsim and Blocks modules, does it succeed? |
@wouter-heerwegh i think i am getting the same error while rebuilding again. This is the log i got by running the FSOnline.uproject |
Strange. Could you clean the full repo ( |
@wouter-heerwegh |
If you want, we can set up a meeting to have a look at it together. Feel free to send me some dates and times on which you are available. My email address is wouter.heerwegh@formulaelectric.be. |
@wouter-heerwegh |
Okay, so with clang 8 it works, right? Could you check if it works when you use this command with absolute paths?
|
yes it is working. |
Great! You can leave this issue open for now, I will make some changes to Airsim to make sure that clang 8 is used when using Ubuntu 20.04 |
@wouter-heerwegh |
Hello, I have tried several of the solutions which are mentioned here but none of these works for me. Here are my steps I did.
Can someone maybe help ? |
Hi @PanterSoft, It seems like Airsim built, make sure that before you build, you remove build_debug, otherwise It might skip some compilation steps. I'm guessing with this built, you can't open the unreal project? If not, could you run this command and post the output (make sure to change the paths)?
If that worked succesfully, try to open the project again. For some reason this worked for me. I cannot seem to package the project on Ubuntu 20.04 though. I'm going to try to port the project to UE5, and see if this has less issues. If you do want to develop on the simulator and package, I highly recommend using Windows instead. It's easier to debug and you can cross compile for linux. |
Thanks for your response. I also got it working now. I had to combine a few of the answers here. First of all I had to change from Clang12 to clang8 in setup.sh and build.sh Starting at line 32 in setup.sh: and line 34: in build.sh I had to change line 35 and 36 to: and then in the AirSim folder: after that I had to run your provided command after that It started normally like described in the instructions. But I will also probably try using Windows for that in the Future if it gives me some problems in the future. |
Hi @PanterSoft Quick thing to note, for other people coming across this issue, you should run Thanks for the response, glad it worked. |
I am getting the same error when I am trying to build from source on ubuntu 22.04. What should I do? |
Hi @RoyAmoyal The easiest is to build the AirSim library in a Ubuntu 18.04 docker container, and using those libraries when opening Unreal engine. The official thing I need to figure out is how I can compile the AirSim library using the unreal engine toolchain, as mentioned in #370. Feel free to explore either. I'm going to try to look at the compilation again, because it will help solve a lot of problems for everyone. |
Thanks for the quick response. We really want to use ubuntu 22.04 and ros2 |
I am unable to build the missing modules again. I am using Unreal Engine 4.27.2 version and Ubuntu 20.04
In the instructions this was mentioned and i clicked yes.
Now this message popped up. can any one help me with this like what are the steps i need to do or what i need to check.
The text was updated successfully, but these errors were encountered: