Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Xonotic QCC source won't compile with GMQCC?

#1
I tried to compile the QCC progs.dat of Xonotic with GMQCC (which i read on Quake Wiki was the same compiler the developers of Xonotic was using) but the source won't compile for me. Is there anything more I need to do?

The issue I'm having is that GMQCC gets an issue with /common/util-pre.qh.
There are two errors.

1:
Expected 'pragma' keyword after '#', got 'ifdef'
2:
Junk after pragma.

Now I'll freely admit that I am not a programmer, and I probably never will be either. I can mostly only work with simple game logic mapscripts. So the issue here might be very simple. Never the less, I would greatly appreciate some help on the matter.
Reply

#2
What version of gmqcc and the xonotic source code are you using? What command exactly are you issuing to compile the progs?
Reply

#3
looking at the makefile, you would need these flags:
-std=gmqcc -O3 -flno -Werror -fno-bail-on-werror -Wall -fftepp -fftepp-predefs -Wcpp -futf8 -Wno-field-redeclared -Wno-double-declaration
Reply

#4
The version of the source is the same that comes with v0.7 of Xonotic and the GMQCC version is the same that is on the website at the present date.

Tried that command-line you presented tZork, considering how complicated it is, it's no wonder I couldn't do it myself. But even with that command line I get a shit-ton of Werrors and a few errors about initializing global constant vars as non constant expressions.
Don't think it compiled for me. Or I am missing something.
Reply

#5
Latest GMQCC (or at least the development branch) doesn't work with 0.7 gamecode if I recall correctly, maybe try with the build that comes with 0.7.

You could do it all with this one liner:
cd /path/to/Xonotic/source/gmqcc && make && cd ../qcsrc && make QCC=../../gmqcc/gmqcc

If that still gives QC errors, something truly is broken.
[Image: 230.png]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Source code for Peach Mod daveblanchard 4 2,353 03-30-2021, 10:34 AM
Last Post: LegendGuard
  Trying to understand darkplaces source code wiefie 22 15,544 09-22-2017, 08:28 AM
Last Post: wiefie
  [SOLVED] NetRadiant compile Windows 7 toneddu2000 21 19,456 09-29-2014, 12:23 PM
Last Post: Mr. Bougo
  Altering Xonotic Source Code perljamz10 7 12,938 02-26-2013, 06:19 PM
Last Post: Mr. Bougo
Question media source files of vehicles? poVoq 13 10,498 02-21-2012, 06:16 PM
Last Post: tZork
  Source code for the 0.1 preview release? twistedlincoln 4 7,582 01-03-2011, 09:18 AM
Last Post: twistedlincoln
  Codendi, the open source platform for Application Lifecycle Management (ALM) PGP_Qz 2 7,578 11-20-2010, 03:48 PM
Last Post: Spaceman
  editing nexiuz source code Jono 3 5,854 04-27-2010, 03:19 AM
Last Post: tZork

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-