|Version 23 (modified by leo, 2 years ago) (diff)|
Getting the source code
The source code is available as an archive from the downloads page or from the Subversion server at http://svn.leocad.org/. You can download the trunk version for the latest but unstable changes or the official releases using the leocad-0.78, leocad-0.79.3, etc tags. Please use one of the release tags unless you plan to be a developer.
Typing this would download the latest revision to a directory called 'leocad' on your computer:
C:\>svn co http://svn.leocad.org/trunk leocad
Or if you want to get the source code for version 0.79 you would type:
C:\>svn co http://svn.leocad.org/tags/leocad-0.79 leocad
You can receive notifications of source code changes by subscribing to the rss feed at the bottom of the Timeline page.
Starting with version 0.80 LeoCAD requires Qt 4.8 or later to compile. You can download the Qt SDK for all platforms from http://qt-project.org.
Linux users may find it easier to just use their package manager instead:
$ sudo apt-get install libqt4-dev zlib1g-dev
The easiest way to compile on any platform is to open 'leocad.pro' in Qt Creator and build from there but if you prefer compiling from the command line you can generate a Makefile using qmake:
leocad$ qmake leocad.pro
And then compile:
Linux users should also build the 'install' target as root to copy the executable and support files to the right places in their system:
leocad$ sudo make install
Windows users can also compile using Visual Studio. You just need to use qmake to generate the project files first:
C:\leocad> qmake -tp vc
And then open 'leocad.vcxproj' in Visual Studio and compile.