- Home /
Using Linux And Wine To Build Unity Games For Windows And OS X?
I've seen a number of discussions about getting Unity to work with Wine, all with limited success but I haven't seen anything specific to my needs. I want to use Unity's command-line options to make builds for my project under Linux. I don't need to run the Unity UI. The reason is our other projects are under continuous integration on a Linux server and I want to have our Unity/Asset Server project under continuous build as well without standing up another server. Using Wine 1.2 on Ubuntu 9.10 I was able to easily install and license Unity but when I try to check the project out from asset server I get a lot of errors:
% wine "C:\Program Files\Unity\Editor\Unity.exe" -force-opengl -nographics -batchmode -quit -projectPath ProjectPath -assetServerUpdate AssetServerIP Project Username Password
fixme:mountmgr:harddisk_ioctl unsupported ioctl 2d1400 fixme:win:DisableProcessWindowsGhosting : stub err:ole:CoInitializeEx Attempt to change threading model of this apartment from apartment threaded to multi-threaded fixme:mountmgr:harddisk_ioctl unsupported ioctl 2d1400 fixme:console:AttachConsole stub ffffffff
Has anyone successfully used the command line options via Wine on Linux to checkout and build a Unity project from Asset Server?
Answer by Lucas Meijer 1 · Jan 19, 2010 at 03:29 PM
We don't test Unity against Wine, so this is defenitely going to be an uphill battle. It looks like Wine doesn't support some windows calls that we make. A less-friction way would be to either use something like subversion for versioning, or to run your CI server on osx.
Looks like the fastest way to a production build system is to make an exception for Unity projects in our current workflow. I still wish Unity could be installed on a headless system and provide a set of commands that don't piggyback on the UI. Perhaps in the future... Thanks for the response.
Answer by fjalla · Jul 28, 2014 at 02:21 PM
I know this is old, but for documentation:
Yes, it is possible, check out this page for the isntallation scripts: https://github.com/Unity3D-Wine-Support/Unity3D-on-Wine
and the Unity Wiki for detailed instructions: http://wiki.unity3d.com/index.php/Running_Unity_on_Linux_through_Wine
Your answer
![](https://koobas.hobune.stream/wayback/20220612000544im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Running Unity Pro features and connecting to asset server without a Pro license 1 Answer
Is there an assets subfolder that the Unity compiler will ignore? (Asset Server Related)) 6 Answers
How to insert assets after build? 1 Answer
How -assetServerUpdate works? 1 Answer