README_MAC.TXT 1.49 KB
Newer Older
Pierre Kraemer's avatar
Pierre Kraemer committed
1 2 3 4 5 6
Pour compiler CGoGN sur MAC (testé sur OS X 10.6)

1) créer un lien de sys/malloc vers malloc.h dans usr/include:
    cd /usr/include; sudo ln -s sys/malloc.h . 
   Ceci permet d'éviter pas mal de pb de compilation de source linux.

Sylvain Thery's avatar
Sylvain Thery committed
7 8
2) installer avec macports  ou homebrew
    zlib,  glew (sudo port install xxxx)
Pierre Kraemer's avatar
Pierre Kraemer committed
9

Sylvain Thery's avatar
Sylvain Thery committed
10
3) installer Qt (http://qt.nokia.com/downloads/)
Pierre Kraemer's avatar
Pierre Kraemer committed
11 12

4) Ajouter (si ce n'est déjà fait) dans bash_profile:
Sylvain Thery's avatar
Sylvain Thery committed
13
    export LD_LIBRARY_PATH=/opt/local/lib 
Pierre Kraemer's avatar
Pierre Kraemer committed
14 15 16 17 18
    export C_INCLUDE_PATH=/opt/local/include:/usr/X11/include
    export CPLUS_INCLUDE_PATH=/opt/local/include:/usr/X11/include
    export LIBRARY_PATH=/opt/local/lib:/usr/X11/lib


Sylvain Thery's avatar
Sylvain Thery committed
19 20 21 22
=========================================================================================
                                ENGLISH VERSION
=========================================================================================
To compile CGoGN on MAC (tested on OSX 10.6 and OSX 10.7.2)
Pierre Kraemer's avatar
Pierre Kraemer committed
23

Sylvain Thery's avatar
Sylvain Thery committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37
1) create a link from sys/malloc to malloc.h in usr/include:
    cd /usr/include; sudo ln -s sys/malloc.h . 
	This solve compilation problems of some linux codes on mac

2) install with macports or homebrew
    zlib,  glew, boost (sudo port install xxxx)

3) install Qt (http://qt.nokia.com/downloads/)

4) Add if not already done (by homebrew) in bash_profile:
    export LD_LIBRARY_PATH=/opt/local/lib 
    export C_INCLUDE_PATH=/opt/local/include:/usr/X11/include
    export CPLUS_INCLUDE_PATH=/opt/local/include:/usr/X11/include
    export LIBRARY_PATH=/opt/local/lib:/usr/X11/lib