0.24 unable to compile [resolved]

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
User avatar
5t3v3
Novice
Novice
Posts: 451
Joined: 31 Oct 2007, 16:08
Location: Belgium
Contact:

0.24 unable to compile [resolved]

Post by 5t3v3 » 30 Dec 2007, 22:22

I get this message:

Code: Select all

root@steve-desktop:/home/steve/tmw-0.0.24# ./configure
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 for C++ compiler default output file name... 
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
root@steve-desktop:/home/steve/tmw-0.0.24# 
Even though I already have gcc and g++ installed. Dunno what's wrong :(
and my .23 version keeps crashing everytime a bald character runs around :)
Last edited by 5t3v3 on 03 Jan 2008, 04:00, edited 5 times in total.
User avatar
5t3v3
Novice
Novice
Posts: 451
Joined: 31 Oct 2007, 16:08
Location: Belgium
Contact:

Post by 5t3v3 » 30 Dec 2007, 22:45

Many thanks to m[a]tt for advising me over IRC to try:

Code: Select all

apt-get install build-essential
xD
Matt
Knight
Knight
Posts: 1747
Joined: 07 Aug 2004, 11:47
Location: Germany->Bavaria

Post by Matt » 30 Dec 2007, 23:19

Let me give you a second advise:
Use the edit button :)
User avatar
5t3v3
Novice
Novice
Posts: 451
Joined: 31 Oct 2007, 16:08
Location: Belgium
Contact:

Post by 5t3v3 » 30 Dec 2007, 23:50

Ok it compiles now. But when I do make, at the end I get the following error:

Code: Select all

make[2]: *** [tmw-char_server.o] Error 1
make[2]: Leaving directory `/home/steve/tmw-0.0.24/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/steve/tmw-0.0.24'
make: *** [all] Error 2
Then for make install I get the following error in the end:

Code: Select all

make[1]: *** [tmw-char_server.o] Error 1
make[1]: Leaving directory `/home/steve/tmw-0.0.24/src'
make: *** [install-recursive] Error 1
it's a bit vague to work with :)
User avatar
Trinexx
Peon
Peon
Posts: 27
Joined: 26 Dec 2007, 20:46
Location: Florida
Contact:

Post by Trinexx » 31 Dec 2007, 00:48

Especially since you cut out the actual error ^_^
User avatar
5t3v3
Novice
Novice
Posts: 451
Joined: 31 Oct 2007, 16:08
Location: Belgium
Contact:

Post by 5t3v3 » 31 Dec 2007, 00:59

Oh sorry, didn't realize that, the stars got my attention :D
Anyway here's a ful log

Code: Select all

root@steve-desktop:/home/steve/tmw-0.0.24# ./configure
checking for g++... g++
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 g++ accepts -g... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking how to run the C++ preprocessor... g++ -E
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 for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working volatile... yes
checking for error_at_line... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for vprintf... yes
checking for _doprnt... no
checking for atexit... yes
checking for floor... yes
checking for getcwd... yes
checking for gethostbyname... yes
checking for memset... yes
checking for mkdir... yes
checking for select... yes
checking for socket... yes
checking for pthread_create in -lpthread... yes
checking for gcnGuichanVersion in -lguichan... yes
checking for inflate in -lz... yes
checking for PHYSFS_init in -lphysfs... yes
checking for curl_global_init in -lcurl... yes
checking for xmlInitParser in -lxml2... yes
checking for png_write_info in -lpng... yes
checking for IMG_LoadPNG_RW in -lSDL_image... yes
checking for Mix_OpenAudio in -lSDL_mixer... yes
checking for SDLNet_Init in -lSDL_net... yes
checking for ANSI C header files... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for unistd.h... (cached) yes
checking guichan.hpp usability... yes
checking guichan.hpp presence... yes
checking for guichan.hpp... yes
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for glBegin in -lGL... yes
checking for sdl-config... /usr/bin/sdl-config
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating data/Makefile
config.status: creating data/graphics/Makefile
config.status: creating data/graphics/gui/Makefile
config.status: creating data/graphics/images/Makefile
config.status: creating data/graphics/images/ambient/Makefile
config.status: creating data/graphics/tiles/Makefile
config.status: creating data/help/Makefile
config.status: creating data/icons/Makefile
config.status: creating docs/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

