How can I add a ThirdParty library so that it compiles when I compile my game?
I want to implement an existing library in my game. However, the tricky part is I also want to compile it when I compile my game. This way I can modify the source from a single instance of Visual Studio.
I tried the module approach, but I just have to modify too much of the core library files before it even compiles. I've been snooping inside the ThirdParty library of the engine and found batch files for (for example) libPNG ((UE4_BuildThirdPartyLib), which will compile the library as the engine gets compiled (AutomationScripts are run during Visual Studio compile. right?)
Is there something similar, or a different approach, for me to add my existing library to the build-process of my game, without having to first compile .lib files, make them into a plugin?
Did you see this ? UE3 Wiki - Linking Static Libraries Using The Build System ?
I followed that, digged a bit into my Build.cs and found it worked really well.
If afterwards you still have issues , please specify which part and I'll try to help.
answered May 20 '14 at 02:50 AM
I ended up creating a separate project which compiles and places the libs in the appropriate places, then defined a Build.cs file with
I then modified my includepaths of my game project and pointed it at the source directory of the library. You can now debug the library and step through the code. Only recompilation has to be done using the other project.
answered May 21 '14 at 04:58 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here