News Free Compiler Setup Under Linux on Wiki

Enjo

Mostly harmless
Addon Developer
Tutorial Publisher
Donator
Joined
Nov 25, 2007
Messages
1,667
Reaction score
19
Points
38
Location
Germany
Website
www.enderspace.de
Preferred Pronouns
Can't you smell my T levels?
Now, since it's been reported that Orbiter runs under Wine without too many complications, I'd like to share my latest creation:

http://www.orbiterwiki.org/wiki/Free_Compiler_Setup_Under_Linux

This article explains how to setup a free compiler under Linux, with an assumption that Orbiter itself can be ran under Linux with Wine for testing your modules. Latest possible setup that is capable of doing it is Wine 1.4 and Orbiter 111105, using the built-in DX7 graphical client. The steps presented here have been tested on Debian-testing. The concept is based on downloading first and running MS VC executables, wrapped by Wine, and fed back to a native multiplatform IDE - Code::Blocks. Thanks to winetricks, it's of course easy to download the VC executables, along with its IDE, and run the whole IDE through Wine, but such a setup is unstable (see for yourself).
 
I've found a workaround of the problem of Wine not recognizing the persistent wineserver, thus slowing down the compilation. The trick is to use more than one core for compilation. It's possible to set it in CodeBlocks' compiler settings.

Speed results of Launch MFD full compilation:
1 core: 10 minutes 30 seconds.
2 cores: 2 minutes.
:chainsaw:
 
Last edited:
Article updated, taking into account the latest stable Code::Blocks version, 16.01, using a clean patch instead of hacking the source in a brutal way, and an updated installation under wine.
 
Another updated. This time I was able to prepare and run the VC from a clean WINEPREFIX, which guarantees a complete isolation of problems, and a rigid recreation of necessary steps. Also the preparation scripts are greatly reduced.
 
Last edited:
Back
Top