Build with OpenGL: yes

configure complete, now type "make"

root@steve-desktop:/home/steve/tmw-0.0.24# make
make  all-recursive
make[1]: Entering directory `/home/steve/tmw-0.0.24'
Making all in data
make[2]: Entering directory `/home/steve/tmw-0.0.24/data'
Making all in graphics
make[3]: Entering directory `/home/steve/tmw-0.0.24/data/graphics'
Making all in gui
make[4]: Entering directory `/home/steve/tmw-0.0.24/data/graphics/gui'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/steve/tmw-0.0.24/data/graphics/gui'
Making all in images
make[4]: Entering directory `/home/steve/tmw-0.0.24/data/graphics/images'
Making all in ambient
make[5]: Entering directory `/home/steve/tmw-0.0.24/data/graphics/images/ambient'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/steve/tmw-0.0.24/data/graphics/images/ambient'
make[5]: Entering directory `/home/steve/tmw-0.0.24/data/graphics/images'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/home/steve/tmw-0.0.24/data/graphics/images'
make[4]: Leaving directory `/home/steve/tmw-0.0.24/data/graphics/images'
Making all in tiles
make[4]: Entering directory `/home/steve/tmw-0.0.24/data/graphics/tiles'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/steve/tmw-0.0.24/data/graphics/tiles'
make[4]: Entering directory `/home/steve/tmw-0.0.24/data/graphics'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/steve/tmw-0.0.24/data/graphics'
make[3]: Leaving directory `/home/steve/tmw-0.0.24/data/graphics'
Making all in help
make[3]: Entering directory `/home/steve/tmw-0.0.24/data/help'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/steve/tmw-0.0.24/data/help'
Making all in icons
make[3]: Entering directory `/home/steve/tmw-0.0.24/data/icons'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/steve/tmw-0.0.24/data/icons'
make[3]: Entering directory `/home/steve/tmw-0.0.24/data'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/steve/tmw-0.0.24/data'
make[2]: Leaving directory `/home/steve/tmw-0.0.24/data'
Making all in docs
make[2]: Entering directory `/home/steve/tmw-0.0.24/docs'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/steve/tmw-0.0.24/docs'
Making all in src
make[2]: Entering directory `/home/steve/tmw-0.0.24/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -DTMW_DATADIR=\""/usr/local/share/tmw/"\"   -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT `pkg-config --cflags libxml-2.0` -I/usr/local/include  -g -O2 -MT tmw-char_server.o -MD -MP -MF ".deps/tmw-char_server.Tpo" -c -o tmw-char_server.o `test -f 'gui/char_server.cpp' || echo './'`gui/char_server.cpp; \
        then mv -f ".deps/tmw-char_server.Tpo" ".deps/tmw-char_server.Po"; else rm -f ".deps/tmw-char_server.Tpo"; exit 1; fi
In file included from gui/char_server.cpp:34:
gui/../net/network.h:28:21: error: SDL_net.h: No such file or directory
gui/../net/network.h:111: error: ‘TCPsocket’ does not name a type
make[2]: *** [tmw-char_server.o] Error 1
make[2]: Leaving directory `/home/steve/tmw-0.0.24/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/steve/tmw-0.0.24'
make: *** [all] Error 2

Code: Select all

