README 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. AnKi build system is very Linux specific (GNU make only) at the moment. It
  2. also requires a few extra development libraries. You can also find a custom
  3. build system that generates GNU makefiles.
  4. 1) Required libraries
  5. AnKi requires a few up to date versions of some libraries. The libraries are:
  6. - Bullet Physics
  7. - SDL ver 1.3
  8. - GLEW
  9. So before generating makefiles or building AnKi you have to download from
  10. their repositories and build the above libraries. Instructions follow. You can
  11. alternately use the script download-and-build-externals.sh
  12. 1.1) Bullet Physics Library
  13. From now on the AnKi requires the Bullet physics library. You need CMake and
  14. SVN installed.
  15. 1) Go to the root AnKi path (where src, shaders and blenderscripts are)
  16. 2) cd ..
  17. 3) svn checkout http://bullet.googlecode.com/svn/trunk/ bullet_svn
  18. 4) cd bullet_svn
  19. 5) cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release
  20. 6) make
  21. 1.2) SDL ver 1.3
  22. We need SDL ver 1.3 for creating OpenGL 3.x context. You need to have the
  23. Mercurial and autoconf installed.
  24. 1) Go to the root AnKi path (where src, shaders and blenderscripts are)
  25. 2) cd ..
  26. 3) hg clone http://hg.libsdl.org/SDL SDL-hg
  27. 4) cd SDL-hg
  28. 5) ./autogen.sh
  29. 6) ./configure
  30. 7) make
  31. 1.3) GLEW
  32. The latest GLEW provides us with OpenGL 3 and 4 extensions. Needs SVN and a
  33. Unix environment (for step 5).
  34. 1) Go to the root AnKi path (where src, shaders and blenderscripts are)
  35. 2) cd ..
  36. 3) svn co https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew glew
  37. 4) cd glew
  38. 5) make extensions
  39. 6) make
  40. 2) Generating makefiles and building AnKi
  41. There are 4 build targets in this folder. There is also a build system that
  42. generates GNU makefiles (it requires Python 3 installed). If you want to
  43. generate the makefile for the debug target (for example) do the following:
  44. 1) cd <path to anki>/build/debug
  45. 2) ../genmakefile.py
  46. Now there is an updated "Makefile". To build just type:
  47. 3) make
  48. And the build process will begin.
  49. The gen.cfg.py files contain the build options of every target. Their format
  50. is pretty straightforward and minimal.
  51. WARNING: Sometimes I forget to update all the targets. The debug is always
  52. updated though.