Compiling Wesnoth in Linux mandrake 9.1 (one more)

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
mdubbelv

Compiling Wesnoth in Linux mandrake 9.1 (one more)

Post by mdubbelv »

I installed Wesnoth on my laptop running Mandrake 9.1 sucesfully...

But when i install on my stationary computer who also runs Mandrake 9.1
it does not work. I think i have all the SDL running ...

"

$ rpm -qa|grep -e SDL

libSDL_mixer1.2-1.2.4-5mdk
SDL_image-devel-1.2.3-1
SDL-devel-1.2.6-1
libSDL1.2-1.2.5-5mdk
perl-SDL-1.20.0-1mdk
SDL_mixer-devel-1.2.5-1
libSDL_image1.2-1.2.2-4mdk
libSDL_net1.2-1.2.4-5mdk
libSDL_ttf2.0-2.0.5-4mdk
SDL_ttf-devel-2.0.6-1

"

but when i try to compile wesnoth i get a hord of errors... :roll:

"

$ make
g++ -g -O2 -Wall -I. -Isrc -Isrc/tools -Isrc/widgets `sdl-config --cflags` `free
type-config --cflags` -c src/ai_move.cpp -o src/ai_move.o
/bin/sh: line 1: freetype-config: command not found
g++ -g -O2 -Wall -I. -Isrc -Isrc/tools -Isrc/widgets `sdl-config --cflags` `free
type-config --cflags` -c src/config.cpp -o src/config.o
/bin/sh: line 1: freetype-config: command not found

"

"

/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x15e): In function `IMG_LoadPNG_RW':
: undefined reference to `png_get_IHDR'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x16d): In function `IMG_LoadPNG_RW':
: undefined reference to `png_set_strip_16'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x179): In function `IMG_LoadPNG_RW':
: undefined reference to `png_set_packing'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x18e): In function `IMG_LoadPNG_RW':
: undefined reference to `png_set_expand'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x1a3): In function `IMG_LoadPNG_RW':
: undefined reference to `png_get_valid'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x1c6): In function `IMG_LoadPNG_RW':
: undefined reference to `png_get_tRNS'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x20c): In function `IMG_LoadPNG_RW':
: undefined reference to `png_set_expand'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x22a): In function `IMG_LoadPNG_RW':
: undefined reference to `png_set_gray_to_rgb'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x23d): In function `IMG_LoadPNG_RW':
: undefined reference to `png_read_update_info'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x265): In function `IMG_LoadPNG_RW':
: undefined reference to `png_get_IHDR'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x398): In function `IMG_LoadPNG_RW':
: undefined reference to `png_read_image'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x3a8): In function `IMG_LoadPNG_RW':
: undefined reference to `png_read_end'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x463): In function `IMG_LoadPNG_RW':
: undefined reference to `png_destroy_read_struct'
collect2: ld returned 1 exit status
make: *** [wesnoth] Error 1

"

Enyone know what to make of this?
fmunoz
Founding Artist
Posts: 1469
Joined: August 17th, 2003, 10:04 am
Location: Spain
Contact:

Post by fmunoz »

Seems that you need install libpng and libpng-devel.
I compiled it in Linux Mandrake 9.1, there is a post about it (including some posible problems with the default libSDL_mixer)
If you have more ploblems you can go to irc (irc.freenode.org) and join the #wesnoth chanel or post here.
mdubbelv

Post by mdubbelv »

I checked and installed those who was needed . . .

"$ rpm -qa|grep -e vorbis

libvorbisfile3-1.0-6mdk
libvorbis0-1.0-6mdk
libvorbisenc2-1.0-6mdk
vorbis-tools-1.0-2mdk
"

"$ rpm -qa|grep -e ogg
libogg0-1.0-3mdk
"

"$ rpm -qa|grep -e png
libpng-devel-2.1.0.3-1
libpng3-1.2.4-3.2mdk
libpng3-devel-1.2.4-3.2mdk
libpng-2.1.0.3-1
"

But i still get . . .

"/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x15e): In function `IMG_LoadPNG_RW':
: undefined reference to `png_get_IHDR'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x16d): In function `IMG_LoadPNG_RW':
: undefined reference to `png_set_strip_16'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x179): In function `IMG_LoadPNG_RW':
: undefined reference to `png_set_packing'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x18e): In function `IMG_LoadPNG_RW':
: undefined reference to `png_set_expand'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x1a3): In function `IMG_LoadPNG_RW':
"