root@steve-desktop:/home/steve/tmw-0.0.24# make install
Making install in data
make[1]: Entering directory `/home/steve/tmw-0.0.24/data'
Making install in graphics
make[2]: Entering directory `/home/steve/tmw-0.0.24/data/graphics'
Making install in gui
make[3]: Entering directory `/home/steve/tmw-0.0.24/data/graphics/gui'
make[4]: Entering directory `/home/steve/tmw-0.0.24/data/graphics/gui'
make[4]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/tmw/data/graphics/gui" || mkdir -p -- "/usr/local/share/tmw/data/graphics/gui"
 /usr/bin/install -c -m 644 'attack_target.png' '/usr/local/share/tmw/data/graphics/gui/attack_target.png'
 /usr/bin/install -c -m 644 'bg_quad_dis.png' '/usr/local/share/tmw/data/graphics/gui/bg_quad_dis.png'
 /usr/bin/install -c -m 644 'browserfont.png' '/usr/local/share/tmw/data/graphics/gui/browserfont.png'
 /usr/bin/install -c -m 644 'button.png' '/usr/local/share/tmw/data/graphics/gui/button.png'
 /usr/bin/install -c -m 644 'button_disabled.png' '/usr/local/share/tmw/data/graphics/gui/button_disabled.png'
 /usr/bin/install -c -m 644 'buttonhi.png' '/usr/local/share/tmw/data/graphics/gui/buttonhi.png'
 /usr/bin/install -c -m 644 'buttonpress.png' '/usr/local/share/tmw/data/graphics/gui/buttonpress.png'
 /usr/bin/install -c -m 644 'checkbox.png' '/usr/local/share/tmw/data/graphics/gui/checkbox.png'
 /usr/bin/install -c -m 644 'close_button.png' '/usr/local/share/tmw/data/graphics/gui/close_button.png'
 /usr/bin/install -c -m 644 'deepbox.png' '/usr/local/share/tmw/data/graphics/gui/deepbox.png'
 /usr/bin/install -c -m 644 'fixedfont.png' '/usr/local/share/tmw/data/graphics/gui/fixedfont.png'
 /usr/bin/install -c -m 644 'hits_blue.png' '/usr/local/share/tmw/data/graphics/gui/hits_blue.png'
 /usr/bin/install -c -m 644 'hits_red.png' '/usr/local/share/tmw/data/graphics/gui/hits_red.png'
 /usr/bin/install -c -m 644 'hits_yellow.png' '/usr/local/share/tmw/data/graphics/gui/hits_yellow.png'
 /usr/bin/install -c -m 644 'hscroll_left_default.png' '/usr/local/share/tmw/data/graphics/gui/hscroll_left_default.png'
 /usr/bin/install -c -m 644 'hscroll_left_highlight.png' '/usr/local/share/tmw/data/graphics/gui/hscroll_left_highlight.png'
 /usr/bin/install -c -m 644 'hscroll_left_pressed.png' '/usr/local/share/tmw/data/graphics/gui/hscroll_left_pressed.png'
 /usr/bin/install -c -m 644 'hscroll_right_default.png' '/usr/local/share/tmw/data/graphics/gui/hscroll_right_default.png'
 /usr/bin/install -c -m 644 'hscroll_right_highlight.png' '/usr/local/share/tmw/data/graphics/gui/hscroll_right_highlight.png'
 /usr/bin/install -c -m 644 'hscroll_right_pressed.png' '/usr/local/share/tmw/data/graphics/gui/hscroll_right_pressed.png'
 /usr/bin/install -c -m 644 'item_shortcut_bgr.png' '/usr/local/share/tmw/data/graphics/gui/item_shortcut_bgr.png'
 /usr/bin/install -c -m 644 'mouse.png' '/usr/local/share/tmw/data/graphics/gui/mouse.png'
 /usr/bin/install -c -m 644 'menuitemD.png' '/usr/local/share/tmw/data/graphics/gui/menuitemD.png'
 /usr/bin/install -c -m 644 'menuitemF.png' '/usr/local/share/tmw/data/graphics/gui/menuitemF.png'
 /usr/bin/install -c -m 644 'menuitemN.png' '/usr/local/share/tmw/data/graphics/gui/menuitemN.png'
 /usr/bin/install -c -m 644 'menuitemP.png' '/usr/local/share/tmw/data/graphics/gui/menuitemP.png'
 /usr/bin/install -c -m 644 'radioin.png' '/usr/local/share/tmw/data/graphics/gui/radioin.png'
 /usr/bin/install -c -m 644 'radioout.png' '/usr/local/share/tmw/data/graphics/gui/radioout.png'
 /usr/bin/install -c -m 644 'resize.png' '/usr/local/share/tmw/data/graphics/gui/resize.png'
 /usr/bin/install -c -m 644 'rpgfont_wider.png' '/usr/local/share/tmw/data/graphics/gui/rpgfont_wider.png'
 /usr/bin/install -c -m 644 'selection.png' '/usr/local/share/tmw/data/graphics/gui/selection.png'
 /usr/bin/install -c -m 644 'sansserif8.png' '/usr/local/share/tmw/data/graphics/gui/sansserif8.png'
 /usr/bin/install -c -m 644 'slider.png' '/usr/local/share/tmw/data/graphics/gui/slider.png'
 /usr/bin/install -c -m 644 'target-cursor-blue-l.png' '/usr/local/share/tmw/data/graphics/gui/target-cursor-blue-l.png'
 /usr/bin/install -c -m 644 'target-cursor-blue-m.png' '/usr/local/share/tmw/data/graphics/gui/target-cursor-blue-m.png'
 /usr/bin/install -c -m 644 'target-cursor-blue-s.png' '/usr/local/share/tmw/data/graphics/gui/target-cursor-blue-s.png'
 /usr/bin/install -c -m 644 'target-cursor-red-l.png' '/usr/local/share/tmw/data/graphics/gui/target-cursor-red-l.png'
 /usr/bin/install -c -m 644 'target-cursor-red-m.png' '/usr/local/share/tmw/data/graphics/gui/target-cursor-red-m.png'
 /usr/bin/install -c -m 644 'target-cursor-red-s.png' '/usr/local/share/tmw/data/graphics/gui/target-cursor-red-s.png'
 /usr/bin/install -c -m 644 'thickborder.png' '/usr/local/share/tmw/data/graphics/gui/thickborder.png'
 /usr/bin/install -c -m 644 'unknown-item.png' '/usr/local/share/tmw/data/graphics/gui/unknown-item.png'
 /usr/bin/install -c -m 644 'vscroll_blue.png' '/usr/local/share/tmw/data/graphics/gui/vscroll_blue.png'
 /usr/bin/install -c -m 644 'vscroll_down_default.png' '/usr/local/share/tmw/data/graphics/gui/vscroll_down_default.png'
 /usr/bin/install -c -m 644 'vscroll_down_highlight.png' '/usr/local/share/tmw/data/graphics/gui/vscroll_down_highlight.png'
 /usr/bin/install -c -m 644 'vscroll_down_pressed.png' '/usr/local/share/tmw/data/graphics/gui/vscroll_down_pressed.png'
 /usr/bin/install -c -m 644 'vscroll_grey.png' '/usr/local/share/tmw/data/graphics/gui/vscroll_grey.png'
 /usr/bin/install -c -m 644 'vscroll_red.png' '/usr/local/share/tmw/data/graphics/gui/vscroll_red.png'
 /usr/bin/install -c -m 644 'vscroll_up_default.png' '/usr/local/share/tmw/data/graphics/gui/vscroll_up_default.png'
 /usr/bin/install -c -m 644 'vscroll_up_highlight.png' '/usr/local/share/tmw/data/graphics/gui/vscroll_up_highlight.png'
 /usr/bin/install -c -m 644 'vscroll_up_pressed.png' '/usr/local/share/tmw/data/graphics/gui/vscroll_up_pressed.png'
