Build a linux client

Hello all !

I’m currently working on a windows (7 64bits), so windows client and server versions are all ok.

Now I want to compile a linux version : the linux server compiles fine, but the linux client says there is no target …
Does anyone know what to do ?

I followed these :

https://wiki.unrealengine.com/Compiling_For_Linux
https://wiki.unrealengine.com/Dedicated_Server_Guide_(Windows_%26_Linux)

Have a nice day !

Hey mdonge-

Just to make sure I understand correctly, are you trying to use File->Package->Linux from your Windows machine? At what point are you getting the “no target” error? Can you provide the full error message you receive when packaging?

Thank you !

So I use the Project Launcher the message says “The value asked/requested ‘LinuxClient’ cannot be found”

The Client.Target.cs file :(works with windows client)

http://img15.hostingpics.net/pics/659012ClientTargetCs.png

[img link][2]

The Launcher config :

http://img15.hostingpics.net/pics/744982LauncherConfig.png

[img link][4]

The launcher errors :

http://img15.hostingpics.net/pics/901634Launcher.png

[img link][6]

Thank you for your help !

Do you get the same error when packaging a new empty project with no added content? If you’re using cross-compilation to compile for Linux from Windows, can you confirm that the game code has been compiled for the Linux configuration in Visual Studio?

I’m using cross compilation, and when I generate the project for linux client some files were compiled but the error is still there.

I’m able to compile the LinuxServer and the LinuxNoEditor, but LinuxClient doesn’t want …

I’m trying with an empty project this morning and will come back later with some news !

If I perform a full rebuild of my project (or the engine) can it resolve the problem (It will be really long so I will try it when there will be no more options)

Thank you !

EDIT : even with an empty project, it doesn’t want to compile, with the same error …

EDIT 2 : development and shipping builds is the same …

Hey mdonge-

After using cross-compile to compile a project locally, I found that you shouldn’t need a Client.Target.cs file specifically. If you compile a non-dedicated server, it is already considered a client. Here are the steps I used to create a Linux client of a test project. These steps should help you get a copy of your project running on your Linux machine.

  • Create project on Windows
  • Cross compile project using DevelopmentEditor / DevelopmentServer for Windows & Linux
  • Package project for Windows and Linux (File->Package Project in the editor)
  • Copy Linux package files to Linux machine
  • Run on Linux

Cheers

Thank you !