Compiling Wesnoth 1.4 on Ubuntu fails (missing png support)

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

Moderator: Forum Moderators

suitsmeveryfine
Posts: 9
Joined: March 16th, 2008, 10:58 pm
Location: Marseille
Contact:

Re: Compiling Wesnoth 1.4 on Ubuntu fails (missing png support)

Post by suitsmeveryfine »

Thanks people for trying to help me out!

AI: i found only the first one of those packages, i.e. libc6-dev - GNU C Library: Development Libraries and Header Files
This one wasn't there: libc6-dev-amd64 - GNU C Library: 64bit Development Libraries for AMD64

I didn't succeed with my installation but I received a different response this time:

Code: Select all

./configure --prefix=/opt/games/wesnoth-1.2 --enable-editor
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif'
ac_init_help=
ac_init_version=false
ac_install_sh='config/install-sh -c'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_link_default='$CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_ls_di='7684227 .'
ac_make=make
ac_msg='sources are in ., but `cd .'\'' does not work'
ac_must_keep_next=false
ac_new_set=
ac_new_val=
ac_objext=o
ac_old_set=
ac_old_val=
ac_optarg=yes
ac_option=--enable-editor
ac_pass=2
ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CXX
CXXFLAGS
CCC
XMKMF
CPP
CXXCPP'
ac_prev=
ac_prog=ld
ac_pwd=/home/paul/Desktop/Wesnoth/wesnoth-1.4
ac_pwd_ls_di='7684227 .'
ac_rmfiles=' a_out.exe a.exe conftest.exe a.out conftest a.* conftest.tar b.out'
ac_save_CC=gcc
ac_save_CFLAGS=
ac_save_IFS=' 
'
ac_save_c_werror_flag=
ac_save_ifs=' 
'
ac_signal=0
ac_site_file=/opt/games/wesnoth-1.4/etc/config.site
ac_srcdir_defaulted=yes
ac_status=0
ac_subst_files=
ac_subst_vars='SHELL
PATH_SEPARATOR
PACKAGE_NAME
PACKAGE_TARNAME
PACKAGE_VERSION
PACKAGE_STRING
PACKAGE_BUGREPORT
exec_prefix
prefix
program_transform_name
bindir
sbindir
libexecdir
datarootdir
datadir
sysconfdir
sharedstatedir
localstatedir
includedir
oldincludedir
docdir
infodir
htmldir
dvidir
pdfdir
psdir
libdir
localedir
mandir
DEFS
ECHO_C
ECHO_N
ECHO_T
LIBS
build_alias
host_alias
target_alias
build
build_cpu
build_vendor
build_os
host
host_cpu
host_vendor
host_os
target
target_cpu
target_vendor
target_os
INSTALL_PROGRAM
INSTALL_SCRIPT
INSTALL_DATA
am__isrc
CYGPATH_W
PACKAGE
VERSION
ACLOCAL
AUTOCONF
AUTOMAKE
AUTOHEADER
MAKEINFO
install_sh
STRIP
INSTALL_STRIP_PROGRAM
mkdir_p
AWK
SET_MAKE
am__leading_dot
AMTAR
am__tar
am__untar
MKINSTALLDIRS
USE_NLS
MSGFMT
GMSGFMT
XGETTEXT
MSGMERGE
CC
CFLAGS
LDFLAGS
CPPFLAGS
ac_ct_CC
EXEEXT
OBJEXT
DEPDIR
am__include
am__quote
AMDEP_TRUE
AMDEP_FALSE
AMDEPBACKSLASH
CCDEPMODE
am__fastdepCC_TRUE
am__fastdepCC_FALSE
INTL_MACOSX_LIBS
LIBICONV
LTLIBICONV
INTLLIBS
LIBINTL
LTLIBINTL
POSUB
RANLIB
TINYGUI_TRUE
TINYGUI_FALSE
SMALLGUI_TRUE
SMALLGUI_FALSE
OPTIPNG_TRUE
OPTIPNG_FALSE
OPTIPNG_BIN
LOWMEM_TRUE
LOWMEM_FALSE
DATADIR
LOCALEDIR
FULLLOCALEDIR
HAS_RELATIVE_LOCALEDIR
fifodir
serveruid
servergid
prefsdir
PREFSDIR_TRUE
PREFSDIR_FALSE
STATIC_TRUE
STATIC_FALSE
PYTHON_INSTALL_TRUE
PYTHON_INSTALL_FALSE
GAME_TRUE
GAME_FALSE
SERVER_TRUE
SERVER_FALSE
CAMPAIGNSERVER_TRUE
CAMPAIGNSERVER_FALSE
TESTS_TRUE
TESTS_FALSE
EDITOR_TRUE
EDITOR_FALSE
USESVN_TRUE
USESVN_FALSE
TOOLS_TRUE
TOOLS_FALSE
GCC_TRUE
GCC_FALSE
INCLUDEDINTL_TRUE
INCLUDEDINTL_FALSE
INSTALLDATA_TRUE
INSTALLDATA_FALSE
DUMMYLOCALES_TRUE
DUMMYLOCALES_FALSE
APP_ENTRY
APP_ICON
GAME_DESKTOP_ENTRY_TRUE
GAME_DESKTOP_ENTRY_FALSE
CXX
CXXFLAGS
ac_ct_CXX
CXXDEPMODE
am__fastdepCXX_TRUE
am__fastdepCXX_FALSE
XMKMF
CPP
X_CFLAGS
X_PRE_LIBS
X_LIBS
X_EXTRA_LIBS
X11_TRUE
X11_FALSE
PNGMETA
SDL_CONFIG
FRIBIDI_CONFIG
FRIBIDI_CFLAGS
FRIBIDI_LIBS
FRIBIDI_TRUE
FRIBIDI_FALSE
PYTHON
GREP
EGREP
PYTHON_CFLAGS
PYTHON_LIBS
pkgpythondir
PYTHON_TRUE
PYTHON_FALSE
PNG_CONFIG
PNG_CFLAGS
PNG_LIBS
LIBPNG_TRUE
LIBPNG_FALSE
PO4A
PO4AUPDATE_TRUE
PO4AUPDATE_FALSE
ASCIIDOC
DOS2UNIX
XSLTPROC
MANUALUPDATE_TRUE
MANUALUPDATE_FALSE
LTOOL
LDPREFIX
SDL_LIBS
SDL_IMAGE_LIBS
SDL_MIXER_LIBS
SDL_NET_LIBS
FREETYPE_CONFIG
FREETYPE_LIBS
SDL_CFLAGS
LIBOBJS
DISTCHECK_CONFIGURE_FLAGS
BOOST_CPPFLAGS
CXXCPP
BOOST_IOSTREAMS_LDFLAGS
BOOST_IOSTREAMS_LIBS
BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS
BOOST_UNIT_TEST_FRAMEWORK_LIBS
BOOST_TEST_DYN_LINK_TRUE
BOOST_TEST_DYN_LINK_FALSE
BOOST_AUTO_TEST_TRUE
BOOST_AUTO_TEST_FALSE
LITE_TRUE
LITE_FALSE
DATA_FILES
FONT_FILES
IMAGE_FILES
MUSIC_FILES
SOUND_FILES
LTLIBOBJS'
ac_test_CFLAGS=
ac_tool_prefix=
ac_try='./$ac_file'
ac_unique_file=src/actions.cpp
ac_val='${datarootdir}/man'
ac_var=CXXCPP
ac_word=ranlib
acl_cv_hardcode_direct=no
acl_cv_hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
acl_cv_hardcode_libdir_separator=
acl_cv_hardcode_minus_L=no
acl_cv_libext=a
acl_cv_path_LD=/usr/bin/ld
acl_cv_prog_gnu_ld=yes
acl_cv_rpath=done
acl_cv_shlibext=so
acl_cv_wl=-Wl,
acl_final_exec_prefix=/opt/games/wesnoth-1.4
acl_final_prefix=/opt/games/wesnoth-1.4
acl_save_exec_prefix=NONE
acl_save_prefix=/opt/games/wesnoth-1.4
additional_includedir=/opt/games/wesnoth-1.4/include
additional_libdir=/opt/games/wesnoth-1.4/lib
already_handled=
am__api_version=1.10
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=
am__include=include
am__leading_dot=.
am__quote=
am__tar='tar --format=ustar -chf - "$$tardir"'
am__tar_='tar --format=ustar -chf - "$tardir"'
am__untar='tar -xf -'
am_aux_dir=/home/paul/Desktop/Wesnoth/wesnoth-1.4/config
am_compiler_list='gcc3
gcc
hp
sgi
aix
icc
hp2
tru64
nosideeffect
dashmstdout
dashXmstdout
makedepend
cpp
msvisualcpp
none'
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_prog_tar_ustar=gnutar
am_depcomp=config/depcomp
am_make=make
am_missing_run='${SHELL} /home/paul/Desktop/Wesnoth/wesnoth-1.4/config/missing --run '
as_basename=basename
as_cr_LETTERS=ABCDEFGHIJKLMNOPQRSTUVWXYZ
as_cr_Letters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
as_cr_alnum=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
as_cr_digits=0123456789
as_cr_letters=abcdefghijklmnopqrstuvwxyz
as_dir=/usr/bin
as_dirname=dirname
as_executable_p='test -x'
as_expr=expr
as_lineno_1=426
as_lineno_2=427
as_ln_s='ln -s'
as_me=configure
as_mkdir_p=:
as_myself=./configure
as_nl='
'
as_save_IFS=' 
'
as_test_x='test -x'
as_tr_cpp='eval sed '\''y%*abcdefghijklmnopqrstuvwxyz%PABCDEFGHIJKLMNOPQRSTUVWXYZ%;s%[^_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]%_%g'\'''
as_tr_sh='eval sed '\''y%*+%pp%;s%[^_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]%_%g'\'''
as_unset=unset
as_var=ac_cv_prog_make_make_set
bindir='${exec_prefix}/bin'
build=x86_64-unknown-linux-gnu
build_cpu=x86_64
build_os=linux-gnu
build_vendor=unknown
cache_file=/dev/null
cross_compiling=no
datadir='${datarootdir}'
datarootdir='${prefix}/share'
depcc=gcc
depmode=gcc3
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
enable_editor=yes
enable_rpath=yes
exec_prefix=NONE
found_a=
found_dir=
found_la=
found_so=
gt_cv_func_CFLocaleCopyCurrent=no
gt_cv_func_CFPreferencesCopyAppValue=no
gt_cv_func_gnugettext1_libc=yes
gt_save_CPPFLAGS=
gt_save_LIBS=
gt_source=libc
gt_use_preinstalled_gnugettext=yes
hardcode_direct=no
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=
hardcode_minus_L=no
host=x86_64-unknown-linux-gnu
host_cpu=x86_64
host_os=linux-gnu
host_vendor=unknown
htmldir='${docdir}'
i=6
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='$(SHELL) /home/paul/Desktop/Wesnoth/wesnoth-1.4/config/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libext=a
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
ltrpathdirs=
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
name=iconv
names_already_handled=' iconv'
names_next_round=
names_this_round='iconv '
no_create=
no_recursion=
oldincludedir=/usr/include
parts=
pdfdir='${docdir}'
prefix=/opt/games/wesnoth-1.4
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
psdir='${docdir}'
rpathdirs=
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
shlibext=so
silent=
site=
srcdir=.
subdirs=
sysconfdir='${prefix}/etc'
target=x86_64-unknown-linux-gnu
target_cpu=x86_64
target_os=linux-gnu
target_vendor=unknown
uppername=ICONV
use_additional=yes
value=
verbose=
with_gnu_ld=yes
wl=-Wl,
x_includes=NONE
x_libraries=NONE
./configure: line 5705: test: -lt: unary operator expected
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
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... no
checking for sdl11-config... no
configure: error: *** SDL not found! Get SDL from www.libsdl.org.
If you already installed it, check it's in the path. If problem remains,
please send a mail to the address that appears in ./configure --version
indicating your platform, the version of configure script and the problem.
paul@mattick:~/Desktop/Wesnoth/wesnoth-1.4$ 
Prophet
Posts: 35
Joined: April 2nd, 2006, 8:22 pm
Location: Germany

