Linux (Ubuntu) : Couldn't find platform name

I am following the Linux Guide

On executing GenerateProjectFiles.sh , I get no error messages, but a Makefile does not get built.

I run Engine/Build/BatchFiles/Linux/Build.sh,

returning

Building ...
Using clang version '3.3' (string), 3 (major), 3 (minor), -1 (patch)
UnrealBuildTool Exception: ERROR: Couldn't find platform name.

You shouldn’t run Build.sh directly (the URL in question no longer mentions that BTW). If you for some reason you want to call that scripts, it expects three parameters: project target, platform and configuration, e.g. UE4Editor Linux Debug.

What’s the output of GenerateProjectFiles.sh? It should run successfully, because apart of generating the makefiles it also downloads the dependencies, which are required for the build.

Github build
Checking / downloading the latest archives

Asset Optional.zip up to date
Asset Required_1of2.zip up to date
Asset Required_2of2.zip up to date

All assets are up to date, not unpacking zip files again.

Building ThirdParty libraries
==> BuildLND

So building LinuxNativeDialogs fails… Please take a look into Engine/Build/BatchFiles/BuildThirdParty.log and post it here if you cannot determine the problem (just last N lines with error perhaps).

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfig.cmake:27 (message):
The imported target “Qt5::Gui” references the file

     "/usr/lib/x86_64-linux-gnu/libEGL.so"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib/x86_64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:23 (_qt5_Gui_check_file_exists)
  /usr/lib/x86_64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:49 (_qt5gui_find_extra_libs)
  /usr/lib/x86_64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfig.cmake:155 (include)
  /usr/lib/x86_64-linux-gnu/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:100 (find_package)
  CMakeLists.txt:7 (find_package)

however the file does exist

ls /usr/lib/x86_64-linux-gnu/libEGL.so 
/usr/lib/x86_64-linux-gnu/libEGL.so

Try building against Qt4 or GTK(2,3).

that works, but It’s still failing on FBX

  • mono Binaries/DotNET/UnrealBuildTool.exe -makefile
    Using clang version ‘3.3’ (string), 3 (major), 3 (minor), -1 (patch)
    Binding IntelliSense data… 0%FBX SDK not found in ThirdParty/FBX/2014.2.1/lib/linux/x86_64-unknown-linux-gnu
    ERROR: Exception thrown while processing dependent modules of Launch
    Exception thrown while processing dependent modules of Engine
    Exception thrown while processing dependent modules of LogVisualizer
    Exception thrown while processing dependent modules of UnrealEd
    Exception thrown while processing dependent modules of AnimGraph
    Exception thrown while processing dependent modules of GraphEditor
    Exception thrown while processing dependent modules of KismetWidgets
    Exception thrown while processing dependent modules of BlueprintGraph
    Exception thrown while processing dependent modules of KismetCompiler
    Exception thrown while processing dependent modules of MovieSceneTools
    Exception thrown while processing dependent modules of AssetTools
    Exception thrown while processing dependent modules of DestructibleMeshEditor
    ERROR: Unable to instantiate instance of ‘FBX’ object type from compiled assembly ‘ProjectFileGeneratorModuleRules’. Unreal Build Tool creates an instance of your module’s ‘Rules’ object in order to find out about your module’s requirements. The CLR exception details may provide more information: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> ERROR: FBX SDK not found in ThirdParty/FBX/2014.2.1/lib/linux/x86_64-unknown-linux-gnu

retried successfully, closing the issue.

I ran into the same CMake error that libEGL.so does not exist attempting to build with Qt5.

My problem was that my symbolic link for libEGL.so (and libGL.so) is invalid. “ls” shows the files as existing, but “ls -L” attempts to follow the link and the linked file does not exist. “ls -l” shows what file the symbolic link is attempting to link to. I found the files the symbolic links were attempting to link to (e.g., “libEGL.so.1.0.0”) had no path information and were not in the current directory. I changed the symbolic link to include a directory path and the makes work.

/usr/lib64/libEGL.so now links to (->) /usr/lib/libEGL.so.1.0.0 (previously symbolic link did not include “/usr/lib” path)
/usr/lib64/libGL.so now links to (->) /usr/lib/libGL.so.1.2.0