Create an account

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

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.

Expected 'pragma' keyword after '#', got 'ifdef'
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.

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

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

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.

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]

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