Re: Compiling Wesnoth 1.4 on Ubuntu fails (missing png support)

Post by Prophet »

Have you read the prerequisites for compiling wesnoth? You seem to be missing the sdl packages needed by wesnoth.

Install:
  • libsdl1.2debian
  • libsdl1.2-dev
  • libsdl-image1.2
  • libsdl-image1.2-dev
  • libsdl-mixer1.2
  • libsdl-mixer1.2-dev
  • libsdl-net1.2
  • libsdl-net1.2-dev
and all other prerequisites listed on the linked page.
suitsmeveryfine
Posts: 9
Joined: March 16th, 2008, 10:58 pm
Location: Marseille
Contact:

Re: Compiling Wesnoth 1.4 on Ubuntu fails

Post by suitsmeveryfine »

Prophet, you were right in that I missed to install some of the prerequisites. I've found many of them in Synaptic and installed them one by one. Now when I'm trying to compile I recieve this: *** Unable to find FreeType2 library (http://www.freetype.org/)

I couldn't find the correct file in Synaptic so I went to the project's website and downloaded the source-code in order to install FreeType2. I have never succeeded in compiling myself but have always relied on the Ubuntu installation tools or .deb-files. This is how I went about to compile FreeType2: 1) downloaded the .tar.bz2-file 2) unpacked it to the Desktop 3) ran “make” from the command line when I was in the FreeType2 font. It seemed to install very fine but as I tried to compile Wesnoth again, it is asking for the FreeTyp2 library. This is getting frustrating, I need to play this game very soon! :)
Prophet
Posts: 35
Joined: April 2nd, 2006, 8:22 pm
Location: Germany

