X86PC RedHat5.5 operating system resource Introduction: Ghost is the source code of xianjian. [Embedded] xianjian game transplantation source code and dependent Library source code download see http://www.linuxidc.co
X86-x86-shangjian Transplantation
Platform: x86PC RedHat5.5 Operating System
Resource Introduction: After decompressing the sdl.tar package, there are three compression packages: data.tar lib.tar sdlpal.tar. data.tar is the runtime resource of xianjian. lib.tar is the compilation and Runtime Library of xianjian. sdlpal.tar is the source code of xianjian.
[Embedded] xianjian game transplantation source code and dependent Library source code download see http://www.linuxidc.com/Linux/2012-12/75555.htm
1. First, compile and install the library required for the compilation and running of xianjian
1. Install freetype
[Root @ localhost lib] # tar-zxvf freetype-2.3.11.tar.gz
[Root @ localhost lib] # freetype-2.3.11 cd
[Root @ localhost freetype-2.3.11] #./configure
[Root @ localhost freetype-2.3.11] # make-j4
[Root @ localhost freetype-2.3.11] # make install
2. Install zlib
[Root @ localhost lib] # tar-zxvf zlib-1.2.3.tar.gz
[Root @ localhost lib] # zlib-1.2.3 cd
[Root @ localhost zlib-1.2.3] #./configure -- enable-shared
[Root @ localhost zlib-1.2.3] # make-j4
[Root @ localhost zlib-1.2.3] # make install
3. Install libiconv
[Root @ localhost lib] # tar-zxvf libiconv-1.13.1.tar.gz
[Root @ localhost lib] # libiconv-1.13.1 cd
[Root @ localhost libiconv-1.13.1] #./configure
[Root @ localhost libiconv-1.13.1] # make-j4
[Root @ localhost libiconv-1.13.1] # make install
4. Install libmad
[Root @ localhost lib] # tar-zxvf libmad-0.15.1b.tar.gz
[Root @ localhost lib] # libmad-0.15.1b cd
[Root @ localhost libmad-0.15.1b] #./configure
[Root @ localhost libmad-0.15.1b] # make-j4
[Root @ localhost libmad-0.15.1b] # make install
5. Install composer SRC
[Root @ localhost lib] # tar-zxvf restart src.v6b.tar.gz
[Root @ localhost lib] # jpeg-6b/cd/
[Root @ localhost jpeg-6b] #./configure
[Root @ localhost jpeg-6b] # mkdir-p/usr/local/man/man1
[Root @ localhost jpeg-6b] # make-j4
[Root @ localhost jpeg-6b] # make install6. install libpng
[Root @ localhost lib] # tar-jxvf libpng-1.2.19.tar.bz2
[Root @ localhost lib] # libpng-1.2.19 cd
[Root @ localhost libpng-1.2.19] #./configure
[Root @ localhost libpng-1.2.19] # make-j4
[Root @ localhost libpng-1.2.19] # make install
7. Install SDL
[Root @ localhost lib] # tar-zxvf SDL-1.2.14.tar.gz
[Root @ localhost lib] # SDL-1.2.14 cd
[Root @ localhost SDL-1.2.14] #./configure
[Root @ localhost SDL-1.2.14] # make-j4
[Root @ localhost SDL-1.2.14] # make install
8. Install SDL_ttf
[Root @ localhost lib] # tar-zxvf SDL_ttf-2.0.9.tar.gz
[Root @ localhost lib] # SDL_ttf-2.0.9 cd
[Root @ localhost SDL_ttf-2.0.9] #./configure
[Root @ localhost SDL_ttf-2.0.9] # make-j4
[Root @ localhost SDL_ttf-2.0.9] # make install
9. Install SDL_image
[Root @ localhost lib] # tar-zxvf SDL_image-1.2.8.tar.gz
[Root @ localhost lib] # SDL_image-1.2.8 cd
[Root @ localhost SDL_image-1.2.8] #./configure
[Root @ localhost SDL_image-1.2.8] # make-j4
[Root @ localhost SDL_image-1.2.8] # make install
10. Install SDL_mixer
[Root @ localhost lib] # tar-zxvf SDL_mixer-1.2.9.tar.gz
[Root @ localhost lib] # SDL_mixer-1.2.9 cd
[Root @ localhost SDL_mixer-1.2.9] #./configure -- enable-music-mp3-mad-gpl
-- Enable-music-mp3 = no
[Root @ localhost SDL_mixer-1.2.9] # make-j4
[Root @ localhost SDL_mixer-1.2.9] # make install
Ii. Compile xianjian
[Root @ localhost sdl] # cd sdlpal
[Root @ localhost sdlpal] # make-j4
3. Copy the compiled xianjian executable program to the running Resource Directory of xianjian.
[Root @ localhost sdlpal] # cp dist/Debug/GNU-Linux-x86/sdlpal ../data/
[Root @ localhost sdlpal] # cd ../data/4. All running resource files must be in lowercase.
[Root @ localhost data] # mv WOR16.FON wor16.fon
[Root @ localhost data] # mv M. MSG m. msg
4. Run xianjian
[Root @ localhost data] #./sdlpal