Pages: 1 2 [3]
  Print  
Author Topic: OpenArena 0.8.8 source  (Read 110218 times)
SooKee
Nub


Cakes 5
Posts: 37



« Reply #50 on: May 20, 2014, 02:18:30 AM »

There has been a lot of small adjustments up to the release but now that OpenArena 0.8.8 has been released the source is final too:

Game logic source: http://files.poulsander.com/~poul19/public_files/oa/dev088/oa-0.8.8.tar.bz2
Taken from OAX branch oa-0.8.8 r295

Engine source: http://files.poulsander.com/~poul19/public_files/oa/dev088/openarena-engine-source-0.8.8.tar.bz2
-28 from the binary thread.

Does anyone else have an issue compiling the game logic (oa-0.8.8.tar.bz2) with GCC 4.8?

I get no errors compiling on one machine running GCC 4.7.2 but it won't compile the qvm on another machine running GCC 4.8.2.

Here are the errors:

Code:
make[2]: `build/release-linux-x86_64/baseq3/cgamex86_64.so' is up to date.
make[2]: `build/release-linux-x86_64/baseq3/qagamex86_64.so' is up to date.
make[2]: `build/release-linux-x86_64/baseq3/uix86_64.so' is up to date.
make[2]: `build/release-linux-x86_64/missionpack/cgamex86_64.so' is up to date.
make[2]: `build/release-linux-x86_64/missionpack/qagamex86_64.so' is up to date.
make[2]: `build/release-linux-x86_64/missionpack/uix86_64.so' is up to date.
CGAME_Q3LCC code/cgame/cg_main.c
build/release-linux-x86_64/tools/q3lcc: fatal error in build/release-linux-x86_64/tools/q3cpp
make[2]: *** [build/release-linux-x86_64/baseq3/cgame/cg_main.asm] Error 1
make[2]: Leaving directory `/home/galik/dev/oa-0.8.8'
make[1]: *** [targets] Error 2
make[1]: Leaving directory `/home/galik/dev/oa-0.8.8'
make: *** [release] Error 2

This is from a vanilla download - no changes.

Code:
gcc --version
gcc (GCC) 4.8.2 20131212 (Red Hat 4.8.2-7)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Logged

- SooKee QuakeNet: #openarenahelp
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #51 on: May 20, 2014, 04:56:13 AM »

LCC that is used to compile the qvm is broken in GCC 4.82. This is caused by a non-standard implementation of memmove i LCC. The program does an "undef memmove" and replaces it with a non-standard version. It is fixed in later versions.
Logged

There are nothing offending in my posts.
Neon_Knight
In the year 3000
***

Cakes 49
Posts: 3775


Trickster God.


« Reply #52 on: May 20, 2014, 11:31:58 AM »

Here's another... I'm using https://github.com/OpenArena/engine.git.

Code:
make[2]: se ingresa al directorio «/home/neonknight/dev/oaengine/engine»
make[2]: «build/release-linux-x86/oa_ded.x86» está actualizado.
CC code/client/cl_main.c
In file included from code/client/cl_main.c:28:0:
code/client/../sys/sys_loadlib.h:39:19: fatal error: SDL.h: No such file exists
 #  include "SDL.h"
                   ^
compilation terminated.
make[2]: *** [build/release-linux-x86/client/cl_main.o] Error 1
make[2]: se sale del directorio «/home/neonknight/dev/oaengine/engine»
make[1]: *** [targets] Error 2
make[1]: se sale del directorio «/home/neonknight/dev/oaengine/engine»
make: *** [release] Error 2
Logged


"Detailed" is nice, but if it gets in the way of clarity, it ceases being a nice addition and becomes a problem. - TVT
Want to contribute? Read this.
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #53 on: May 20, 2014, 11:47:59 AM »

https://github.com/OpenArena/engine.git now has the memmove fix in branch "oa-0.8.8" too. It compiles with gcc-4.8.2.
If cloning is too advanced then I have also packed a ball: http://files.poulsander.com/~poul19/public_files/oa/dev088/oa-0.8.8-1.tar.bz2

I have no problems compiling the engine.
Although I had to do:
Code:
git checkout 6eaf168ab717b340ccf0b626cd31b5687d9664f1
Because HEAD does not compile at the moment.

The engine also requires libgl1-mesa-dev, libsdl1.2-dev, libvorbis-dev, libfreetype6-dev and libxmp-dev. The last one is a rather new library. It exists in Ubuntu 14.04 but not in previous versions. It is in Debian testing (jessie) too. Travis fails to build it because travis does not have libxmp. 