make[4]: Leaving directory `/home/steve/tmw-0.0.24/data/graphics/gui'
make[3]: Leaving directory `/home/steve/tmw-0.0.24/data/graphics/gui'
Making install in images
make[3]: Entering directory `/home/steve/tmw-0.0.24/data/graphics/images'
Making install in ambient
make[4]: Entering directory `/home/steve/tmw-0.0.24/data/graphics/images/ambient'
make[5]: Entering directory `/home/steve/tmw-0.0.24/data/graphics/images/ambient'
make[5]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/tmw/data/graphics/images/ambient" || mkdir -p -- "/usr/local/share/tmw/data/graphics/images/ambient"
 /usr/bin/install -c -m 644 'clouds.png' '/usr/local/share/tmw/data/graphics/images/ambient/clouds.png'
 /usr/bin/install -c -m 644 'night.png' '/usr/local/share/tmw/data/graphics/images/ambient/night.png'
 /usr/bin/install -c -m 644 'sandstorm.png' '/usr/local/share/tmw/data/graphics/images/ambient/sandstorm.png'
 /usr/bin/install -c -m 644 'spotlight.png' '/usr/local/share/tmw/data/graphics/images/ambient/spotlight.png'
make[5]: Leaving directory `/home/steve/tmw-0.0.24/data/graphics/images/ambient'
make[4]: Leaving directory `/home/steve/tmw-0.0.24/data/graphics/images/ambient'
make[4]: Entering directory `/home/steve/tmw-0.0.24/data/graphics/images'
make[5]: Entering directory `/home/steve/tmw-0.0.24/data/graphics/images'
make[5]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/tmw/data/graphics/images" || mkdir -p -- "/usr/local/share/tmw/data/graphics/images"
 /usr/bin/install -c -m 644 'error.png' '/usr/local/share/tmw/data/graphics/images/error.png'
 /usr/bin/install -c -m 644 'login_wallpaper.png' '/usr/local/share/tmw/data/graphics/images/login_wallpaper.png'
make[5]: Leaving directory `/home/steve/tmw-0.0.24/data/graphics/images'
make[4]: Leaving directory `/home/steve/tmw-0.0.24/data/graphics/images'
make[3]: Leaving directory `/home/steve/tmw-0.0.24/data/graphics/images'
Making install in tiles
make[3]: Entering directory `/home/steve/tmw-0.0.24/data/graphics/tiles'
make[4]: Entering directory `/home/steve/tmw-0.0.24/data/graphics/tiles'
make[4]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/tmw/data/graphics/tiles" || mkdir -p -- "/usr/local/share/tmw/data/graphics/tiles"
 /usr/bin/install -c -m 644 'arena.png' '/usr/local/share/tmw/data/graphics/tiles/arena.png'
 /usr/bin/install -c -m 644 'cave.png' '/usr/local/share/tmw/data/graphics/tiles/cave.png'
 /usr/bin/install -c -m 644 'collision.png' '/usr/local/share/tmw/data/graphics/tiles/collision.png'
 /usr/bin/install -c -m 644 'desert1.png' '/usr/local/share/tmw/data/graphics/tiles/desert1.png'
 /usr/bin/install -c -m 644 'desert2.png' '/usr/local/share/tmw/data/graphics/tiles/desert2.png'
 /usr/bin/install -c -m 644 'desert_x2.png' '/usr/local/share/tmw/data/graphics/tiles/desert_x2.png'
 /usr/bin/install -c -m 644 'desert_x3.png' '/usr/local/share/tmw/data/graphics/tiles/desert_x3.png'
 /usr/bin/install -c -m 644 'icecave.png' '/usr/local/share/tmw/data/graphics/tiles/icecave.png'
 /usr/bin/install -c -m 644 'inn.png' '/usr/local/share/tmw/data/graphics/tiles/inn.png'
 /usr/bin/install -c -m 644 'mountain.png' '/usr/local/share/tmw/data/graphics/tiles/mountain.png'
 /usr/bin/install -c -m 644 'snow_building.png' '/usr/local/share/tmw/data/graphics/tiles/snow_building.png'
 /usr/bin/install -c -m 644 'snow_x2.png' '/usr/local/share/tmw/data/graphics/tiles/snow_x2.png'
 /usr/bin/install -c -m 644 'snow_x3.png' '/usr/local/share/tmw/data/graphics/tiles/snow_x3.png'
 /usr/bin/install -c -m 644 'snowset.png' '/usr/local/share/tmw/data/graphics/tiles/snowset.png'
 /usr/bin/install -c -m 644 'trans_woodland-desert.png' '/usr/local/share/tmw/data/graphics/tiles/trans_woodland-desert.png'
 /usr/bin/install -c -m 644 'Woodland_ground.png' '/usr/local/share/tmw/data/graphics/tiles/Woodland_ground.png'
 /usr/bin/install -c -m 644 'Woodland_village.png' '/usr/local/share/tmw/data/graphics/tiles/Woodland_village.png'
 /usr/bin/install -c -m 644 'Woodland_village_x2.png' '/usr/local/share/tmw/data/graphics/tiles/Woodland_village_x2.png'
 /usr/bin/install -c -m 644 'Woodland_x2.png' '/usr/local/share/tmw/data/graphics/tiles/Woodland_x2.png'
 /usr/bin/install -c -m 644 'Woodland_x3.png' '/usr/local/share/tmw/data/graphics/tiles/Woodland_x3.png'