": undefined reference to `_XFlush'
/usr/lib/libSDL.a(XF86VMode.lo)(.text+0x1630): In function `SDL_XF86VidModeValidateModeLine':
: undefined reference to `_XFlush'
/usr/lib/libSDL.a(XF86VMode.lo)(.text+0x16fd): In function `SDL_XF86VidModeValidateModeLine':
: undefined reference to `_XSend'
/usr/lib/libSDL.a(XF86VMode.lo)(.text+0x170e): In function `SDL_XF86VidModeValidateModeLine':
"

"/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x265): In function `IMG_LoadPNG_RW':
: undefined reference to `png_get_IHDR'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x398): In function `IMG_LoadPNG_RW':
: undefined reference to `png_read_image'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x3a8): In function `IMG_LoadPNG_RW':
: undefined reference to `png_read_end'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x463): In function `IMG_LoadPNG_RW':
: undefined reference to `png_destroy_read_struct'
collect2: ld returned 1 exit status
make: *** [wesnoth] Error 1
"


:evil:
fmunoz
Founding Artist
Posts: 1469
Joined: August 17th, 2003, 10:04 am
Location: Spain
Contact:

Post by fmunoz »

the SDL libraries that came with Mandrake dont have a very nice dependency behaivor.
Try installin (to fix the png issues)
libimlib1-devel-1.9.14-5mdk
imlib-1.9.14-5mdk
libimlib1-1.9.14-5mdk
and
libSDL_ttf2.0-devel-2.0.5-4mdk

Or rebuild the SDL image (with rpm --rebuild XXXX.src.rpm and after them install the files it put in /usr/src/RPM/RPMS/i586 or such)
mdubbelv

Post by mdubbelv »

Ok, i installed those that you said i should install. (only one was needed,
rest said "Everything already installed".

I diden't get as much errors as the first time but still...

"/usr/lib/libSDL_mixer.a(music_ogg.o)(.text+0xca): In function `OGG_new':
: undefined reference to `ov_open'
/usr/lib/libSDL_mixer.a(music_ogg.o)(.text+0x16e): In function `OGG_getsome':
: undefined reference to `ov_read'
/usr/lib/libSDL_mixer.a(music_ogg.o)(.text+0x1ab): In function `OGG_getsome':
: undefined reference to `ov_info'
/usr/lib/libSDL_mixer.a(music_ogg.o)(.text+0x35c): In function `OGG_delete':
: undefined reference to `ov_clear'
/usr/lib/libSDL_mixer.a(music_ogg.o)(.text+0x38a): In function `OGG_jump_to_time':
: undefined reference to `ov_time_seek'
/usr/lib/libSDL_mixer.a(load_ogg.o)(.text+0x146): In function `Mix_LoadOGG_RW':
: undefined reference to `ov_open_callbacks'
/usr/lib/libSDL_mixer.a(load_ogg.o)(.text+0x17d): In function `Mix_LoadOGG_RW':
: undefined reference to `ov_info'
/usr/lib/libSDL_mixer.a(load_ogg.o)(.text+0x1cd): In function `Mix_LoadOGG_RW':
: undefined reference to `ov_pcm_total'
/usr/lib/libSDL_mixer.a(load_ogg.o)(.text+0x238): In function `Mix_LoadOGG_RW':
: undefined reference to `ov_read'
/usr/lib/libSDL_mixer.a(load_ogg.o)(.text+0x25a): In function `Mix_LoadOGG_RW':
: undefined reference to `ov_clear'
/usr/lib/libSDL_image.a(IMG_jpg.o)(.text+0x16c): In function `jpeg_SDL_RW_src':
: undefined reference to `jpeg_resync_to_restart'
/usr/lib/libSDL_image.a(IMG_jpg.o)(.text+0x1d7): In function `IMG_LoadJPG_RW':
: undefined reference to `jpeg_std_error'
/usr/lib/libSDL_image.a(IMG_jpg.o)(.text+0x218): In function `IMG_LoadJPG_RW':
: undefined reference to `jpeg_destroy_decompress'
/usr/lib/libSDL_image.a(IMG_jpg.o)(.text+0x254): In function `IMG_LoadJPG_RW':
: undefined reference to `jpeg_CreateDecompress'
/usr/lib/libSDL_image.a(IMG_jpg.o)(.text+0x26f): In function `IMG_LoadJPG_RW':
: undefined reference to `jpeg_read_header'
/usr/lib/libSDL_image.a(IMG_jpg.o)(.text+0x28c): In function `IMG_LoadJPG_RW':
: undefined reference to `jpeg_calc_output_dimensions'
/usr/lib/libSDL_image.a(IMG_jpg.o)(.text+0x2e5): In function `IMG_LoadJPG_RW':
: undefined reference to `jpeg_start_decompress'
/usr/lib/libSDL_image.a(IMG_jpg.o)(.text+0x320): In function `IMG_LoadJPG_RW':
: undefined reference to `jpeg_read_scanlines'
/usr/lib/libSDL_image.a(IMG_jpg.o)(.text+0x340): In function `IMG_LoadJPG_RW':
: undefined reference to `jpeg_finish_decompress'
/usr/lib/libSDL_image.a(IMG_jpg.o)(.text+0x352): In function `IMG_LoadJPG_RW':
: undefined reference to `jpeg_destroy_decompress'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x29): In function `IMG_isPNG':
: undefined reference to `png_sig_cmp'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x56): In function `png_read_data':
: undefined reference to `png_get_io_ptr'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0xb2): In function `IMG_LoadPNG_RW':
: undefined reference to `png_create_read_struct'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0xd5): In function `IMG_LoadPNG_RW':
: undefined reference to `png_create_info_struct'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x123): In function `IMG_LoadPNG_RW':
: undefined reference to `png_set_read_fn'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x133): In function `IMG_LoadPNG_RW':
: undefined reference to `png_read_info'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x15e): In function `IMG_LoadPNG_RW':
: undefined reference to `png_get_IHDR'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x16d): In function `IMG_LoadPNG_RW':
: undefined reference to `png_set_strip_16'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x179): In function `IMG_LoadPNG_RW':
: undefined reference to `png_set_packing'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x18e): In function `IMG_LoadPNG_RW':
: undefined reference to `png_set_expand'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x1a3): In function `IMG_LoadPNG_RW':
: undefined reference to `png_get_valid'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x1c6): In function `IMG_LoadPNG_RW':
: undefined reference to `png_get_tRNS'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x20c): In function `IMG_LoadPNG_RW':
: undefined reference to `png_set_expand'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x22a): In function `IMG_LoadPNG_RW':
: undefined reference to `png_set_gray_to_rgb'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x23d): In function `IMG_LoadPNG_RW':
: undefined reference to `png_read_update_info'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x265): In function `IMG_LoadPNG_RW':
: undefined reference to `png_get_IHDR'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x398): In function `IMG_LoadPNG_RW':
: undefined reference to `png_read_image'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x3a8): In function `IMG_LoadPNG_RW':
: undefined reference to `png_read_end'
/usr/lib/libSDL_image.a(IMG_png.o)(.text+0x463): In function `IMG_LoadPNG_RW':
: undefined reference to `png_destroy_read_struct'
collect2: ld returned 1 exit status
make: *** [wesnoth] Error 1
"
fmunoz
Founding Artist
Posts: 1469
Joined: August 17th, 2003, 10:04 am
Location: Spain
Contact:

Post by fmunoz »

Damm Mandrake... some packages have hidden dependencies and doesnt install them right.

To fix the ogg problems (1st half part) I had to rebuild the libSDL_mixer and reinstall it.
rpm --rebuild SDL_mixer-1.2.4-5mdk.src.rpm
rpm -i /usr/src/RPM/RPMS/i586/libSDL_mixer1.2-*

Seems that the png issues have to be fixed in the same way.
try rebuilding the libpng source package.

If you can't do it I could send you a precompiled binary (from the latest and hottest bug free CVS code :-)
mail me at paco@arsfortunata.com
BrassJ
Posts: 60
Joined: October 9th, 2003, 6:19 am
Location: USA
Contact:

Post by BrassJ »

fmunoz wrote: If you can't do it I could send you a precompiled binary (from the latest and hottest bug free CVS code :-)
mail me at paco@arsfortunata.com
Can we put a Mandrake binary on the downloads page?

** Nevermind, I read another post which explained why. I am trying to make a rpm currently, if it works, ya'll are welcome to it. **


P.S. I just compiled/installed it on my machine(mandrake 9.1) and once I had all of the sdl libraries, and the sdl development libraries installed, it compiled just fine. (The first time I have compiled in linux, :D next step, try and figure out how to create a rpm)
miyo
Posts: 2201
Joined: August 19th, 2003, 4:28 pm
Location: Finland

Post by miyo »

Binaries are listed at WesnothBinaries as stated in downloads-page (click the binary downloads). WesnothBinaries is wiki page so everyone can edit and add URLs to new binaries.

If you can't provide web space for the binary... ask Dave if he can arrange hosting space for your binary.

- Miyo
Post Reply