Re: Compiling Wesnoth 1.4 on Ubuntu fails (missing png support)

Post by Prophet »

Give these packages a try:
  • libfreetype6
  • libfreetype6-dev
Your problem with installing freetype library by hand probably occures because the install placed it in a location the compiler does not search for its headers/library.

EDIT: Sidenote: Its important that you allways install the dev packages of libraries you need for compiling, too!
suitsmeveryfine
Posts: 9
Joined: March 16th, 2008, 10:58 pm
Location: Marseille
Contact:

Re: Compiling Wesnoth 1.4 on Ubuntu fails (missing png support)

Post by suitsmeveryfine »

I finally managed to install the game! I can't change the language though. Has this something to do with my compilation/installation or is it a general problem with the new release?
AI
Inactive Developer
Posts: 2396
Joined: January 31st, 2008, 8:38 pm

Re: Compiling Wesnoth 1.4 on Ubuntu fails (missing png support)

Post by AI »

You need to have the locale installed if you want to switch to it. (insert long and winded explanation about glibc and locales here) Should be somewhere in /etc
User avatar
Iris
Site Administrator
Posts: 6800
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

Re: Compiling Wesnoth 1.4 on Ubuntu fails (missing png support)

Post by Iris »

Code: Select all

locale -a
Will list the installed list of locales in your system. You may want to check a thread were a similar language issue is being discussed:

http://www.wesnoth.org/forum/viewtopic.php?f=4&t=20454
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
suitsmeveryfine
Posts: 9
Joined: March 16th, 2008, 10:58 pm
Location: Marseille
Contact:

Re: Compiling Wesnoth 1.4 on Ubuntu fails (missing png support)

Post by suitsmeveryfine »

My local? locale -a gives:

Code: Select all

en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
POSIX
sv_FI.utf8
sv_SE.utf8
A lot of different English variants it looks like, plus Swedish at the end there, but I can't change into Swedish. When I had Wesnoth 1.2 previously (installed as a package, not selfcompiled), I could easily change into whatever language I wanted: Dutch, French or whatever.
torangan
Retired Developer
Posts: 1365
Joined: March 27th, 2004, 12:25 am
Location: Germany

Re: Compiling Wesnoth 1.4 on Ubuntu fails (missing png support)

Post by torangan »

Try to install the variants without utf8.
WesCamp-i18n - Translations for User Campaigns:
http://www.wesnoth.org/wiki/WesCamp

Translators for all languages required: contact me. No geek skills required!
Post Reply