Page 1 of 1

Beta 5 binary for Kubuntu Linux

Posted: 30 Sep 2008, 18:17
by uaequals42
I can't seem to compile the beta 5 source on my computer.
http://wiki.wz2100.net/Linux_Compile_Guide I followed the instructions on this page, except for the svn part.

Here is what I got in console for each stage.

./autogen.sh

Code: Select all

+ checking for pkg-config >= 0.9 ...
You must have pkg-config installed to compile Warzone2100.
Download the appropriate package for your distribution,
or get the source tarball at http://pkgconfig.freedesktop.org/
+ checking for xgettext >= 0.15 ...
You must have xgettext installed to compile Warzone2100.
Download the appropriate package for your distribution,
or get the source tarball at ftp://ftp.gnu.org/pub/gnu/gettext/
+ checking for msgfmt >= 0.15 ...
You must have msgfmt installed to compile Warzone2100.
Download the appropriate package for your distribution,
or get the source tarball at ftp://ftp.gnu.org/pub/gnu/gettext/
+ checking for autoconf >= 2.56 ... found 2.61, ok.
+ checking for automake >= 1.10 ... found 1.10.1, ok.
./configure

Code: Select all

./configure
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 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 gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
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 bison... bison -y
checking for bison >= 1.31... found 2.3, ok
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for flex >= 2.5.33... found 2.5.34, ok
checking for flex != 2.5.34... configure: error: found 2.5.34, not ok
make

Code: Select all

make: *** No targets specified and no makefile found.  Stop.
I believe it fails in the ./configure part with "checking for flex != 2.5.34... configure: error: found 2.5.34, not ok"

I'm using Kubuntu Hardy.
NVIDIA 8600

Any suggestions?

Re: Beta 5 binary for Kubuntu Linux

Posted: 30 Sep 2008, 18:23
by EvilGuru
Flex 2.5.34 is buggy — hence we require you have either Flex 2.5.33 or Flex 2.5.35 or newer. You will need to take this up with the package maintainer for Flex in Ubuntu.

Regards, Freddie.

Re: Beta 5 binary for Kubuntu Linux

Posted: 30 Sep 2008, 19:01
by uaequals42
I installed the http://packages.ubuntu.com/intrepid/i386/flex/download intrepid version of flex.

There are a few packages that the wiki forgets to mention that you need to install.
*pkg-config
*libglc-dev

I didn't use sudo make install and got an error message. How do I tell it to compile the program into another location. Or do I just have to let it install wherever.

Re: Beta 5 binary for Kubuntu Linux

Posted: 30 Sep 2008, 23:17
by uaequals42
I decided to go ahead and do sudo make-install. I'm still curious about how to install it to another directory though.

Re: Beta 5 binary for Kubuntu Linux

Posted: 01 Oct 2008, 06:07
by Buginator
uaequals42 wrote:I decided to go ahead and do sudo make-install. I'm still curious about how to install it to another directory though.
It is a ./configure option.

--prefix or something like that, check ./configure --help or something like that.

Re: Beta 5 binary for Kubuntu Linux

Posted: 14 Oct 2008, 16:38
by PlayForFun
The beta5 deb packages from debian sid works fine for me, however in addition to warzone packages (k)ubuntu also needs the updated libopenal and libpopt packages from sid

packages and versions:
libopenal1_1.4.272-2_i386.deb
libpopt0_1.14-4_i386.deb
warzone2100_2.1.0~1.beta5-1_i386.deb
warzone2100-data_2.1.0~1.beta5-1_all.deb
warzone2100-music_1.0-1_all.deb

u can manually download them from one of the mirrors and install using dpkg -i <filename>