make[4]: Leaving directory `/home/steve/tmw-0.0.24/data/graphics/tiles'
make[3]: Leaving directory `/home/steve/tmw-0.0.24/data/graphics/tiles'
make[3]: Entering directory `/home/steve/tmw-0.0.24/data/graphics'
make[4]: Entering directory `/home/steve/tmw-0.0.24/data/graphics'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/home/steve/tmw-0.0.24/data/graphics'
make[3]: Leaving directory `/home/steve/tmw-0.0.24/data/graphics'
make[2]: Leaving directory `/home/steve/tmw-0.0.24/data/graphics'
Making install in help
make[2]: Entering directory `/home/steve/tmw-0.0.24/data/help'
make[3]: Entering directory `/home/steve/tmw-0.0.24/data/help'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/tmw/data/help" || mkdir -p -- "/usr/local/share/tmw/data/help"
 /usr/bin/install -c -m 644 'about.txt' '/usr/local/share/tmw/data/help/about.txt'
 /usr/bin/install -c -m 644 'changes.txt' '/usr/local/share/tmw/data/help/changes.txt'
 /usr/bin/install -c -m 644 'commands.txt' '/usr/local/share/tmw/data/help/commands.txt'
 /usr/bin/install -c -m 644 'header.txt' '/usr/local/share/tmw/data/help/header.txt'
 /usr/bin/install -c -m 644 'index.txt' '/usr/local/share/tmw/data/help/index.txt'
 /usr/bin/install -c -m 644 'skills.txt' '/usr/local/share/tmw/data/help/skills.txt'
 /usr/bin/install -c -m 644 'support.txt' '/usr/local/share/tmw/data/help/support.txt'
 /usr/bin/install -c -m 644 'team.txt' '/usr/local/share/tmw/data/help/team.txt'
make[3]: Leaving directory `/home/steve/tmw-0.0.24/data/help'
make[2]: Leaving directory `/home/steve/tmw-0.0.24/data/help'
Making install in icons
make[2]: Entering directory `/home/steve/tmw-0.0.24/data/icons'
make[3]: Entering directory `/home/steve/tmw-0.0.24/data/icons'
make[3]: Nothing to be done for `install-exec-am'.
/home/steve/tmw-0.0.24/install-sh -d /usr/local/share/pixmaps
/usr/bin/install -c ./tmw.png /usr/local/share/pixmaps/tmw.png
test -z "/usr/local/share/tmw/data/icons" || mkdir -p -- "/usr/local/share/tmw/data/icons"
 /usr/bin/install -c -m 644 'tmw.png' '/usr/local/share/tmw/data/icons/tmw.png'
make[3]: Leaving directory `/home/steve/tmw-0.0.24/data/icons'
make[2]: Leaving directory `/home/steve/tmw-0.0.24/data/icons'
make[2]: Entering directory `/home/steve/tmw-0.0.24/data'
make[3]: Entering directory `/home/steve/tmw-0.0.24/data'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/steve/tmw-0.0.24/data'
make[2]: Leaving directory `/home/steve/tmw-0.0.24/data'
make[1]: Leaving directory `/home/steve/tmw-0.0.24/data'
Making install in docs
make[1]: Entering directory `/home/steve/tmw-0.0.24/docs'
make[2]: Entering directory `/home/steve/tmw-0.0.24/docs'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/man/man6" || mkdir -p -- "/usr/local/share/man/man6"
 /usr/bin/install -c -m 644 './tmw.6' '/usr/local/share/man/man6/tmw.6'
make[2]: Leaving directory `/home/steve/tmw-0.0.24/docs'
make[1]: Leaving directory `/home/steve/tmw-0.0.24/docs'
Making install in src
make[1]: Entering directory `/home/steve/tmw-0.0.24/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -DTMW_DATADIR=\""/usr/local/share/tmw/"\"   -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT `pkg-config --cflags libxml-2.0` -I/usr/local/include  -g -O2 -MT tmw-char_server.o -MD -MP -MF ".deps/tmw-char_server.Tpo" -c -o tmw-char_server.o `test -f 'gui/char_server.cpp' || echo './'`gui/char_server.cpp; \
        then mv -f ".deps/tmw-char_server.Tpo" ".deps/tmw-char_server.Po"; else rm -f ".deps/tmw-char_server.Tpo"; exit 1; fi
