SDL version problem while compiling wesnoth
Moderator: Forum Moderators
SDL version problem while compiling wesnoth
Hi Guys,
I run ./configure while i compile the wesnoth on the linux. There is the output as following:
....
....
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking Python.h usability... yes
checking Python.h presence... yes
checking for Python.h... yes
checking for Py_Finalize in -lpython2.5... yes
checking for libpng-config... /usr/bin/libpng-config
checking for SDL - version >= 1.2.7 and SDL_ttf - version >= 2.0.8... no
configure: error: *** Please upgrade your SDL version
In fact, I have already installed the SDL and SDL_ttf. As following:
[root@localhost test]# rpm -i SDL-1.2.13-1.x86_64.rpm
package SDL-1.2.13-1 is already installed
[root@localhost test]# rpm -i SDL_ttf-2.0.9-1.i386.rpm
package SDL_ttf-2.0.9-1 is already installed
I don't know the real reason about the bug.
Who can give me a hint?
Thanks advanced!
Cliff
I run ./configure while i compile the wesnoth on the linux. There is the output as following:
....
....
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking Python.h usability... yes
checking Python.h presence... yes
checking for Python.h... yes
checking for Py_Finalize in -lpython2.5... yes
checking for libpng-config... /usr/bin/libpng-config
checking for SDL - version >= 1.2.7 and SDL_ttf - version >= 2.0.8... no
configure: error: *** Please upgrade your SDL version
In fact, I have already installed the SDL and SDL_ttf. As following:
[root@localhost test]# rpm -i SDL-1.2.13-1.x86_64.rpm
package SDL-1.2.13-1 is already installed
[root@localhost test]# rpm -i SDL_ttf-2.0.9-1.i386.rpm
package SDL_ttf-2.0.9-1 is already installed
I don't know the real reason about the bug.
Who can give me a hint?
Thanks advanced!
Cliff
Re: SDL version problem while compiling wesnoth
You do also need the -dev (or -devel) version of all the libs. The plain libs itself are not enough. Install those packages and everything should work nicely.
Re: SDL version problem while compiling wesnoth
Hi ivanovic,
Thanks a lot at first.
I have succeeded to compile the game as what you said.
However, I encounter another problem:
When I run the game, there is the error output as following:
[root@localhost src]# ./wesnoth
Battle for Wesnoth v1.5.0
Started on Thu May 8 22:04:37 2008
Data at '/usr/local/share/wesnoth'
20080508 22:04:37 error config: Could not open file data/hardwired/fonts.cfg
could not initialize fonts
what libs should I need to install?
Thanks a lot at first.
I have succeeded to compile the game as what you said.
However, I encounter another problem:
When I run the game, there is the error output as following:
[root@localhost src]# ./wesnoth
Battle for Wesnoth v1.5.0
Started on Thu May 8 22:04:37 2008
Data at '/usr/local/share/wesnoth'
20080508 22:04:37 error config: Could not open file data/hardwired/fonts.cfg
could not initialize fonts
what libs should I need to install?
Re: SDL version problem while compiling wesnoth
You have not run 'make install'. So of course the files are not found. Once you run 'make install', the game (and all the data files) should be installed to '/usr/local/share/wesnoth'.
If you do not want to install it into your system but run it locally, you have to use when starting the game to tell it to use the current dir as datadir.
Beside this you should not run the game as root. This is some general security thing...
If you do not want to install it into your system but run it locally, you have to use
Code: Select all
./src/wesnoth .
Beside this you should not run the game as root. This is some general security thing...
Re: SDL version problem while compiling wesnoth
ya. Good. Thanks!
I use the kdevelop to debug the wesnoth and encounter a problem.
I use the default project file ,wesnoth.kdevelop.
If I don't install the wesnoth,and debug it in the local directory.
How should I set the "run option" of kdevelop?
I use the kdevelop to debug the wesnoth and encounter a problem.
I use the default project file ,wesnoth.kdevelop.
If I don't install the wesnoth,and debug it in the local directory.
How should I set the "run option" of kdevelop?