Can't add ThirdParty source files to project.
When I add my ThirdParty sources inside the Source folder, I get the famous PCH message asking me to put the same include line in every source file. For most libs, this is not possible, because they are used with other projects.
When I put the files outside, on the same level as the Source folder, and add the sources to my XCode project, the build system will remove my link as soon as I use the services command "Generate XCode project", which is needed since the new project structure has been introduced.
Is there a solution to compile 3rd party sources without the need of the standard UE4 PCH?
Building on OSX is a PITA, not talking about the weird behaviour of the error display, the optinization mode and the reset to the UE4 scheme after each generation. Nevertheless - thank you for this great engine, but XCode needs more love. ;)
asked May 10 '16 at 08:00 AM in C++ Programming
I'm not sure if there is a way to compile without the PCH, I don't think there is as long as you're wanting your source be built by the Unreal Build Tool. I will say that adding files to the Xcode project works exactly the same as a Visual Studio project in that what you add to it does it matter. That project only exists for XCode itself, the Unreal Build Tool doesn't use that information, and instead only looks at the Build.cs files and the directory structure itself.
As far as I know the only way to compile 3rd party source without being forced to use the PCH is by adding it as a 3rd party plugin. In the editor if you got to Edit -> Plugins and add a New Plugin and look for "Third Party Library" for an example.
answered May 10 '16 at 08:14 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here