touble compiling on the terminal

Discuss the future of Warzone 2100 with us.
User avatar
carbon dude oxide
Trained
Trained
Posts: 141
Joined: 28 Apr 2011, 07:46

touble compiling on the terminal

Post by carbon dude oxide »

hello, im new to linux and i am surprised i got this far :D

everything has gone well when i have been installing warzone RC3 but when i finally put make into the terminal it fails :/

this is the last info that is in the terminal:

Code: Select all

configure: 
configure: *** Running in debug mode! ***
configure: 
configure: WARNING: Distributor unknown!
configure: Use --with-distributor when compiling package for distribution
configure: 
configure: WARNING: a2x (asciidoc) or wkhtmltopdf not found, can't convert documentation. This doesn't affect building the game,
		but means that things like "make dist" and building a Windows installer will fail.
configure: 
configure: Backend used: sdl
pi@raspberrypi ~/warzone $ make
make  all-recursive
make[1]: Entering directory `/home/pi/warzone'
Making all in win32
make[2]: Entering directory `/home/pi/warzone/win32'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/pi/warzone/win32'
Making all in 3rdparty/miniupnpc
make[2]: Entering directory `/home/pi/warzone/3rdparty/miniupnpc'
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DDEBUG -DWZ_DATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -I../../3rdparty -I../../3rdparty/quesoglc   -O0 -g -Werror -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wcast-align -Wwrite-strings -Wpointer-arith -Wno-format-security -Wstrict-prototypes -Wdeclaration-after-statement  -Wno-switch -Wno-enum-compare  -fno-strict-aliasing -UDEBUG -fstack-protector -MT connecthostport.o -MD -MP -MF .deps/connecthostport.Tpo -c -o connecthostport.o connecthostport.c
mv -f .deps/connecthostport.Tpo .deps/connecthostport.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DDEBUG -DWZ_DATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -I../../3rdparty -I../../3rdparty/quesoglc   -O0 -g -Werror -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wcast-align -Wwrite-strings -Wpointer-arith -Wno-format-security -Wstrict-prototypes -Wdeclaration-after-statement  -Wno-switch -Wno-enum-compare  -fno-strict-aliasing -UDEBUG -fstack-protector -MT igd_desc_parse.o -MD -MP -MF .deps/igd_desc_parse.Tpo -c -o igd_desc_parse.o igd_desc_parse.c
mv -f .deps/igd_desc_parse.Tpo .deps/igd_desc_parse.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DDEBUG -DWZ_DATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -I../../3rdparty -I../../3rdparty/quesoglc   -O0 -g -Werror -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wcast-align -Wwrite-strings -Wpointer-arith -Wno-format-security -Wstrict-prototypes -Wdeclaration-after-statement  -Wno-switch -Wno-enum-compare  -fno-strict-aliasing -UDEBUG -fstack-protector -MT minisoap.o -MD -MP -MF .deps/minisoap.Tpo -c -o minisoap.o minisoap.c
mv -f .deps/minisoap.Tpo .deps/minisoap.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DDEBUG -DWZ_DATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -I../../3rdparty -I../../3rdparty/quesoglc   -O0 -g -Werror -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wcast-align -Wwrite-strings -Wpointer-arith -Wno-format-security -Wstrict-prototypes -Wdeclaration-after-statement  -Wno-switch -Wno-enum-compare  -fno-strict-aliasing -UDEBUG -fstack-protector -MT minissdpc.o -MD -MP -MF .deps/minissdpc.Tpo -c -o minissdpc.o minissdpc.c
mv -f .deps/minissdpc.Tpo .deps/minissdpc.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DDEBUG -DWZ_DATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -I../../3rdparty -I../../3rdparty/quesoglc   -O0 -g -Werror -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wcast-align -Wwrite-strings -Wpointer-arith -Wno-format-security -Wstrict-prototypes -Wdeclaration-after-statement  -Wno-switch -Wno-enum-compare  -fno-strict-aliasing -UDEBUG -fstack-protector -MT miniupnpc.o -MD -MP -MF .deps/miniupnpc.Tpo -c -o miniupnpc.o miniupnpc.c
miniupnpc.c: In function ‘upnpDiscover’:
miniupnpc.c:482:29: error: cast increases required alignment of target type [-Werror=cast-align]
miniupnpc.c:488:28: error: cast increases required alignment of target type [-Werror=cast-align]
miniupnpc.c:569:5: error: cast increases required alignment of target type [-Werror=cast-align]
cc1: all warnings being treated as errors
make[2]: *** [miniupnpc.o] Error 1
make[2]: Leaving directory `/home/pi/warzone/3rdparty/miniupnpc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pi/warzone'
make: *** [all] Error 2
any help resolving this problem would be brilliant ^.^
User avatar
Berg
Regular
Regular
Posts: 2204
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: touble compiling on the terminal

Post by Berg »

this is a guide for compiling on linux http://developer.wz2100.net/wiki/CompileGuideLinux
you can use "sudo apt-get install build-essential automake flex bison libpng12-dev libsdl1.2-dev libopenal-dev libphysfs-dev libvorbis-dev libtheora-dev libglc-dev libglew1.5-dev libxrandr-dev zip unzip libqt4-opengl-dev libqt4-network libqjson-dev" this will get you almost all the libs, you may need to install QT4.
Also get sudo apt-get bisonc++ if on ubuntu im not sure if it still is needed but i have it installed on my system.
good luck Berg
User avatar
carbon dude oxide
Trained
Trained
Posts: 141
Joined: 28 Apr 2011, 07:46