@Neon_Knight: Your output suggests that you are missing libsdl1.2-dev
Logged

There are nothing offending in my posts.
Neon_Knight
In the year 3000
***

Cakes 49
Posts: 3775


Trickster God.


« Reply #54 on: May 20, 2014, 02:06:23 PM »

Indeed that was. I also installed the remaining packages you've mentioned. However, it still doesn't compile; now I have this problem:

Code:
REF_CC build/release-linux-x86/renderer_oa/glsl/anime_fp.c
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:2:1: warning: missing terminating " character [enabled by default]
\n"*
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:2:1: error: missing terminating " character
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:3:1: error: stray ‘\’ in program
\n"
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:3:3: warning: missing terminating " character [enabled by default]
\n"
   ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:3:1: error: missing terminating " character
\n"
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:4:1: warning: missing terminating " character [enabled by default]
\n"1980s japanimation ^_^
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:4:1: error: missing terminating " character
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:5:1: error: stray ‘\’ in program
\n"
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:3:2: error: ‘n’ undeclared here (not in a function)
\n"
  ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:5:2: error: expected ‘,’ or ‘;’ before ‘n’
\n"
  ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:5:3: warning: missing terminating " character [enabled by default]
\n"
   ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:5:2: error: missing terminating " character
\n"
  ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:6:1: warning: missing terminating " character [enabled by default]
\n" Copyright (C) 2014 fromhell
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:6:1: error: missing terminating " character
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:7:1: error: stray ‘\’ in program
\n"
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:7:3: warning: missing terminating " character [enabled by default]
\n"
   ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:7:1: error: missing terminating " character
\n"
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:8:1: warning: missing terminating " character [enabled by default]
\n"This program is free software; you can redistribute it and/or modify it
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:8:1: error: missing terminating " character
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:9:1: error: stray ‘\’ in program
\n"under the terms of the GNU General Public License as published by the Free
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:9:3: warning: missing terminating " character [enabled by default]
\n"under the terms of the GNU General Public License as published by the Free
   ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:9:1: error: missing terminating " character
\n"under the terms of the GNU General Public License as published by the Free
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:10:1: warning: missing terminating " character [enabled by default]
\n"Software Foundation; either version 2 of the License, or (at your option)
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:10:1: error: missing terminating " character
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:11:1: error: stray ‘\’ in program
\n"any later version.
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:11:3: warning: missing terminating " character [enabled by default]
\n"any later version.
   ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:11:1: error: missing terminating " character
\n"any later version.
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:12:1: warning: missing terminating " character [enabled by default]
\n"
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:12:1: error: missing terminating " character
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:13:1: error: stray ‘\’ in program
\n"
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:13:3: warning: missing terminating " character [enabled by default]
\n"
   ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:13:1: error: missing terminating " character
\n"
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:14:1: warning: missing terminating " character [enabled by default]
\n"
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:14:1: error: missing terminating " character
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:15:1: error: stray ‘\’ in program
\n"/
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:15:3: warning: missing terminating " character [enabled by default]
\n"/
   ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:15:1: error: missing terminating " character
\n"/
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:16:1: warning: missing terminating " character [enabled by default]
\n"
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:16:1: error: missing terminating " character
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:17:1: error: stray ‘\’ in program
\n"niform sampler2D u_Texture0;
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:17:3: warning: missing terminating " character [enabled by default]
\n"niform sampler2D u_Texture0;
   ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:17:1: error: missing terminating " character
\n"niform sampler2D u_Texture0;
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:18:1: warning: missing terminating " character [enabled by default]
\n"niform sampler2D u_Texture1;
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:18:1: error: missing terminating " character
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:19:1: error: stray ‘\’ in program
\n"niform sampler2D u_Texture2;
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:19:3: warning: missing terminating " character [enabled by default]
\n"niform sampler2D u_Texture2;
   ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:19:1: error: missing terminating " character
\n"niform sampler2D u_Texture2;
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:20:1: warning: missing terminating " character [enabled by default]
\n"niform sampler2D u_Texture3;
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:20:1: error: missing terminating " character
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:21:1: error: stray ‘\’ in program
\n"niform sampler2D u_Texture4;
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:21:3: warning: missing terminating " character [enabled by default]
\n"niform sampler2D u_Texture4;
   ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:21:1: error: missing terminating " character
