README.md 2.21 KB
Newer Older
Sylvain Thery's avatar
Sylvain Thery committed
1 2 3 4

Linux dependencies
==================
install the following packages:  
5
cmake cmake-curses-gui cmake-qt-gui libXi-dev libXmu-dev libglew-dev zlib1g-dev libqt4-dev qt4-dev-tools uuid-dev libgsl0-dev libsuitesparse-dev libqglviewer-dev
Sylvain Thery's avatar
Sylvain Thery committed
6 7 8 9 10 11 12 13 14

Mac Dependencies
=================
To compile CGoGN on MAC 

* install XCode and command line tools.
* install Qt4 (4.8) and QtCreator
* install (or build) libQGLViewer
* install cmake (native or with homebrew)
15
* install with homebrew : lzlib, glew, suite-sparse
Sylvain Thery's avatar
Sylvain Thery committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71

To install suite-sparse package, you must first
add the homebrew/science repository with the following command :
	brew tap homebrew/science

Compilation is the same as on Linux for CGoGN


To compile CGoGN
================
 * first compile third-party libraries:

	```
	cd CGoGN/ThirdParty/build  
	cmake ..  
	make (-j x if you have x cores)
	make install  
	```

	In debug mode:  
	```
	cd ../buildDebug  
	cmake ..  
	make  (-j x if you have x cores)
	make install
	```

	Some options are available to not compile everything:
	* WITH_ASSIMP  -> compile and use Assimp library 
	* WITH_ZINRI -> compile and use Zinri library 
	* WITH_PYTHONQT	-> needed by SCHNApps

* then compile CGoGN (the libs are generated in CGoGN/lib and some examples in CGoGN/bin):

	```
	cd CGoGN/build  
	cmake ..  
	make (-j x if you have x cores)  
	```

	in debug mode:  
	```
	cd ../buildDebug  
	cmake ..  
	make  
	```

	Some options are available:

	* BUILD_SHARED_LIBS  (F) experimental !
	* ONELIB	-> allow compilation in one lib (libcgogn.a) instead of four.
	* WITH_ASSIMP  -> use Assimp library (auto setted by third party compiling)
	* WITH_ZINRI -> use Zinri library (auto setted by third party compiling)
	* WITH_QT	-> to minimize dependencies and compilation time
	* WITH_GLEWMX  -> to use GLEWMX (for VRJuggler users)

72

Sylvain Thery's avatar
Sylvain Thery committed
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
* we can then compile SCHNApps and the provided plugins :
	
	```
	cd CGoGN/SCHNApps/build  
	cmake ..  
	make (-j x if you have x cores)  
	```

	in debug mode:
	```
	cd ../buildDebug  
	cmake ..  
	make  
	```

Libraries are generated in lib/Release and lib/Debug
Binaries are generated in bin/Release and bin/Debug


Examples of data (trianbgz, off, etc.. files) are available at the following address:
https://iggservis.u-strasbg.fr/Data/data.zip