Quake3World.com Forums
     Programming Discussion
        What's wrong with this?


Post new topicReply to topic
Login | Profile | | FAQ | Search | IRC




Print view Previous topic | Next topic 
Topic Starter Topic: What's wrong with this?

Trainee
Trainee
Joined: 09 Jan 2011
Posts: 29
PostPosted: 06-17-2012 08:40 PM           Profile Send private message  E-mail  Edit post Reply with quote


Hi,
I have a very simple programming question.
I am using the time.h library in sv_main.c file in ioquake3. And, it is working totally fine.
Now, I am trying to use the time.h library in ioquake3's ai_,main.c file. But, I am getting the below compilation errors.
I am guess it has something to do with the Makefile.

Does anyone know what is wrong?

Note: To make sure that sys/time.h file existed, I created a small program that uses sys/time.h library, and compiled it using g++ on the same server as ioquake3. And, it worked totally fine. Btw, as you may have guessed, I am very green to linux.

rmc104:~/ioquake3dev_clean[10027]% make USE_LOCAL_HEADERS=0 LDFLAGS='-L.' BASE_CFLAGS=-m32 CFLAGS='-fopenmp -Wall'
make[1]: Entering directory `/r/home7/ioquake3dev_clean'

Building ioquake3 in build/release-linux-ppc64:
PLATFORM: linux
ARCH: ppc64
VERSION: 1.36
COMPILE_PLATFORM: linux
COMPILE_ARCH: ppc64
CC: cc

CFLAGS:
-fopenmp
-Wall
-MMD
-m32
-DNDEBUG
-O3
-ffast-math
-funroll-loops
-fomit-frame-pointer

LDFLAGS:
-L.

LIBS:
-ldl
-lm

Output:
build/release-linux-ppc64/ioq3ded.ppc64
build/release-linux-ppc64/ioquake3.ppc64
build/release-linux-ppc64/baseq3/cgameppc64.so
build/release-linux-ppc64/baseq3/qagameppc64.so
build/release-linux-ppc64/baseq3/uippc64.so
build/release-linux-ppc64/missionpack/cgameppc64.so
build/release-linux-ppc64/missionpack/qagameppc64.so
build/release-linux-ppc64/missionpack/uippc64.so
build/release-linux-ppc64/baseq3/vm/cgame.qvm
build/release-linux-ppc64/baseq3/vm/qagame.qvm
build/release-linux-ppc64/baseq3/vm/ui.qvm
build/release-linux-ppc64/missionpack/vm/qagame.qvm
build/release-linux-ppc64/missionpack/vm/cgame.qvm
build/release-linux-ppc64/missionpack/vm/ui.qvm

make[2]: Entering directory `/r/home7/ioquake3dev_clean'
make[2]: `build/release-linux-ppc64/ioq3ded.ppc64' is up to date.
make[2]: `build/release-linux-ppc64/ioquake3.ppc64' is up to date.
make[2]: `build/release-linux-ppc64/baseq3/cgameppc64.so' is up to date.
make[2]: `build/release-linux-ppc64/baseq3/qagameppc64.so' is up to date.
make[2]: `build/release-linux-ppc64/baseq3/uippc64.so' is up to date.
make[2]: `build/release-linux-ppc64/missionpack/cgameppc64.so' is up to date.
make[2]: `build/release-linux-ppc64/missionpack/qagameppc64.so' is up to date.
make[2]: `build/release-linux-ppc64/missionpack/uippc64.so' is up to date.
make[2]: `build/release-linux-ppc64/baseq3/vm/cgame.qvm' is up to date.
GAME_Q3LCC code/game/ai_main.c
cpp: code/game/ai_main.c:2712 Could not find include file <sys/time.h>
make[2]: *** [build/release-linux-ppc64/baseq3/game/ai_main.asm] Error 1
make[2]: Leaving directory `/r/home7/ioquake3dev_clean'
make[1]: *** [targets] Error 2
make[1]: Leaving directory `/r/home7/ioquake3dev_clean'
make: *** [release] Error 2


Best wishes!




Top
                 

Mentor
Mentor
Joined: 12 Mar 2005
Posts: 3958
PostPosted: 06-17-2012 09:25 PM           Profile Send private message  E-mail  Edit post Reply with quote


Answered on the ioquake3 mailing list.




Top
                 
Quake3World.com | Forum Index | Programming Discussion


Post new topic Reply to topic


cron
Quake3World.com
© ZeniMax. Zenimax, QUAKE III ARENA, Id Software and associated trademarks are trademarks of the ZeniMax group of companies. All rights reserved.
This is an unofficial fan website without any affiliation with or endorsement by ZeniMax.
All views and opinions expressed are those of the author.