\n"niform sampler2D u_Texture4;
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:22:1: warning: missing terminating " character [enabled by default]
\n"niform sampler2D u_Texture5;
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:22:1: error: missing terminating " character
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:23:1: error: stray ‘\’ in program
\n"niform sampler2D u_Texture6;
 ^
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:23:3: warning: missing terminating " character [enabled by default]
[...]
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:278:1: error: missing terminating " character
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:279:1: error: stray ‘\’ in program
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:279:3: warning: missing terminating " character [enabled by default]
build/release-linux-x86/renderer_oa/glsl/anime_fp.c:279:1: error: missing terminating " character
make[2]: *** [build/release-linux-x86/renderer_oa/glsl/anime_fp.o] Error 1
rm build/release-linux-x86/renderer_oa/glsl/anime_fp.c
make[2]: se sale del directorio «/home/neonknight/dev/oaengine/engine»
make[1]: *** [targets] Error 2
make[1]: se sale del directorio «/home/neonknight/dev/oaengine/engine»
make: *** [release] Error 2
Note that the [...] regards the entire anime_fp.c file, and there's a problem also with anime_fp.glsl.
Any ideas?
Logged


"Detailed" is nice, but if it gets in the way of clarity, it ceases being a nice addition and becomes a problem. - TVT
Want to contribute? Read this.
fromhell
Administrator
GET A LIFE!
**********

Cakes 35
Posts: 14520



WWW
« Reply #55 on: May 20, 2014, 02:09:21 PM »

That's unusual.  There shouldn't be any .c files at all in the glsl/ folder - just .glsl files.  It compiles fine for me :S


This compiling of GLSL shaders was only just recently brought in the latest commit and is something that's trying to mimic renderergl2's compiling of GLSL files as string objects to be referenced in tr_init.c as const char pointers, which doesn't work yet.
Logged

asking when OA3 will be done won't get OA3 done.
Progress of OA3 currently occurs behind closed doors alone

I do not provide technical support either.

new code development on github
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #56 on: May 20, 2014, 02:21:22 PM »

I have the same problem as Neon_Knight. That is why I had to checkout an earlier version.

I believe it is caused by the addition to the Makefile:
Code:
+Q3ROASTRINGOBJ = \
+  $(B)/renderer_oa/glsl/anime_fp.o \
+  $(B)/renderer_oa/glsl/anime_vp.o \
+  $(B)/renderer_oa/glsl/anime_film_fp.o \
+  $(B)/renderer_oa/glsl/anime_film_vp.o \
+  $(B)/renderer_oa/glsl/brightness_fp.o \
+  $(B)/renderer_oa/glsl/brightness_vp.o \
+  $(B)/renderer_oa/glsl/leifx_dither_fp.o \
+  $(B)/renderer_oa/glsl/leifx_dither_vp.o \
+  $(B)/renderer_oa/glsl/leifx_filter_fp.o \
+  $(B)/renderer_oa/glsl/leifx_filter_vp.o \
+  $(B)/renderer_oa/glsl/leifx_gamma_fp.o \
+  $(B)/renderer_oa/glsl/leifx_gamma_vp.o \
+  $(B)/renderer_oa/glsl/leifx_vgasignal_fp.o \
+  $(B)/renderer_oa/glsl/leifx_vgasignal_vp.o \
+  $(B)/renderer_oa/glsl/motionblur_accum_fp.o \
+  $(B)/renderer_oa/glsl/motionblur_accum_vp.o \
+  $(B)/renderer_oa/glsl/motionblur_post_fp.o \
+  $(B)/renderer_oa/glsl/motionblur_post_vp.o
The requirements for c-files (that does not exists) then then created by:

Code:
+$(B)/renderer_oa/glsl/%.o: $(B)/renderer_oa/glsl/%.c
+ $(DO_REF_CC)
Logged

There are nothing offending in my posts.
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #57 on: May 20, 2014, 03:07:45 PM »

I created a version that I could get to compile:
https://github.com/sago007/engine

I just compiled and launched the game. Appears to work ok.

I removed Q3ROASTRINGOBJ and related. I could not see any problems related to that. Failed to trigger travis, so I do not know if my changes to get Travis to compile without xmp works.
Logged

There are nothing offending in my posts.
fromhell
Administrator
GET A LIFE!
**********

Cakes 35
Posts: 14520



WWW
« Reply #58 on: May 20, 2014, 06:41:16 PM »

I also tried to do make a USE_FALLBACK_GLSL var for the makefile to disable that but I failed that too, so I didn't commit that.

I still don't get why it doesn't work, I copied RGL2's process as closely as I could.... :/
« Last Edit: May 20, 2014, 06:43:48 PM by fromhell » Logged

asking when OA3 will be done won't get OA3 done.
Progress of OA3 currently occurs behind closed doors alone

I do not provide technical support either.

new code development on github
Pages: 1 2 [3]
  Print  
 
Jump to: