-
Notifications
You must be signed in to change notification settings - Fork 440
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
Can't build Unreal Engine plugin on Linux/Mac because of unsupported typeid keyword #870
Comments
I fixed many problems on my branch now the problem is about the typeid keyword that breaks the compilation on Linux and Mac. It's not possible to easilly add rtti without rebuilding the game engine itself. static const char* name() { return ""; }// typeid(T).name(); } But it's not good... So I'm asking for help to find a way to replace typeid OR make it work with Unreal. |
So are you saying that the Unreal engine on Windows is built with rtti enabled but not by default on Mac and Linux? |
Well I'm not sure but it doesn't compile on Linux and macOS. However with the "hack" it compiles fine... I was able to run launch the Unreal project on macOS and I'll try on Linux too later today. I suppose that there is no easy workaround and returning an empty string is not a good solution right? JSBSim Unreal on macOS ;) |
@demonixis, actually you can safely delete the code lines 1881-1929 in jsbsim/src/simgear/props/props.hxx Lines 1881 to 1929 in 10c6e52
Once you're happy with your code (including deleting the lines mentioned above), you can submit a PR. |
In that case, I'll prepare a PR with macos support. Linux support is still on its way because I've some error with the linking process. It's related to Unreal and not JSBSim. I don't know why, but linking the static lib on macos works well. On Linux, the static or dynamic cause linking issue. I've to investigate. |
I'm submitting a ...
Describe the issue
The Unreal Engine plugin can't be compiled on Linux after adapting the JSBSim.build.cs because of error.
What is the current behavior?
Here is the error log
What is the expected behavior?
The expected behaviour is to have the plugin compiling on Linux
What is the motivation / use case for changing the behavior?
Using JSBSim for Unreal on the Linux operating system
Please tell us about your environment:
You can follow my work on my fork
The text was updated successfully, but these errors were encountered: