r10 - 11 Jan 2010 - 18:33:31 - MatevzTadelYou are here: TWiki >  Main Web  >  Gled > GledBuild

Gled build

Build notes

This is system specific information, supplementing stuff available in gledimp document.

Debian / Ubuntu

gled-builder works OK, you need to pre-install some packages.

  apt-get install autoconf libtool subversion cmake g++ gfortran \
    libglu1-mesa-dev libssl-dev libxft-dev libxpm-dev libfreetype6-dev libxi-dev \
    libxmu-dev libjpeg-dev libtiff-dev libpng-dev libmng-dev \
    libnetpbm10-dev libvorbis-dev libglib2.0-dev dialog
  

Fedora

This is a place-holder -- if somebody starts from default Fedora installation please let me know.

  yum install autoconf libtool subversion cmake g++ gfortran \
    libvorbis-devel

Mac OSX 10.5 with Fink

gled-builder works OK, you will need to get quite some stuff via fink:

  apt-get install subversion cmake pkgconfig dialog \
    netpbm10 netpbb10-shlibs glib2 glib2-dev glib2-shlibs xdg-base

Configure gled-builder with: ./configure CC=gcc ..., cc is not recognized properly by the compiler-version.pl.

There are some peculiarities, handled properly by the logick in package perl scripts:

  • root Configure for 32-bit build, fink stuff is 32-bit.
  • DevIL Build without ILUT - GL is taken from X11 and some symbols are re-exported.

Issues with gled build:

  • .dylib libs are created and .so sym-linked to them. This is not needed any more on 10.5, .so libraries can be built directly. This will simplify a couple of things - but then again - this issue is even worse on windows so some logick handling this issue could be kept.
  • MACOSX_DEPLOYMENT_TARGET=10.5 is set in environment scripts, script generation code and also in greed module scripts. 10.6 is coming soon, so this will have to be done better.

Mac OSX 10.6 with MacPorts

Get the MacPorts, configure them for universal binaries (by putting +unversal into variants.conf) or for 32-bit builds (by setting arch to i386 in macports.conf). The problem is that fltk can only be built in 32-bit mode with carbon drawing and with support for shared libraries.

Install netpbm, glib2, libvorbis, and cmake -- this will pull in all necessary stuff.

gled-builder should work out of the box.

General issues with external packages

DevIL

1.7.4 is used (slightly modified, global variable color_type had to be declared as static in il_png.c and il_icon.c to avoid symbol collision on mac). 1.7.8 is out, but had some problems building it. Somebody should investigate.

-- MatevzTadel - 03 Apr 2009

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r10 < r9 < r8 < r7 < r6 | More topic actions
Main.GledBuild moved from Main.Gled on 14 Dec 2009 - 17:27 by MatevzTadel - put it back
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback