how to install wz2100 on linux?

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
creatxr
Rookie
Rookie
Posts: 18
Joined: 30 Oct 2009, 20:12

Re: how to install wz2100 on linux?

Post by creatxr »

it must be "./configure" before,
it's the error while configuring
------------------------------------------------------
checking SDL/SDL_net.h usability... no
checking SDL/SDL_net.h presence... no
checking for SDL/SDL_net.h... no
configure: error: SDL_net header not found.
----------------------------------------------------------
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: how to install wz2100 on linux?

Post by stiv »

Install libSDL_net and libSDL_net-devel.
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: how to install wz2100 on linux?

Post by Zarel »

Man, that's really complicated. Why can't you just use the "click Next a buncha times" install method, like on normal operating systems? o_O
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: how to install wz2100 on linux?

Post by cybersphinx »

Zarel wrote:
Man, that's really complicated. Why can't you just use the "click Next a buncha times" install method, like on normal operating systems? o_O
That works if the game is in the repo. Installing from source is a bit more difficult, and we don't offer any distro-independent installers anymore (don't remember if there were any problems, or just nobody made them anymore).
aharown07
New user
Posts: 5
Joined: 09 Dec 2009, 20:27

Re: how to install wz2100 on linux?

Post by aharown07 »

I'm getting "couldn't find libSDL_net" and same for libSDL_net.devel
As a noob, I'm learning a whole lot just trying to get the latest wz2100 working my deb based distro! Don't know how to get this libSDL stuff though

Edit: OK, found libsdl_net1.2 and libsdl_net1.2-dev in my package mgr. The first was already installed. Installed the second. Not sure if these are the right items or not. (I'm on Mint8/Ubuntu9.10)
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: how to install wz2100 on linux?

Post by stiv »

Installed the second.
As mentioned before, for every linux package 'foo', there is a foo-dev or foo-devel depending on the packaging system.

You need the foo-devel (or -dev) package to compile programs. This is the first thing to check when you get the stuff not found msgs.
javierkaiser
Trained
Trained
Posts: 39
Joined: 23 Aug 2009, 08:05

Re: how to install wz2100 on linux?

Post by javierkaiser »

Having problems here too.
Kubuntu 9.10, x64.

First I downloaded the source for 2.3 beta 3. I unzipped and tried to compile just to fund that ./configure wasn't a valid file or directory... wtf? :p
Then to try, I downloaded the source for 2.2.4. Well, there the ./configure workd, just to tell me:
configure: error: cannot find install-sh or install.sh in "." "./.." "./../.."

Now, I don't know what to do next... and leaving for bed.


Oh, nevermind, looks like the package did not download correctly
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: how to install wz2100 on linux?

Post by Buginator »

Erm...

viewtopic.php?f=32&t=3397

Nice little script(s) you can use.
and it ends here.
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: how to install wz2100 on linux?

Post by cybersphinx »

Buginator wrote:Nice little script(s) you can use.
Well, the first one is ok to compile (install not really, since it just uses the default), the second...

But I've noticed now that contrary to my earlier testing, the install process might be a lot easier (not sure if I did something wrong, or something else changed it, like new physfs version). So I'm looking for people to test the following.

Possibly better installation instructions:
  • Download and extract the source, change into its dir (and run "./autogen.sh" if you use SVN)
  • "./configure --prefix=$HOME/warzone-2.3beta4" (for example)
  • "make -j3 && make install"
  • "cd $HOME/bin" (should be in your path, if not check your distro's docs how to do that or use e.g. /usr/local/bin with sudo for the next command)
  • "ln -s $HOME/warzone-2.3beta4/bin/warzone2100 ."
  • "cd"
  • "warzone2100"
That works here (up-to-date Debian unstable), didn't work the last time I tried it. The problems were a. with the symlink in ~/bin, the data wasn't found, so the game didn't start, and b. translations didn't work even when run from the right place. Now both work, but I'd like some confirmation from other/older distros before rewriting the wiki page.
ramil_k
New user
Posts: 1
Joined: 01 Mar 2010, 06:07

Re: how to install wz2100 on linux?

Post by ramil_k »

greetings.

I have problems with compilation too.
I installed all needed libraries, but making is failing with so stacktrace:

Code: Select all

make  all-recursive
make[1]: Entering directory `/home/ramil/warzone'
Making all in build_tools
make[2]: Entering directory `/home/ramil/warzone/build_tools'
Making all in autorevision
make[3]: Entering directory `/home/ramil/warzone/build_tools/autorevision'
./autorevision +cstr -v ../.. ../../src/autorevision.h
svn: Path '../..' ends in '..', which is unsupported for this operation
fatal: Not a git repository
rev-parse --show-cdup: command returned error: 128
fatal: Not a git repository
Warning: could not open input file.
         This does not seem to be a revision controlled project.
Warning: could not open input file.
         This does not seem to be a revision controlled project.
Error: failed retrieving version information.
Warning: using 0 as revision.
Revision unchanged (0). Skipping.
old = "0"; new = "0"
make[3]: Leaving directory `/home/ramil/warzone/build_tools/autorevision'
make[3]: Entering directory `/home/ramil/warzone/build_tools'
make[3]: Цель `all-am' не требует выполнения команд.
make[3]: Leaving directory `/home/ramil/warzone/build_tools'
make[2]: Leaving directory `/home/ramil/warzone/build_tools'
Making all in win32
make[2]: Entering directory `/home/ramil/warzone/win32'
make[2]: Цель `all' не требует выполнения команд.
make[2]: Leaving directory `/home/ramil/warzone/win32'
Making all in lib
make[2]: Entering directory `/home/ramil/warzone/lib'
Making all in framework
make[3]: Entering directory `/home/ramil/warzone/lib/framework'
make  all-am
make[4]: Entering directory `/home/ramil/warzone/lib/framework'
make[4]: Цель `all-am' не требует выполнения команд.
make[4]: Leaving directory `/home/ramil/warzone/lib/framework'
make[3]: Leaving directory `/home/ramil/warzone/lib/framework'
Making all in exceptionhandler
make[3]: Entering directory `/home/ramil/warzone/lib/exceptionhandler'
make[3]: Цель `all' не требует выполнения команд.
make[3]: Leaving directory `/home/ramil/warzone/lib/exceptionhandler'
Making all in script
make[3]: Entering directory `/home/ramil/warzone/lib/script'
make  all-am
make[4]: Entering directory `/home/ramil/warzone/lib/script'
make[4]: Цель `all-am' не требует выполнения команд.
make[4]: Leaving directory `/home/ramil/warzone/lib/script'
make[3]: Leaving directory `/home/ramil/warzone/lib/script'
Making all in sequence
make[3]: Entering directory `/home/ramil/warzone/lib/sequence'
make[3]: Цель `all' не требует выполнения команд.
make[3]: Leaving directory `/home/ramil/warzone/lib/sequence'
Making all in iniparser
make[3]: Entering directory `/home/ramil/warzone/lib/iniparser'
make[3]: Цель `all' не требует выполнения команд.
make[3]: Leaving directory `/home/ramil/warzone/lib/iniparser'
Making all in ivis_common
make[3]: Entering directory `/home/ramil/warzone/lib/ivis_common'
make[3]: Цель `all' не требует выполнения команд.
make[3]: Leaving directory `/home/ramil/warzone/lib/ivis_common'
Making all in ivis_opengl
make[3]: Entering directory `/home/ramil/warzone/lib/ivis_opengl'
make[3]: Цель `all' не требует выполнения команд.
make[3]: Leaving directory `/home/ramil/warzone/lib/ivis_opengl'
Making all in gamelib
make[3]: Entering directory `/home/ramil/warzone/lib/gamelib'
make  all-am
make[4]: Entering directory `/home/ramil/warzone/lib/gamelib'
make[4]: Цель `all-am' не требует выполнения команд.
make[4]: Leaving directory `/home/ramil/warzone/lib/gamelib'
make[3]: Leaving directory `/home/ramil/warzone/lib/gamelib'
Making all in sound
make[3]: Entering directory `/home/ramil/warzone/lib/sound'
make[3]: Цель `all' не требует выполнения команд.
make[3]: Leaving directory `/home/ramil/warzone/lib/sound'
Making all in netplay
make[3]: Entering directory `/home/ramil/warzone/lib/netplay'
mkdir -p ".deps" ; for ext in c cpp ; do for a in `cd . ; echo *.$ext` ; do fpref="`echo "$a" | sed "s/\.$ext//"`" ; pofile=".deps/$fpref.Po" ; srcfile="./$a" ; if [ -e "$srcfile" ] && ! grep -q "\b$a\b" "$pofile" 2> /dev/null ; then echo "$fpref.o: $srcfile" | tee "$pofile" ; fi ; done ; done
Making all in miniupnpc
make[4]: Entering directory `/home/ramil/warzone/lib/netplay/miniupnpc'
make[4]: Цель `all' не требует выполнения команд.
make[4]: Leaving directory `/home/ramil/warzone/lib/netplay/miniupnpc'
make[4]: Entering directory `/home/ramil/warzone/lib/netplay'
make[4]: Цель `all-am' не требует выполнения команд.
make[4]: Leaving directory `/home/ramil/warzone/lib/netplay'
make[3]: Leaving directory `/home/ramil/warzone/lib/netplay'
Making all in widget
make[3]: Entering directory `/home/ramil/warzone/lib/widget'
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL   -DDEBUG -DWZ_DATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../..  -O0 -g -Wall -Werror -Wno-unused-label -Wno-pointer-to-int-cast -Wmissing-field-initializers -Wcast-align -Wwrite-strings -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wno-format-security -Wdeclaration-after-statement -fstack-protector -MT scrap.o -MD -MP -MF .deps/scrap.Tpo -c -o scrap.o scrap.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL   -DDEBUG -DWZ_DATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../..  -O0 -g -Wall -Werror -Wno-unused-label -Wno-pointer-to-int-cast -Wmissing-field-initializers -Wcast-align -Wwrite-strings -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wno-format-security -Wdeclaration-after-statement -fstack-protector -MT slider.o -MD -MP -MF .deps/slider.Tpo -c -o slider.o slider.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL   -DDEBUG -DWZ_DATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../..  -O0 -g -Wall -Werror -Wno-unused-label -Wno-pointer-to-int-cast -Wmissing-field-initializers -Wcast-align -Wwrite-strings -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wno-format-security -Wdeclaration-after-statement -fstack-protector -MT tip.o -MD -MP -MF .deps/tip.Tpo -c -o tip.o tip.c
scrap.c:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘scrap_type’
scrap.c:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
scrap.c:55: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SDL_Window’
scrap.c:72: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘convert_format’
scrap.c: In function ‘init_scrap’:
scrap.c:282: error: ‘SDL_SysWMinfo’ has no member named ‘subsystem’
scrap.c:282: error: ‘SDL_SYSWM_X11’ undeclared (first use in this function)
scrap.c:282: error: (Each undeclared identifier is reported only once
scrap.c:282: error: for each function it appears in.)
scrap.c:284: error: ‘SDL_Display’ undeclared (first use in this function)
scrap.c:284: error: ‘SDL_SysWMinfo’ has no member named ‘info’
scrap.c:285: error: ‘SDL_Window’ undeclared (first use in this function)
scrap.c:285: error: ‘SDL_SysWMinfo’ has no member named ‘info’
scrap.c:286: error: ‘SDL_SysWMinfo’ has no member named ‘info’
scrap.c:287: error: ‘SDL_SysWMinfo’ has no member named ‘info’
cc1: warnings being treated as errors
scrap.c: In function ‘lost_scrap’:
scrap.c:321: error: implicit declaration of function ‘XGetSelectionOwner’
scrap.c:321: error: ‘SDL_Display’ undeclared (first use in this function)
scrap.c:321: error: ‘XA_PRIMARY’ undeclared (first use in this function)
scrap.c:321: error: ‘SDL_Window’ undeclared (first use in this function)
scrap.c: In function ‘put_scrap’:
scrap.c:334: error: ‘scrap_type’ undeclared (first use in this function)
scrap.c:334: error: expected ‘;’ before ‘format’
scrap.c:335: error: ISO C90 forbids mixed declarations and code
scrap.c:340: error: ‘format’ undeclared (first use in this function)
scrap.c:340: error: implicit declaration of function ‘convert_format’
scrap.c:349: error: implicit declaration of function ‘XChangeProperty’
scrap.c:349: error: ‘SDL_Display’ undeclared (first use in this function)
scrap.c:349: error: implicit declaration of function ‘DefaultRootWindow’
scrap.c:350: error: ‘XA_CUT_BUFFER0’ undeclared (first use in this function)
scrap.c:350: error: ‘PropModeReplace’ undeclared (first use in this function)
scrap.c:353: error: implicit declaration of function ‘XSetSelectionOwner’
scrap.c:353: error: ‘XA_PRIMARY’ undeclared (first use in this function)
scrap.c:353: error: ‘SDL_Window’ undeclared (first use in this function)
scrap.c:353: error: ‘CurrentTime’ undeclared (first use in this function)
scrap.c: In function ‘get_scrap’:
scrap.c:435: error: ‘scrap_type’ undeclared (first use in this function)
scrap.c:435: error: expected ‘;’ before ‘format’
scrap.c:438: error: ‘format’ undeclared (first use in this function)
scrap.c:443: error: ‘Window’ undeclared (first use in this function)
scrap.c:443: error: expected ‘;’ before ‘owner’
scrap.c:444: error: ‘Atom’ undeclared (first use in this function)
scrap.c:444: error: expected ‘;’ before ‘selection’
scrap.c:445: error: expected ‘;’ before ‘seln_type’
scrap.c:446: error: ISO C90 forbids mixed declarations and code
scrap.c:452: error: ‘owner’ undeclared (first use in this function)
scrap.c:452: error: ‘SDL_Display’ undeclared (first use in this function)
scrap.c:452: error: ‘XA_PRIMARY’ undeclared (first use in this function)
scrap.c:454: error: ‘None’ undeclared (first use in this function)
scrap.c:454: error: ‘SDL_Window’ undeclared (first use in this function)
scrap.c:457: error: ‘selection’ undeclared (first use in this function)
scrap.c:457: error: ‘XA_CUT_BUFFER0’ undeclared (first use in this function)
scrap.c:466: error: implicit declaration of function ‘XInternAtom’
scrap.c:466: error: ‘False’ undeclared (first use in this function)
scrap.c:467: error: implicit declaration of function ‘XConvertSelection’
scrap.c:468: error: ‘CurrentTime’ undeclared (first use in this function)
scrap.c:475: error: ‘XEvent’ undeclared (first use in this function)
scrap.c:475: error: expected ‘;’ before ‘xevent’
scrap.c:477: error: ‘xevent’ undeclared (first use in this function)
scrap.c:477: error: ‘SelectionNotify’ undeclared (first use in this function)
scrap.c:484: error: implicit declaration of function ‘XGetWindowProperty’
scrap.c:485: error: ‘seln_type’ undeclared (first use in this function)
scrap.c:486: error: ‘Success’ undeclared (first use in this function)
scrap.c:497: error: implicit declaration of function ‘XFree’
scrap.c: In function ‘clipboard_filter’:
scrap.c:594: error: ‘SDL_SysWMmsg’ has no member named ‘event’
scrap.c:596: error: ‘SelectionRequest’ undeclared (first use in this function)
scrap.c:597: error: ‘XSelectionRequestEvent’ undeclared (first use in this function)
scrap.c:597: error: ‘req’ undeclared (first use in this function)
scrap.c:598: error: ‘XEvent’ undeclared (first use in this function)
scrap.c:598: error: expected ‘;’ before ‘sevent’
scrap.c:599: error: ISO C90 forbids mixed declarations and code
scrap.c:604: error: ‘SDL_SysWMmsg’ has no member named ‘event’
scrap.c:605: error: ‘sevent’ undeclared (first use in this function)
scrap.c:605: error: ‘SelectionNotify’ undeclared (first use in this function)
scrap.c:608: error: ‘None’ undeclared (first use in this function)
scrap.c:612: error: ‘SDL_Display’ undeclared (first use in this function)
scrap.c:613: error: ‘XA_CUT_BUFFER0’ undeclared (first use in this function)
scrap.c:613: error: ‘False’ undeclared (first use in this function)
scrap.c:615: error: ‘Success’ undeclared (first use in this function)
scrap.c:619: error: ‘XA_STRING’ undeclared (first use in this function)
scrap.c:625: error: ‘PropModeReplace’ undeclared (first use in this function)
scrap.c:631: error: implicit declaration of function ‘XSendEvent’
scrap.c:632: error: implicit declaration of function ‘XSync’
make[3]: *** [scrap.o] Ошибка 1
make[3]: *** Ожидание завершения заданий...
mv -f .deps/tip.Tpo .deps/tip.Po
mv -f .deps/slider.Tpo .deps/slider.Po
make[3]: Leaving directory `/home/ramil/warzone/lib/widget'
make[2]: *** [all-recursive] Ошибка 1
make[2]: Leaving directory `/home/ramil/warzone/lib'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/home/ramil/warzone'
make: *** [all] Ошибка 2
Can you explain me, what do i'm doing wrong?