README.linux 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. Then do the usual
  21. ./configure
  22. 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:
  23. ./configure --with-boost-libdir=/usr/lib64
  24. Another note on ubuntu(posible others to) - create symlincs to correct libnames in /usr/lib
  25. eg:
  26. sudo ln -s libswscale.so.0.7.1 libswscale.so
  27. sudo ln -s libavformat.so.52 libavformat.so
  28. Then build vcmi:
  29. make
  30. That will generate vcmiclient, vcmiserver as well as 3 .so libraries.
  31. II. Installing Heroes of Might and Magic 3
  32. VCMI needs an installed version of Heroes III as well as WoG on top of it.
  33. The version of Heroes needed is (I think!) Shadow of Death or Complete.
  34. Wog can be downloaded from: http://www.maps4heroes.com/heroes3/files/allinone_358f.zip
  35. Wine can be used to install both.
  36. Once both programs are installed, you can install VCMI.
  37. 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:
  38. mv sprites /PATH_TO_H3_DIR/Sprites
  39. mv Data/* /PATH_TO_H3_DIR/Data
  40. mv Fonts Games /PATH_TO_H3_DIR/
  41. If you also have the original linux version of Heroes, you can slso install the videos:
  42. cp -a /PATH_TO_CDROM/data/video /PATH_TO_H3_DIR/Data
  43. III. Installing VCMI
  44. Since VCMI is still in development, there's no install procedure, although something like
  45. DESTDIR=/path/to/heroes3 make install
  46. might work.
  47. For development puposes, it's better to use links. Go to your new Heroes3 directory, and type:
  48. ln -s /PATH_TO_VCMI/client/vcmiclient
  49. ln -s /PATH_TO_VCMI/server/vcmiserver
  50. ln -s /PATH_TO_VCMI/config
  51. ln -s /PATH_TO_VCMI/AI/GeniusAI/.libs AI
  52. And start ./vcmiclient