Changes between Version 20 and Version 21 of CompilingGuide


Ignore:
Timestamp:
Aug 9, 2013 3:10:15 PM (3 years ago)
Author:
leo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CompilingGuide

    v20 v21  
    11= Getting the source code =
    22
    3 The source code is available as an archive from the [http://leocad.org/files/ 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.73, leocad-0.75, etc tags. '''Please use one of the release tags unless you plan to be a developer.'''
     3The source code is available as an archive from the [http://leocad.org/files/ 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.'''
    44
    55Typing this would download the latest revision to a directory called 'leocad' on your computer:
     
    2121= Required Libraries =
    2222
     23Starting 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.
     24
     25Linux users may find it easier to just use their package manager instead:
     26
     27{{{
     28$ sudo apt-get install qt-sdk
     29}}}
     30
     31= Compiling =
     32
     33The 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:
     34
     35{{{
     36leocad$ qmake
     37}}}
     38
     39And then compile:
     40
     41{{{
     42leocad$ make
     43}}}
     44
     45Linux users should also build the 'install' target as root to copy the executable and support files to the right places in their system:
     46
     47{{{
     48leocad$ sudo make install
     49}}}
     50
     51Windows users can also compile using Visual Studio. You just need to use qmake to generate the project files first:
     52
     53{{{
     54C:\leocad> qmake -tp vc
     55}}}
     56
     57And then open 'leocad.vcxproj' in Visual Studio and compile.
     58
     59----
     60
     61= Compiling older versions (before 0.80) =
     62
     63=== Required Libraries ===
     64
    2365You'll need to download a copy of the [http://www.zlib.net/ zlib] library to compile LeoCAD. Windows users should extract it to the {{{ leocad\win\zlib }}} folder while Linux users should just install it like other libraries in their system.
    2466
    25 = Optional Libraries =
     67=== Optional Libraries ===
    2668
    2769LeoCAD can use a few Open Source libraries to add extra functionality to it, you can download them if you want or just compile LeoCAD without those features (see the next sections for instructions on how to install them).
     
    3173
    3274
    33 = Compiling the Linux Version =
     75=== Compiling the Linux Version ===
    3476
    3577Make sure you have the GTK+ 2.0 header files and libraries installed in your system, you can check that by typing from a shell:
     
    70112
    71113
    72 = Compiling the Windows Version =
     114=== Compiling the Windows Version ===
    73115
    74116If you downloaded the [wiki:CompilingGuide#OptionalLibraries optional libraries] extract them to the {{{ leocad\win }}} folder, or open {{{ lc_config.h }}} in that same folder and comment out the #define LC_HAVE_XXX at the bottom of the file for the libraries that you don't have installed.