Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How do I package for Linux from Windows?

This may be a newbie question, but I am trying to package my game for Linux from a Windows computer. When I am in the UE4 Editor, I go to File -> Package Project -> Linux, just like I usually do for packaging my Win-64 version. But I keep getting the error: "Sorry, packaging a code-based project for the selected platform is currently not supported. This feature may be available in a future release."

I have been trying to follow the instructions found on the "Compiling for Linux" page (https://wiki.unrealengine.com/Compiling_For_Linux) and followed the steps. I installed the Linux-x86_64 cross compile toolchain, set it up with the Powershell script (as administrator), made sure the environment variable was set, and I ran the GenerateProjectFiles.bat before restarting Visual Studio. Maybe I am supposed to re-write the Environment Variable? The variable value is different in the guide. This is mine:

alt text

I noticed that Linux was not available with the Solution Platforms. I am not sure if that is what the instructions meant when it said, "After this, you should have "Linux" available among Win32/Win64 configurations, and you should be able to cross-compile for it."

alt text

But as far as I can tell, I followed the steps right. I am just not really experienced with this type of thing, so I don't know if I am going about this the wrong way. Perhaps I missed a step or I have to do this through Visual Studio. If so, I need help/instructions on how to do so. Sorry if this is something really basic or obvious! Like i said, I am new at this. I'm just trying to package my game so that my friend on a Linux can try it out. Thanks in advance!

Product Version: UE 4.11
capture.jpg (85.6 kB)
capture.jpg (22.1 kB)
more ▼

asked Apr 30 '16 at 10:32 PM in Packaging & Deployment

avatar image

1 1 2 3

avatar image Doug E ♦♦ STAFF May 02 '16 at 06:57 PM

Hey Psykopomp-

After setting you your first screenshot, did you re-run GenerateProjectFiles.bat for the engine you're using? If so, please try setting up the toolchain manually without using Powershell and let me know if you still have the same issue.

avatar image Psykopomp May 04 '16 at 07:16 AM

Yes, I did re-run GenerateProjectFiles, but I am not sure how to set up the toolchain manually. Are there any resources on this? I fixed the absolute path to the LINUX_ROOT in the environment variables, as it was set to something completely off, but it still doesn't allow me to package for Linux.

Thanks for your help so far!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Try re-downloading the toolchain and extracting it to a location other than where it is currently (I put it on my D drive rather than the C). I then ran the Setup.bat from the toolchain folder and copied the OutputEnvVars.txt info into the Environment Variables. After running GenerateProjectFiles.bat Linux did appear in the solution platform dropdown.


Doug Wilson

more ▼

answered May 04 '16 at 01:56 PM

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question