I am trying to build a project of mine (with own c++ code). But onfortunally, building failed with the error message
execv: Argument list too long
After taking a look at the Compiler Output, I think the compiler is right The argument list for a single cpp file is extraordinary huge. And the whole makefile is about 859,4MB large
My System:
Linux Mint (based on Ubuntu 14.04)
UE4 Version branch 4.10 (7957c3eba0f1703122df7de048c3cd6065ba4a7a)
qmake should not try to invoke the compiler directly, but instead it should run UBT with parameters (UBT will know how to pass them through response file). I would start investigating first why this does not happen for you. You .pro file should look roughly like this:
# UnrealEngine.pro generated by QMakefileGenerator.cs
# *DO NOT EDIT*
TEMPLATE = aux
CONFIG -= console
CONFIG -= app_bundle
CONFIG -= qt
TARGET = UE4
unrealRootPath=<your root path>
build=bash $$unrealRootPath/Engine/Build/BatchFiles/Linux/Build.sh
args=$(ARGS)
include(UE4Source.pri)
include(UE4Header.pri)
include(UE4Config.pri)
include(UE4Includes.pri)
include(UE4Defines.pri)
UE4Client-Linux-Debug.commands = $$build UE4Client Linux Debug $$args
UE4Client-Linux-DebugGame.commands = $$build UE4Client Linux DebugGame $$args
UE4Client-Linux-Shipping.commands = $$build UE4Client Linux Shipping $$args
UE4Client-Linux-Test.commands = $$build UE4Client Linux Test $$args
UE4Client.commands = $$build UE4Client Linux Development $$args
[... etc ...]
Note that you would not be able to compile with g++ anyway (without changes at least) - we don’t use gcc but clang.