Urban Terror Forums: Optimized builds of Urt 4.2 client - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
  • (11 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Optimized builds of Urt 4.2 client Rate Topic: ***** 4 Votes

#11 User is offline   Nitro Icon

  •   QA member   
  • Account: nitro
  • Main tag: |P|
  • Country:
  • Joined: 15-March 10
  • Posts: 1,133

Posted 06 October 2012 - 12:19 PM

I only have 4.2 installed as I am only interested in following the latest version, I was just sharing to let you know incase other have 4.1 and 4.2 installed.
Lian Li pc-o11dw Der 8auer Edition · Gigabyte x570 Aorus Xtreme · AMD Ryzen 9 5950x 16-Core
32GB DDR4 3800MHz CL16 · 2x 1TB Samsung NVMe RAID 0 · 16GB Radeon RX 6900XT Liquid Cooled

#12 User is offline   lebbra Icon

  • Account: lebbra
  • Main tag: bw|
  • Country:
  • Joined: 18-March 10
  • Posts: 170

Posted 06 October 2012 - 08:02 PM

I set USE_FREETYPE=0 but i got this error:

Quote

make[2]: Entering directory `/home/ale/builds/ioq3-r00t-v0.3-src'
CC code/ioq3-urt/ioq3-urt_Microgranularity.c
code/ioq3-urt/ioq3-urt_Microgranularity.c:58:3: error: ‘NORMAL_PRIORITY_CLASS’ undeclared here (not in a function)
code/ioq3-urt/ioq3-urt_Microgranularity.c:58:25: error: ‘THREAD_PRIORITY_NORMAL’ undeclared here (not in a function)
code/ioq3-urt/ioq3-urt_Microgranularity.c:59:25: error: ‘THREAD_PRIORITY_ABOVE_NORMAL’ undeclared here (not in a function)
code/ioq3-urt/ioq3-urt_Microgranularity.c:60:25: error: ‘THREAD_PRIORITY_HIGHEST’ undeclared here (not in a function)
code/ioq3-urt/ioq3-urt_Microgranularity.c:61:3: error: ‘ABOVE_NORMAL_PRIORITY_CLASS’ undeclared here (not in a function)
code/ioq3-urt/ioq3-urt_Microgranularity.c:63:3: error: ‘HIGH_PRIORITY_CLASS’ undeclared here (not in a function)
code/ioq3-urt/ioq3-urt_Microgranularity.c:66:3: error: ‘REALTIME_PRIORITY_CLASS’ undeclared here (not in a function)
code/ioq3-urt/ioq3-urt_Microgranularity.c:66:27: error: ‘THREAD_PRIORITY_IDLE’ undeclared here (not in a function)
code/ioq3-urt/ioq3-urt_Microgranularity.c:67:27: error: ‘THREAD_PRIORITY_LOWEST’ undeclared here (not in a function)
code/ioq3-urt/ioq3-urt_Microgranularity.c:68:27: error: ‘THREAD_PRIORITY_BELOW_NORMAL’ undeclared here (not in a function)
code/ioq3-urt/ioq3-urt_Microgranularity.c:72:27: error: ‘THREAD_PRIORITY_TIME_CRITICAL’ undeclared here (not in a function)
code/ioq3-urt/ioq3-urt_Microgranularity.c: In function ‘Sys_InitPriority’:
code/ioq3-urt/ioq3-urt_Microgranularity.c:80:3: warning: implicit declaration of function ‘SetPriorityClass’ [-Wimplicit-function-declaration]
code/ioq3-urt/ioq3-urt_Microgranularity.c:80:3: warning: implicit declaration of function ‘GetCurrentProcess’ [-Wimplicit-function-declaration]
code/ioq3-urt/ioq3-urt_Microgranularity.c:81:3: warning: implicit declaration of function ‘SetThreadPriority’ [-Wimplicit-function-declaration]
code/ioq3-urt/ioq3-urt_Microgranularity.c:81:3: warning: implicit declaration of function ‘GetCurrentThread’ [-Wimplicit-function-declaration]
make[2]: *** [build/release-linux-x86_64/client/ioq3-urt_Microgranularity.o] Errore 1
make[2]: Leaving directory `/home/ale/builds/ioq3-r00t-v0.3-src'
make[1]: *** [targets] Errore 2
make[1]: Leaving directory `/home/ale/builds/ioq3-r00t-v0.3-src'
make: *** [release] Errore 2

aka Dead f.S. - aka |CoN|-=V0l3ur=-, Playing UrT from 2001 - RedCap bot Developer

[img]http://www.dead.it/UrT/logop.png[/img]

#13 User is offline   r00t Icon

  •   former FS member   
    Lead Anticheat Developer
  • Account: r00t
  • Country:
  • Joined: 01-March 10
  • Posts: 102

Posted 06 October 2012 - 09:22 PM

View Postlebbra, on 06 October 2012 - 08:02 PM, said:

I set USE_FREETYPE=0 but i got this error:
<snipped>


It was some windows only code, fixed that in v0.31, but
forgot to upload latest source to server...
So get ioq3-r00t-v0.31-src.rar and it should compile.

#14 User is offline   iLag Icon

  • Account: ilag
  • Joined: 05-August 12
  • Posts: 10

Posted 07 October 2012 - 05:23 AM

To get it to compile with default options, I had to use this:
CPATH=/usr/include/freetype2/ make
The error I get if I don't is this:
In file included from /usr/include/FTGL/ftgl.h:32:0,
 				from code/ioq3-urt/ioq3-urt_FTGL.c:13:
/usr/include/ft2build.h:56:38: fatal error: freetype/config/ftheader.h: No such file or directory
compilation terminated.

This seems to indicate a bug in the freetype and ftgl packages in Ubuntu 12.04. Not your fault from what I can tell.

In an somewhat related note, I got more warnings trying to compile this than I can count, most of which were about a variable being "set but not used." Then there was this one which I have never seen before:
Clock skew detected.  Your build may be incomplete.
Looks like it was just a simple issue of your files' timestamps being from the future compared to my computer's clock. Executing find . -exec touch {} \; did the trick, as per this page.

So with that all fixed, I decided to try and run it.
ioQ3 for linux i386 (Oct  6 2012 20:58:41)
couldn't exec q3config.cfg
running for 0days 0h 0m and 0s
* VBO Initialized
********************
ERROR: R_LoadFragmentPrograms: Vertex shader program not found.
********************
----- Client Shutdown (recursive error after: R_LoadFragmentPrograms: Vertex shader program not found.) -----
-----------------------
recursive error after: R_LoadFragmentPrograms: Vertex shader program not found.
Yep, turns out the source code package is missing the shaders. I had to download the windows build and copy them over. Seems to work perfectly now. I'll post if I have any other issues with it.

#15 User is offline   r00t Icon

  •   former FS member   
    Lead Anticheat Developer
  • Account: r00t
  • Country:
  • Joined: 01-March 10
  • Posts: 102

Posted 07 October 2012 - 12:59 PM

View PostiLag, on 07 October 2012 - 05:23 AM, said:

(...)
Yep, turns out the source code package is missing the shaders. I had to download the windows build and copy them over. Seems to work perfectly now. I'll post if I have any other issues with it.

Great, thanks iLag.
- Will include GLSL shaders next time
- Maybe timestamps are rar issue, will try using tar+bz2 next time
- Warnings are a mess, this is from original ioQ3 build. Maybe disable some of them (non-critical like that set and not used var) to clean it up.

bullet_loaderAdvertisement

#16 User is offline   lebbra Icon

  • Account: lebbra
  • Main tag: bw|
  • Country:
  • Joined: 18-March 10
  • Posts: 170

Posted 07 October 2012 - 01:10 PM

Confirmed.
I succeed in compilation, but when launched I received the same error as iLag:

Quote

ioQ3 for linux x86_64 (Oct 7 2012 14:06:06)
running for 0days 0h 0m and 43s
* VBO Initialized
********************
ERROR: R_LoadFragmentPrograms: Vertex shader program not found.
********************
----- Client Shutdown (recursive error after: R_LoadFragmentPrograms: Vertex shader program not found.) -----
-----------------------
recursive error after: R_LoadFragmentPrograms: Vertex shader program not found.

This post has been edited by lebbra: 07 October 2012 - 01:11 PM

aka Dead f.S. - aka |CoN|-=V0l3ur=-, Playing UrT from 2001 - RedCap bot Developer

[img]http://www.dead.it/UrT/logop.png[/img]

#17 User is offline   Pilou42 Icon

  • Account: pilou42
  • Country:
  • Joined: 01-March 10
  • Posts: 170

Posted 07 October 2012 - 11:12 PM

Thank you very much for this !

I did not encounter any problem during my short test.

Things that could get ported in official client:

- Mouse 4 and mouse5 support
- When doing Alt+Tab, no more taskbar when going back to game
- ikalizer (soundcard selector + audio tweaks)

This post has been edited by Pilou42: 08 October 2012 - 10:10 AM


#18 User is offline   r00t Icon

  •   former FS member   
    Lead Anticheat Developer
  • Account: r00t
  • Country:
  • Joined: 01-March 10
  • Posts: 102

Posted 08 October 2012 - 12:43 PM

To all Linux users: try downloading ioq3-r00t-v0.31-src.tar.bz2
Code base is same, but used .tar.bz2 this time, so hope it will fix
the timestamp issue.
Also added options to ignore some of the warnings and fixed some others,
so it should now compile without pages full of warnings... And also
included GLSL shaders.

#19 User is offline   iLag Icon

  • Account: ilag
  • Joined: 05-August 12
  • Posts: 10

Posted 08 October 2012 - 09:39 PM

View Postr00t, on 08 October 2012 - 12:43 PM, said:

To all Linux users: try downloading ioq3-r00t-v0.31-src.tar.bz2
Code base is same, but used .tar.bz2 this time, so hope it will fix
the timestamp issue.
Also added options to ignore some of the warnings and fixed some others,
so it should now compile without pages full of warnings... And also
included GLSL shaders.


Good:
  • No more complaints about timestamps.
  • Massive reduction in the number of compiler warnings.
  • Shaders really were included, along with a few extra files apparently (only the glsl folder was in the Windows download last I tried.)
Bad:
  • Nothing that I can see.
Ugly:
  • The workaround for FTGL on Ubuntu and its derivatives still had to be applied. Still not your fault.
  • Still a few warnings left. Oh well.

This post has been edited by iLag: 08 October 2012 - 09:39 PM


#20 User is offline   r00t Icon

  •   former FS member   
    Lead Anticheat Developer
  • Account: r00t
  • Country:
  • Joined: 01-March 10
  • Posts: 102

Posted 08 October 2012 - 10:32 PM

Thanks iLag for your report.
Few warnings are probably related to code for linux I don't see when compiling
under win32... I have some linux systems, so will try to compile it there. But
all are just servers without monitor, so can't really test compiled binary.
But I think it's as good as it gets right now, it compiles properly, and that's
all that really matters.

  • (11 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942