README.linux 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. I. Getting the sources
  2. VCMI is still in development. You can get the sources with subversion:
  3. svn co https://vcmi.svn.sourceforge.net/svnroot/vcmi/trunk vcmi
  4. II. Compiling
  5. Optionaly, if you want to regenerate the build system, you will need the following tools:
  6. * libtool
  7. * automake
  8. * autoconf
  9. And then regenerate the build system with
  10. autoreconf -i
  11. To compile, at least the following packages (and their development counterparts) are needed to build:
  12. * libstdc++ devel
  13. * boost c++ libraries v1.36+ (1.35 will not work) (www.boost.org)
  14. * SDL and SDL-devel
  15. * SDL_mixer and SDL_mixer-devel
  16. * SDL_image and SDL_image-devel
  17. * SDL_ttf and SDL_ttf-devel
  18. * zlib and zlib-devel
  19. * the ffmpeg libraries (libavformat and libswscale). Their name could be libavformat-devel and libswscale-devel, or ffmpeg-libs-devel or similar names.
  20. On Ubuntu 9.04, run:
  21. sudo apt-get install g++ libsdl1.2debian-all libsdl-image1.2-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev zlib1g-dev libavformat-dev libswscale-dev libboost1.37-dev
  22. Then do the usual
  23. ./configure
  24. Note that on 64 bits linux, if the boost libraries are installed in /usr/lib64, configure will not find them and will fail. Until this is fixed, use:
  25. ./configure --with-boost-libdir=/usr/lib64
  26. Note: if you've not installed everything, some files will be missing, and you may want to hack your system (don't) such as:
  27. =============
  28. Another note on ubuntu(posible others to) - create symlincs to correct libnames in /usr/lib
  29. eg:
  30. sudo ln -s libswscale.so.0.7.1 libswscale.so
  31. sudo ln -s libavformat.so.52 libavformat.so
  32. =============
  33. Then build vcmi:
  34. make
  35. That will generate vcmiclient, vcmiserver as well as 3 .so libraries.
  36. II. Installing Heroes of Might and Magic 3
  37. VCMI needs an installed version of Heroes III as well as WoG on top of it.
  38. The version of Heroes needed is (I think!) Shadow of Death or Complete.
  39. Wog can be downloaded from: http://www.maps4heroes.com/heroes3/files/allinone_358f.zip
  40. Wine can be used to install both.
  41. Once both programs are installed, you can install VCMI.
  42. Download the windows VCMI release (at time of writing: http://vcmi.antypika.aplus.pl/forum/dload.php?action=download&id=11) and extract it in a private directory. Then move some files to your Heroes3 directory:
  43. mv sprites /PATH_TO_H3_DIR/Sprites
  44. mv Data/* /PATH_TO_H3_DIR/Data
  45. mv Fonts Games /PATH_TO_H3_DIR/
  46. If you also have the original linux version of Heroes, you can also install the videos:
  47. cp -a /PATH_TO_CDROM/data/video /PATH_TO_H3_DIR/Data
  48. III. Installing VCMI
  49. Since VCMI is still in development, there's no install procedure, although something like
  50. DESTDIR=/path/to/heroes3 make install
  51. might work.
  52. For development puposes, it's better to use links. Go to your new Heroes3 directory, and type:
  53. ln -s /PATH_TO_VCMI/client/vcmiclient
  54. ln -s /PATH_TO_VCMI/server/vcmiserver
  55. ln -s /PATH_TO_VCMI/config
  56. ln -s /PATH_TO_VCMI/AI/GeniusAI/.libs AI
  57. And start ./vcmiclient