Cant compile - no png support

Get help with compiling or installing the game, and discuss announcements of new official releases.

Moderator: Forum Moderators

PhotonX
Posts: 24
Joined: October 3rd, 2007, 9:31 am
Location: Munich
Contact:

Post by PhotonX »

Does anybody have any suggestions? Unfortunately I can't even use the packaged version because Wesnoth isn't starting any more after the update from Feisty to Gutsy. Here is the error I get:

Code: Select all

photon@photon-desktop:~$ wesnoth
Battle for Wesnoth v1.2.6
Started on Tue Oct  9 15:51:57 2007

started game: 2231976381
error display: could not open image 'wesnoth-icon.png'
Checking video mode: 1280x1024x32...
32
setting mode to 1280x1024x32
error display: could not open image 'cursors-bw/normal.png'
null neutral surface...
loadscreen: Failed to load the logo: /usr/share/games/wesnoth/images/misc/logo.png
set locale to ru_RU@wesnoth
set locale to ru_RU@wesnoth
set locale to ru_RU@wesnoth
no valid cache found. Writing cache to '/home/photon/.wesnoth/cache/game.cfg-cache-v1.2.6-MEDIUM-NORMAL'
loadscreen: filesystem counter = 168
loadscreen: binarywml counter = 0
loadscreen: setconfig counter = 221
loadscreen: parser counter = 61119
started music
2062994243
showing title screen...
2062994243
null neutral surface...
error display: could not open image 'maps/wesnoth.png'
error display: Could not find title image
error display: could not open image 'misc/logo.png'
error display: Could not find game logo
error display: could not open image 'buttons/button.png'
error display: could not open image 'buttons/button-pressed.png'
error display: could not open image 'buttons/button-active.png'
Could not create button: Image could not be found

The strange thing is that all the "missing" png files are there (in /usr/share/games/wesnoth/images) but Wesnoth seems not to find them. :?

Code: Select all

photon@photon-desktop:~$ cd /usr/share/games/wesnoth/images/misc
photon@photon-desktop:/usr/share/games/wesnoth/images/misc$ dir
ball-ally.png                       menu2-background.png
ball-enemy.png                      menu2-border-botleft.png
ball-moved.png                      menu2-border-botright.png
ball-partmoved.png                  menu2-border-bottom.png
ball-unmoved.png                    menu2-border-left.png
bar-energy-ally.png                 menu2-border-right.png
bar-energy-enemy.png                menu2-border-topleft.png
bar-energy-moved.png                menu2-border-top.png
bar-energy-partmoved.png            menu2-border-topright.png
bar-energy.png                      menu-background.png
bar-energy-unmoved.png              menu-border-botleft.png
blank-hex.png                       menu-border-botright.png
blank.png                           menu-border-bottom.png
botleft-corner.png                  menu-border-left.png
botright-corner.png                 menu-border-right.png
character-box.png                   menu-border-topleft.png
compass-north.png                   menu-border-top.png
compass-south.png                   menu-border-topright.png
cross.png                           mine.png
disk.png                            minimap.png
dot.png                             nest-empty.png
dwarven-doors.png                   nest-full.png
ellipse-1.png                       poisoned.png
ellipse-bottom.png                  rightside-bg.png
ellipse-hero-bottom.png             rightside-bottom.png
ellipse-hero-selected-bottom.png    rightside-editor.png
ellipse-hero-selected-top.png       rightside.png
ellipse-hero-top.png                rocks.png
ellipse-leader-bottom.png           sand-clock.png
ellipse-leader-selected-bottom.png  schedule-afternoon.png
ellipse-leader-selected-top.png     schedule-dawn.png
ellipse-leader-top.png              schedule-dusk.png
ellipse-nozoc-bottom.png            schedule-firstwatch.png
ellipse-nozoc-selected-bottom.png   schedule-morning.png
ellipse-nozoc-selected-top.png      schedule-secondwatch.png
ellipse-nozoc-top.png               schedule-underground-illum.png
ellipse-selected-bottom.png         schedule-underground.png
ellipse-selected-top.png            selection2-background.png
ellipse-top.png                     selection2-border-botleft.png
experimental-rightside.png          selection2-border-botright.png
eye.png                             selection2-border-bottom.png
folder-icon.png                     selection2-border-left.png
font8x8.png                         selection2-border-right.png
foot-left-n.png                     selection2-border-topleft.png
foot-left-n-slow.png                selection2-border-top.png
foot-left-nw.png                    selection2-border-topright.png
foot-left-nw-slow.png               selection-border-botleft.png
foot-right-n.png                    selection-border-botright.png
foot-right-n-slow.png               selection-border-bottom.png
foot-right-nw.png                   selection-border-left.png
foot-right-nw-slow.png              selection-border-right.png
gold.png                            selection-border-topleft.png
hero-icon.png                       selection-border-top.png
icon-advance.png                    selection-border-topright.png
icon-amla-fullheal.png              slowed.png
icon-amla-tough-3.png               snowbits.png
icon-amla-tough.png                 sort-arrow.png
icon-ellipsis.png                   sort-arrow-reverse.png
income.png                          status-bg.png
invisible.png                       stone.png
leader-crown.png                    temple.png
lobby.png                           timeofday.png
logo.png                            tod-bright.png
mainmenu-background.png             top-bg.png
mainmenu-border-botleft.png         topleft-corner.png
mainmenu-border-botright.png        topright-corner.png
mainmenu-border-bottom.png          trash.png
mainmenu-border-left.png            unit.png
mainmenu-border-right.png           units.png
mainmenu-border-topleft.png         upkeep.png
mainmenu-border-top.png             villages.png
mainmenu-border-topright.png
The other images in the other subdirs (buttons, maps etc.) are also there.
PhotonX
Posts: 24
Joined: October 3rd, 2007, 9:31 am
Location: Munich
Contact:

