[4.7.2] Cross Compile Linux Server
a bug occurred which prevents my Linux Server Target from building on Windows. First some system specs:
My OS: Windows 8.1 Pro 64 bit
My Project: C++ (Based on Third Person Template)
My Toolchain: http://cdn.unrealengine.com/qfe/v4_clang-3.5.0_ld-2.24_glibc-2.12.2.zip (which is clang 3.5.0 for x86 based systems)
My Engine: Custom build from 4.7.2 release branch (GitHub) with following Changes:
I am able to build Unreal Engine itself using that toolchain and these modifications just fine (getting UE4Server Linux Binary which is executable). However, if I try to compile my project, it fails.
Some things to note: My project links against a few other static libraries (boost 1.56.0 and some custom c++ libraries built by me - but since it's not a linker error, I guess it isn't that relevant here, is it?)
It turns out, that it had to do something with the order i included my headers. The problem was that I included the STL headers before I included Engine.h in my projects pch header.
After that, I am able to proceed to the linking process. However, now I get some linker errors:
I guess, the problem is that somehow RTTI is missing in my Unreal Engine build?
Edit Yep! RTTI was disabled for UE4 (Linux build) and thus there were linker errors. Now my server target (linux) links fine under windows :) Just have to test if the executable is able to run.
Follow this question
Once you sign in you will be able to subscribe for any updates here