Download

Build Issue in Ubuntu Linux 16.04

Hello All,

I’m trying to get the hang of UE4 for an AI/simulation project and I’m running into some issues with the build environment in Ubuntu Linux (16.04).

The problem:
If I build the project using the command line UnrealBuildTool and then run the generated executable, I get a segfault with the following error:



Fatal error: [File:/home/charlesrwest/cpp/projects/UE4/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformMisc.cpp] [Line: 455] 
Error copying clipboard contents: Video subsystem must be initialized to set clipboard text


However, if I package the project with the UE4 editor then run the resulting executable (without any code change) then it works fine. Does anyone know either what I am doing wrong or how to fix this issue? I would very much prefer to develop in a manner where I get error messages and/or can remote.

Command line compilation:



(Showing debug, also did development and shipping)

/bin/sh -c 'mono ../../UnrealEngine/Engine/Binaries/DotNET/UnrealBuildTool.exe TestFirstPerson Linux Debug  -project="/home/charlesrwest/cpp/projects/UE4/TestFirstPerson/TestFirstPerson/TestFirstPerson.uproject"'

........
[272/280] Compile Module.Analytics.cpp
[273/280] Compile Module.SynthBenchmark.cpp
[274/280] Compile EngineMessages.generated.cpp
[275/280] Archive libTestFirstPerson-AndroidMediaFactory-Linux-Debug.a
[276/280] Archive libTestFirstPerson-CharacterAI-Linux-Debug.a
[277/280] Archive libTestFirstPerson-OnlineSubsystemNull-Linux-Debug.a
[278/280] Archive libTestFirstPerson-LinuxDeviceProfileSelector-Linux-Debug.a
[279/280] Archive libTestFirstPerson-ExampleDeviceProfileSelector-Linux-Debug.a
[280/280] Link TestFirstPerson-Linux-Debug
Total build time: 763.36 seconds (Local executor: 737.19 seconds)



Running the packaged version of development without problems:



~/cpp/projects/UE4/TestFirstPerson/LinuxNoEditor/TestFirstPerson/Binaries/Linux$ ./TestFirstPerson


Somewhat similar to this issue, but their fix did nothing:
https://answers.unrealengine.com/questions/590336/error-copying-clipboard-contents-video-subsystem-m.html

Thanks!