Post by PhotonX »

Ok, the problem is solved after a new clean Gutsy install. :)
vaen
Posts: 3
Joined: January 5th, 2008, 9:25 am

same problem

Post by vaen »

Hi,

I have the same problem actually i am stuck for 1 hr figuring out how to solve this I already did what the other poster post but the same problem occur.


checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether NLS is requested... yes
checking for msgfmt... /usr/local/bin/msgfmt
checking for gmsgfmt... /usr/local/bin/msgfmt
checking for xgettext... /usr/local/bin/xgettext
checking for msgmerge... /usr/local/bin/msgmerge
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking whether NLS is requested... yes
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for ranlib... ranlib
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for X... no
checking for XOpenDisplay in -lX11... no
checking for pngmeta... no
checking for sdl-config... /usr/local/bin/sdl-config
checking for fribidi-config... no
configure: WARNING: *** FRIBIDI not found.
checking for python... /usr/bin/python
checking Python version and location... /usr/bin/python, 2.5, /usr
checking whether Python is at least 2.4... yes
checking for grep that handles long lines and -e... /bin/grep
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... yes
checking for po4a... no
checking for asciidoc... no
checking for dos2unix... no
checking for xsltproc... no
checking for libtool... no
checking for IMG_Load in -lSDL_image... yes
checking for Mix_OpenAudio in -lSDL_mixer... yes
checking for SDLNet_Init in -lSDL_net... yes
checking for freetype-config... /usr/local/bin/freetype-config
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking SDL.h usability... yes
checking SDL.h presence... yes
checking for SDL.h... yes
checking SDL_image.h usability... yes
checking SDL_image.h presence... yes
checking for SDL_image.h... yes
checking SDL_mixer.h usability... yes
checking SDL_mixer.h presence... yes
checking for SDL_mixer.h... yes
checking SDL_net.h usability... yes
checking SDL_net.h presence... yes
checking for SDL_net.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for mode_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for error_at_line... yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for floor... no
checking for socket... yes
checking for strtoul... yes
checking for PNG support in SDL_image... no
configure: error: *** Either your test image has vanished, or SDL_image has no PNG support!

i´m compiling on Kubuntu os. thanks in advance
Post Reply