In file included from gui/char_server.cpp:34:
gui/../net/network.h:28:21: error: SDL_net.h: No such file or directory
gui/../net/network.h:111: error: ‘TCPsocket’ does not name a type
make[1]: *** [tmw-char_server.o] Error 1
make[1]: Leaving directory `/home/steve/tmw-0.0.24/src'
make: *** [install-recursive] Error 1
root@steve-desktop:/home/steve/tmw-0.0.24# 
User avatar
Tors
Peon
Peon
Posts: 8
Joined: 26 Dec 2007, 19:39

Post by Tors » 31 Dec 2007, 01:10

The missing file, SDL_net.h, seems to be in a package called libsdl-net1.2-dev

(Found out by running:
dpkg -S SDL_net.h
libsdl-net1.2-dev: /usr/include/SDL/SDL_net.h)

So try to do a

sudo apt-get install libsdl-net1.2-dev
evadem
Novice
Novice
Posts: 112
Joined: 31 Dec 2007, 01:07
Location: Iowa - USA

Post by evadem » 31 Dec 2007, 01:15

I'm getting the exact same error while trying to install in Fedora 8. I think it may have to do with Guichan 0.7.1 install. I get this when I try to run make:

make[2]: Entering directory `/home/dave/Desktop/guichan-0.7.1/src/sdl'
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -g -O2 -Wall -Wno-unused -DGUICHAN_BUILD -MT sdlimageloader.lo -MD -MP -MF .deps/sdlimageloader.Tpo -c -o sdlimageloader.lo sdlimageloader.cpp
g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -g -O2 -Wall -Wno-unused -DGUICHAN_BUILD -MT sdlimageloader.lo -MD -MP -MF .deps/sdlimageloader.Tpo -c sdlimageloader.cpp -fPIC -DPIC -o .libs/sdlimageloader.o
sdlimageloader.cpp:63:23: error: SDL_image.h: No such file or directory
sdlimageloader.cpp: In member function 'virtual SDL_Surface* gcn::SDLImageLoader::loadSDLSurface(const std::string&)':
sdlimageloader.cpp:102: error: 'IMG_Load' was not declared in this scope
make[2]: *** [sdlimageloader.lo] Error 1
make[2]: Leaving directory `/home/dave/Desktop/guichan-0.7.1/src/sdl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dave/Desktop/guichan-0.7.1/src'
make: *** [all-recursive] Error 1

Hope someone can find a solution. I have installed all the required SDL files plus the Devel versions of same when present.
User avatar
5t3v3
Novice
Novice
Posts: 451
Joined: 31 Oct 2007, 16:08
Location: Belgium
Contact:

Post by 5t3v3 » 31 Dec 2007, 01:25

Tors wrote:The missing file, SDL_net.h, seems to be in a package called libsdl-net1.2-dev

(Found out by running:
dpkg -S SDL_net.h
libsdl-net1.2-dev: /usr/include/SDL/SDL_net.h)

So try to do a

sudo apt-get install libsdl-net1.2-dev
Yep, that did the trick thanks mate ^_^
evadem
Novice
Novice
Posts: 112
Joined: 31 Dec 2007, 01:07
Location: Iowa - USA

Post by evadem » 31 Dec 2007, 03:05

Tried that fix. I have a new error message now when I do make :

In file included from gui/setup_audio.cpp:34:
gui/../sound.h:27:23: error: SDL_mixer.h: No such file or directory
gui/../sound.h:119: error: ISO C++ forbids declaration of ‘Mix_Music’ with no type
gui/../sound.h:119: error: expected ‘;’ before ‘*’ token
make[1]: *** [tmw-setup_audio.o] Error 1
make[1]: Leaving directory `/home/dave/Desktop/tmw-0.0.24/src'
make: *** [install-recursive] Error 1
[root@localhost tmw-0.0.24]#
User avatar
Trinexx
Peon
Peon
Posts: 27
Joined: 26 Dec 2007, 20:46
Location: Florida
Contact:

Post by Trinexx » 31 Dec 2007, 06:35

Try installing the libsdl-mixer1.2 package. If that doesn't work, try libsdl-mixer1.2-dev.
evadem
Novice
Novice
Posts: 112
Joined: 31 Dec 2007, 01:07
Location: Iowa - USA

Post by evadem » 31 Dec 2007, 13:01

I have both installed already. No luck so far finding a solution.
It seems the rpm version of SDL packages may have been the problem with some of my issues. I compiled the tarball ones I found and now get guichan0.7.1 to install with no errors. Now I get this error when trying to make tmw:

