Changes between Version 22 and Version 23 of CompilingGuide


Ignore:
Timestamp:
Jan 12, 2014 8:01:31 PM (2 years ago)
Author:
leo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CompilingGuide

    v22 v23  
    2626
    2727{{{
    28 $ sudo apt-get install qt-sdk
     28$ sudo apt-get install libqt4-dev zlib1g-dev
    2929}}}
    3030
     
    5656
    5757And then open 'leocad.vcxproj' in Visual Studio and compile.
    58 
    59 ----
    60 
    61 = Compiling older versions (before 0.80) =
    62 
    63 === Required Libraries ===
    64 
    65 You'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.
    66 
    67 === Optional Libraries ===
    68 
    69 LeoCAD 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).
    70 
    71  * [http://www.ijg.org/ jpeglib]
    72  * [http://www.libpng.org/ libpng]
    73 
    74 
    75 === Compiling the Linux Version ===
    76 
    77 Make sure you have the GTK+ 2.0 header files and libraries installed in your system, you can check that by typing from a shell:
    78 
    79 {{{
    80 $ 'pkg-config --atleast-version=2.0 gtk+2.0'
    81 }}}
    82 
    83 The GTK+ 2.0 libraries are required to compile LeoCAD, they are available for download from the [http://www.gtk.org/ GTK+ Homepage]. Debian and Ubuntu users can simply type:
    84 
    85 {{{
    86 $ sudo apt-get install libgtk2.0-dev
    87 }}}
    88 
    89 If you don't have the OpenGL headers installed in your computer you can get them from the Mesa package:
    90 
    91 {{{
    92 $ sudo apt-get install libgl1-mesa-dev
    93 }}}
    94 
    95 Next go to the {{{ leocad }}} directory and run the auto-configuration:
    96 
    97 {{{
    98 $ make config
    99 }}}
    100 
    101 This will try to detect what libraries you have installed and what kind of computer you have. After that is done you're ready to build the executable:
    102 
    103 {{{
    104 $ make
    105 }}}
    106 
    107 If you don't get any errors you should have a new executable in the 'bin' directory. Finally, build the 'install' target as root to copy the support files to the right places in your system:
    108 
    109 {{{
    110 $ sudo make install
    111 }}}
    112 
    113 
    114 === Compiling the Windows Version ===
    115 
    116 If 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.
    117 
    118 LeoCAD 0.77 requires Visual Studio 2010 to compile.