README.linux 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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,
  15. * sdl mixer
  16. * sdl image
  17. * sdl ttf
  18. * zlib
  19. Then do the usual
  20. ./configure
  21. 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:
  22. ./configure --with-boost-libdir=/usr/lib64
  23. Then build vcmi:
  24. make
  25. That will generate vcmiclient, vcmiserver as well as 3 .so libraries.
  26. II. Installing Heroes of Might and Magic 3
  27. VCMI needs an installed version of Heroes III as well as WoG on top of it.
  28. The version of Heroes needed is (I think!) Shadow of Death or Complete.
  29. Wog can be downloaded from: http://www.maps4heroes.com/heroes3/files/allinone_358f.zip
  30. Wine can be used to install both.
  31. Once both programs are installed, you can install VCMI.
  32. 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:
  33. mv sprites /PATH_TO_H3_DIR/Sprites
  34. mv Data/* /PATH_TO_H3_DIR/Data
  35. mv Fonts Games /PATH_TO_H3_DIR/
  36. III. Installing VCMI
  37. Since VCMI is still in development, there's no install procedure, although something like
  38. DESTDIR=/path/to/heroes3 make install
  39. might work.
  40. For development puposes, it's better to use links. Go to your new Heroes3 directory, and type:
  41. ln -s /PATH_TO_VCMI/client/vcmiclient
  42. ln -s /PATH_TO_VCMI/server/vcmiserver
  43. ln -s /PATH_TO_VCMI/config
  44. ln -s /PATH_TO_VCMI/AI/GeniusAI/.libs AI
  45. And start ./vcmiclient