README.linux 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. Create a directory /YOUR_INSTALL_PATH/vcmi (such as
  23. /usr/local/share/games/vcmi) that will contain the game data files. The /vcmi at the end is necessary.
  24. Then run configure:
  25. ./configure --datadir=/YOUR_INSTALL_PATH/ --bindir=/YOUR_INSTALL_PATH/vcmi --libdir=/YOUR_INSTALL_PATH/
  26. On 64 bits linux (such as OpenSUSE but not Ubuntu), if the boost
  27. libraries are installed in /usr/lib64, configure will not find them
  28. and will fail. Until this is fixed, add the following option to
  29. ./configure: --with-boost-libdir=/usr/lib64
  30. If you want to use the Intel C++ compiler, add the following option to ./configure:
  31. CXX="icc -diag-disable 383,981,1418,869,1563,2259,1782,444,271,1,10156,1419"
  32. Then build vcmi:
  33. make
  34. That will generate vcmiclient, vcmiserver as well as 3 .so libraries.
  35. II. Installing Heroes of Might and Magic 3
  36. VCMI needs an installed version of Heroes III as well as WoG on top of
  37. it. The version of Heroes needed is (I think!) either Shadow of Death
  38. 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. Install Heroes 3 and Wog. Then move all the installed files into
  42. /YOUR_INSTALL_PATH/vcmi. For instance that will create
  43. /YOUR_INSTALL_PATH/vcmi/Data.
  44. Once both programs are installed, you can install VCMI.
  45. Download the windows VCMI release (at time of writing:
  46. http://vcmi.antypika.aplu...=download&id=14)
  47. and extract it in a private directory. Populate /YOUR_INSTALL_PATH/vcmi:
  48. mv sprites /YOUR_INSTALL_PATH/vcmi/Sprites
  49. mv Data/* /YOUR_INSTALL_PATH/vcmi/Data
  50. mv Fonts Games /YOUR_INSTALL_PATH/vcmi/
  51. If you also have the original linux version of Heroes, you can also install the videos:
  52. cp -a /PATH_TO_CDROM/data/video /YOUR_INSTALL_PATH/vcmi/Data
  53. III. Installing VCMI
  54. Since VCMI is still in development, there's no install procedure, although something like
  55. DESTDIR=/path/to/heroes3 make install
  56. will work.
  57. For development puposes, it's better to use links. Go
  58. to /YOUR_INSTALL_PATH/vcmi, and type:
  59. ln -s /PATH_TO_VCMI/client/vcmiclient
  60. ln -s /PATH_TO_VCMI/server/vcmiserver
  61. ln -s /PATH_TO_VCMI/config
  62. ln -s /PATH_TO_VCMI/AI/GeniusAI/.libs/GeniusAI.so
  63. And start ./vcmiclient