Can't build UE project on Ubuntu

Good day everyone,

I’ve been trying to setup a work/test environment on Ubuntu and while the editor was built and can be opened just fine, I’m having troubles compiling my project (which was previously developed only on Windows).

This error is spawned multiple times when I try building the project with make:

error: exception handling was disabled in PCH file but is currently enabled
error: definition of macro 'PLATFORM_EXCEPTIONS_DISABLED' differs between the precompiled header ('1') and the command line ('0')

I’ve tried to tweak the mentioned macro’s definition in the source but the error remains the same.
I have:

  • Ubuntu 16.04.3 LTS
  • Mono JIT compiler version 5.4.1.7
  • clang 3.8.0

Thanks everyone for the time.

Have you already tried to re-generate the precompiled headers or to do a clean rebuild of your project? Sometimes such errors can originate from outdated intermediate files.

Thanks for the suggestion, friend. I had this problem when doing a fresh compile so that didn’t work. We use quite a few external libraries so I had given up and use Windows instead for such a setup.

I also encountered this problem, is there any solution

It should be safe to delete Intermediate and Binaries folders before double clicking on your .uproject file that should launch the editor. It will ask you if you want to recompile the project since it was made for an other version: say yes and wait until it launched or tells you it couldn’t compile for some other reasons.

There seems to be a problem in how the PCH file is generated on Linux. Any idea how to find out at what point and how exactly the precompiled header files are created?