Making all in src
make[2]: Entering directory `/home/dave/Desktop/tmw-0.0.24/src'
g++ -g -O2 -o tmw `pkg-config --libs libxml-2.0` tmw-resizegrip.o tmw-box.o tmw-browserbox.o tmw-buddywindow.o tmw-button.o tmw-buy.o tmw-buysell.o tmw-chargedialog.o tmw-char_server.o tmw-char_select.o tmw-chat.o tmw-chatinput.o tmw-checkbox.o tmw-confirm_dialog.o tmw-connection.o tmw-debugwindow.o tmw-equipmentwindow.o tmw-focushandler.o tmw-gccontainer.o tmw-gui.o tmw-hbox.o tmw-help.o tmw-inttextbox.o tmw-inventorywindow.o tmw-itemcontainer.o tmw-item_amount.o tmw-listbox.o tmw-login.o tmw-menuwindow.o tmw-minimap.o tmw-ministatus.o tmw-newskill.o tmw-npclistdialog.o tmw-npc_text.o tmw-ok_dialog.o tmw-passwordfield.o tmw-playerbox.o tmw-popupmenu.o tmw-progressbar.o tmw-radiobutton.o tmw-register.o tmw-scrollarea.o tmw-sell.o tmw-setup_audio.o tmw-setup.o tmw-setup_joystick.o tmw-setup_keyboard.o tmw-setup_video.o tmw-shop.o tmw-shoplistbox.o tmw-skill.o tmw-slider.o tmw-status.o tmw-tabbedcontainer.o tmw-textbox.o tmw-textfield.o tmw-trade.o tmw-updatewindow.o tmw-vbox.o tmw-viewport.o tmw-window.o tmw-windowcontainer.o tmw-beinghandler.o tmw-buysellhandler.o tmw-charserverhandler.o tmw-chathandler.o tmw-equipmenthandler.o tmw-inventoryhandler.o tmw-itemhandler.o tmw-loginhandler.o tmw-maploginhandler.o tmw-messagehandler.o tmw-messagein.o tmw-messageout.o tmw-network.o tmw-npchandler.o tmw-playerhandler.o tmw-protocol.o tmw-skillhandler.o tmw-tradehandler.o tmw-action.o tmw-ambientoverlay.o tmw-animation.o tmw-dye.o tmw-image.o tmw-imageloader.o tmw-imageset.o tmw-imagewriter.o tmw-itemdb.o tmw-iteminfo.o tmw-mapreader.o tmw-monsterdb.o tmw-monsterinfo.o tmw-music.o tmw-resource.o tmw-resourcemanager.o tmw-soundeffect.o tmw-spritedef.o tmw-buddylist.o tmw-base64.o tmw-strprintf.o tmw-xml.o tmw-animatedsprite.o tmw-animationparticle.o tmw-being.o tmw-beingmanager.o tmw-configuration.o tmw-engine.o tmw-equipment.o tmw-floor_item.o tmw-flooritemmanager.o tmw-game.o tmw-graphics.o tmw-imageparticle.o tmw-inventory.o tmw-item.o tmw-joystick.o tmw-keyboardconfig.o tmw-localplayer.o tmw-log.o tmw-main.o tmw-map.o tmw-monster.o tmw-npc.o tmw-openglgraphics.o tmw-particle.o tmw-particleemitter.o tmw-player.o tmw-simpleanimation.o tmw-sound.o tmw-textparticle.o -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread -lSDL_image -lSDL_mixer -lguichan_sdl -L/usr/local/lib -lcurl -lGL -lSDL_net -lSDL_mixer -lSDL_image -lpng -lxml2 -lcurl -lphysfs -lz -lguichan -lpthread
/usr/bin/ld: cannot find -lguichan_sdl
collect2: ld returned 1 exit status
make[2]: *** [tmw] Error 1
make[2]: Leaving directory `/home/dave/Desktop/tmw-0.0.24/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dave/Desktop/tmw-0.0.24'
make: *** [all] Error 2

SUCCESS!!!! Recomplied guichan and tried again. Everything worked great!!

Spoke too soon. Though it installed it won't launch. Tried to uninstall and reinstall it to no avail. I have pretty little launcher, but it does nothing.
Post Reply