Re: touble compiling on the terminal

Post by carbon dude oxide »

hmmm i already didmost of that part from bisonc++ and what is qt4?
User avatar
Berg
Regular
Regular
Posts: 2204
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: touble compiling on the terminal

Post by Berg »

carbon dude oxide wrote:hmmm i already didmost of that part from bisonc++ and what is qt4?
Qt


Qt is a full development framework with tools designed to streamline the creation of applications and user interfaces for desktop, embedded and mobile platforms.

Qt framework - intuitive APIs for C++ and CSS/JavaScript-like programming with Qt Quick for rapid UI creation
Qt Creator IDE - powerful cross-platform integrated development environment, including UI designer tools and on-device debugging
Tools and toolchains - All you need: simulator, local and remote compilers, internationalization support, device toolchains and more.

What flavour of linux are you running...
If Ubuntu you can use ubuntu software center
other versions you will have to look up how to install it maybe sudo apt-get qt
good luck Berg
User avatar
carbon dude oxide
Trained
Trained
Posts: 141
Joined: 28 Apr 2011, 07:46

Re: touble compiling on the terminal

Post by carbon dude oxide »

thanks :D im actualy trying to see if i can get it on my raspi (after over clocking it meets the requirements for the game :D)
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: touble compiling on the terminal

Post by stiv »

trying to see if i can get it on my raspi
So you are not just compiling, but porting WZ to a different platform.

Hint: it always helps to mention what platform you are building on.

The error msg is a warning about potential alignment issues. No idea what the Pi has in term of alignment requirements, but as a first step you might try simply turning off that warning. (default is warnings treated as errors)
User avatar
carbon dude oxide
Trained
Trained
Posts: 141
Joined: 28 Apr 2011, 07:46

Re: touble compiling on the terminal

Post by carbon dude oxide »

i tried to install the source code onto the rasbian wheezy
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: touble compiling on the terminal

Post by stiv »

This is likely not going to be a simple "download the source & compile" task. The Pi is a new platform for WZ. I do not believe we have the code running on an ARM processor. I confess I am not familiar with the ARM processor, but likely porting problems are:

* data alignment issues
* OpenGL - the Pi has OpenGL ES support (I believe). This is a cut down version of OpenGL for embedded devices and teensy computers like the Pi.
* performance - no idea what kind of cpu horsepower the Pi has

Porting WZ should be do-able. But you might have to work at it.
User avatar
carbon dude oxide
Trained
Trained
Posts: 141
Joined: 28 Apr 2011, 07:46

Re: touble compiling on the terminal

Post by carbon dude oxide »

yup :D

well im running debian wheezy on it at 1000mhz (overclocked)

everythin has been fine in the installation apart from when it is looking for a2x which i cannot get onto my pi (i probably not doing it right ^.^)
thatsmychin
New user
Posts: 3
Joined: 19 Dec 2009, 08:10

Re: touble compiling on the terminal

Post by thatsmychin »

Let us know if you have had an progress! I finally got around to tinkering with my Pi, and my first thought was...."if I can get Quake 3 on here, I wonder if I can get WZ2100 to work!" Looks like I wasn't the only one to think that. Anyway, I'm gonna hack away at it and see what is possible. Who knows, if WZ works, could spark a lot more interest in the game if everyone with a Pi starts playing.
User avatar
aubergine
Professional
Professional
Posts: 3462
Joined: 10 Oct 2010, 00:58

Re: touble compiling on the terminal

Post by aubergine »

If you do get it working, please let us know how - maybe we can add it to the build guide in the wiki so other Pi users can have a go?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
thatsmychin
New user
Posts: 3
Joined: 19 Dec 2009, 08:10

Re: touble compiling on the terminal

Post by thatsmychin »

Sorry auber, I wish I was a coder, but I'm more of a hardware/OS tinkerer. I barely made it through the FIVE programming classes I've had to take (actually I failed VB.net classes a couple of times).

So I went through the install guide just to see if it would compile. Source from git, installed all dependencies. Errors were the same as the OP. I'm not informed enough to know if the issues stiv mentioned are source problems or something I can change on the Pi.

I'll investigate as much as my feeble mind will allow me, but now would be a great time to get WZ2100 rolling on ARM since Mojang is making 'Minecraft Pocket Edition' free on the Pi, and lots of eyeballs are looking at the Pi and its capabilities. WZ brain trust might let us know if we are wasting our time trying to get it working without serious code or hardware requirements.

{by the way, I know you devs are busy, take your time. Enjoy your family and friends. Thank you soooo much for bringing WZ back to me and allowing me to share the awesomeness with my kids.} If you get a chance, let us Pi users know if we are out of luck for the time being.
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: touble compiling on the terminal

Post by Per »

If you are not a coder, then I suggest you forget about this for the time being. The Pi only supports OpenGL ES 2, and we do not. Porting to OpenGL ES 2 and the Pi is on my mile long todo list - do not expect that any time soon. I'd be happy to help someone who wants to have a go at it, though.