Page 1 of 2

how to install wz2100 on linux?

Posted: 16 Nov 2009, 11:05
by creatxr
I installed ubuntu 9.10 today.
I run the command "./configure && make" to build wz2100 and met some problem:
how to?thanks.
--------------------------
creatxr@creatxr-laptop:~/SOFTS/warzone2100-2.2.4$ ./configure && make
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 build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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++... 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 bison... no
checking for byacc... no
configure: error: Bison is not installed
creatxr@creatxr-laptop:~/SOFTS/warzone2100-2.2.4$

Re: how to install wz2100 on linux?

Posted: 16 Nov 2009, 16:44
by stiv
configure: error: Bison is not installed
Install bison.

Linux packages come in two parts. For any package 'foo', there is the basic 'foo' that provides the libraries needed to run a program. To compile that program, you also need the 'foo-devel' package that contains the header files. Depending on your distro, the header package may be called 'foo-dev'. In either case, you need both parts.

Re: how to install wz2100 on linux?

Posted: 16 Nov 2009, 17:16
by cybersphinx

Re: how to install wz2100 on linux?

Posted: 16 Nov 2009, 20:17
by creatxr
I 've downloaded and installed many "foo" packages.
Now I 've problem with "configure: error: PhysicsFS header not found."
I've downloaded "physfs-2.0.0.tar.gz" and unzip and add to "$PATH".
but it has still the problem.
where to place it or export a variant?

Re: how to install wz2100 on linux?

Posted: 16 Nov 2009, 20:26
by stiv
Did you actually compile and install physfs or just untar it?

Re: how to install wz2100 on linux?

Posted: 16 Nov 2009, 21:27
by creatxr
now I found that it must use "cmake".
I tried using "cmake" to compile it.
-----
"CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name."
-----
but I found that there is "gcc" in "/usr/bin".
What library does it require? glibcxx?

Re: how to install wz2100 on linux?

Posted: 17 Nov 2009, 04:12
by stiv
Do you have g++ installed? (the C++ compiler)

And doesn't Ubuntu have a package for physfs? (dont' forget the -dev package!)

After a little research - the new 2.0 version of physfs uses cmake. you probably want the 1.0 version which uses the old autoconf (./configure) stuff.

Re: how to install wz2100 on linux?

Posted: 17 Nov 2009, 21:04
by creatxr
thanks .
I didn't success make "physfs", but i install by package manager now.
I've another problem:
configure: error: SDL OpenGL header not found. Please install SDL with OpenGL support.

which package i need?
I've installed "libsage2" and "libsage-dev" which "supports OpenGL in SDL applications" by package manager.

Re: how to install wz2100 on linux?

Posted: 17 Nov 2009, 21:40
by jaakan
creatxr wrote:thanks .
I didn't success make "physfs", but i install by package manager now.
I've another problem:
configure: error: SDL OpenGL header not found. Please install SDL with OpenGL support.

which package i need?
I've installed "libsage2" and "libsage-dev" which "supports OpenGL in SDL applications" by package manager.

"procedure for Debian-based systems" on the LinuxCompileGuide in the wiki will take care of everything you need for Ubuntu 9.10.

Re: how to install wz2100 on linux?

Posted: 09 Dec 2009, 20:32
by aharown07
Can you link me to this wiki? Brand new to Warzone and I'm a bit confused as to where to find info. Kind of thought detailed install instructions would be in the user guide but I guess not.
I am using a deb based system and even the version at playdeb.net is 2.2.2 rather than 2.2.4 (at least, 2.2.2 is what I ended up with)
So I don't know how to get to 2.2.4 on my Mint8 without doing some kind of compile (which I've never done before!)

Re: how to install wz2100 on linux?

Posted: 09 Dec 2009, 21:35
by Zarel
aharown07 wrote:Can you link me to this wiki? Brand new to Warzone and I'm a bit confused as to where to find info. Kind of thought detailed install instructions would be in the user guide but I guess not.
I am using a deb based system and even the version at playdeb.net is 2.2.2 rather than 2.2.4 (at least, 2.2.2 is what I ended up with)
So I don't know how to get to 2.2.4 on my Mint8 without doing some kind of compile (which I've never done before!)
What's wrong with the install instructions on the user guide? See http://guide.wz2100.net/gettingstarted#linux

Re: how to install wz2100 on linux?

Posted: 09 Dec 2009, 22:02
by cybersphinx
Zarel wrote:What's wrong with the install instructions on the user guide?
You use "make install".

Re: how to install wz2100 on linux?

Posted: 09 Dec 2009, 22:23
by Zarel
cybersphinx wrote:You use "make install".
What's wrong with that? We haven't switched over to cmake or anything yet, have we?

Re: how to install wz2100 on linux?

Posted: 10 Dec 2009, 01:38
by creatxr
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.
-------------------------------------------------------------------
but i found that it is here :

/usr/local/include/SDL/SDL_net.h
-----------------------------------------------------

Re: how to install wz2100 on linux?

Posted: 10 Dec 2009, 02:02
by cybersphinx
Zarel wrote:What's wrong with that?
http://developer.wz2100.net/wiki/LinuxC ... Installing