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

how to install wz2100 on linux?

Post 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$
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 »

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.
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: how to install wz2100 on linux?

Post by cybersphinx »

creatxr
Rookie
Rookie
Posts: 18
Joined: 30 Oct 2009, 20:12

Re: how to install wz2100 on linux?

Post 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?
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 »

Did you actually compile and install physfs or just untar it?
creatxr
Rookie
Rookie
Posts: 18
Joined: 30 Oct 2009, 20:12

Re: how to install wz2100 on linux?

Post 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?
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 »

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.
creatxr
Rookie
Rookie
Posts: 18
Joined: 30 Oct 2009, 20:12

Re: how to install wz2100 on linux?

Post 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.
User avatar
jaakan
Trained
Trained
Posts: 75
Joined: 15 Jun 2008, 01:51

Re: how to install wz2100 on linux?

Post 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.
aharown07
New user
Posts: 5
Joined: 09 Dec 2009, 20:27

Re: how to install wz2100 on linux?

Post 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!)
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA
Contact:

Re: how to install wz2100 on linux?

Post 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
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: how to install wz2100 on linux?

Post by cybersphinx »

Zarel wrote:What's wrong with the install instructions on the user guide?
You use "make install".
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA
Contact:

Re: how to install wz2100 on linux?

Post 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?
creatxr
Rookie
Rookie
Posts: 18
Joined: 30 Oct 2009, 20:12

Re: how to install wz2100 on linux?

Post 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
-----------------------------------------------------
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: how to install wz2100 on linux?

Post by cybersphinx »

Zarel wrote:What's wrong with that?
http://developer.wz2100.net/wiki/LinuxC ... Installing
Post Reply