Tremulous Forum

Community => Servers => Topic started by: lambda on December 29, 2009, 09:41:47 pm

Title: Compile error with Ubuntu 9.10 (64-bit) || Compiling tremulous 1.2
Post by: lambda on December 29, 2009, 09:41:47 pm
Hi,
I have a relatively fast computer (2Ghz dual core, 64-bit) installed with windows 7 and ubuntu 9.10. I began to modify the source on DOS, and compiled it with MinGW; Everything worked out fine. On the other hand with ubuntu, i get this error:
Code: [Select]
UI_CC src/ui/ui_syscalls.c
LD build/release-linux-x86_64/base/uix86_64.so
CGAME_Q3LCC src/cgame/cg_main.c
cpp: src/cgame/../game/bg_lib.h:28 src/cgame/../qcommon/q_shared.h:105 src/cgame) in #if/#elsifsrc/cgame/cg_main.c:27 Bad operator (
cpp: src/cgame/../game/bg_public.h:27 src/cgame/cg_local.h:27 src/cgame/cg_main.c:27 Syntax error in #include
cpp: src/cgame/../game/bg_public.h:80 src/cgame/cg_local.h:27 src/cgame/cg_main.) in #if/#elsifor (
cpp: src/cgame/../game/bg_public.h:1270 src/cgame/cg_local.h:27 src/cgame/cg_main.c:27 Syntax error in #ifdef/#ifndef
make[2]: *** [build/release-linux-x86_64/base/cgame/cg_main.asm] Error 1
make[2]: Leaving directory `/home/lambda/Desktop/sbsrc'
make[1]: *** [targets] Error 2
make[1]: Leaving directory `/home/lambda/Desktop/sbsrc'
make: *** [release] Error 2
This source compiled fine on windows 7, but not ubuntu. It appears as if cg_main.c has an issue. What do you suggest? Many thanks,
λάβδα
Title: Re: Compile error with Ubuntu 9.10 (64-bit) || Compiling tremulous 1.2
Post by: David on December 29, 2009, 09:46:49 pm
What changes did you make, and what are you compiling?
Title: Re: Compile error with Ubuntu 9.10 (64-bit) || Compiling tremulous 1.2
Post by: lambda on December 29, 2009, 10:40:30 pm
What changes did you make, and what are you compiling?
Thanks for your reply David,

I'm compiling the new source of tremulous 1.2. I did not modify the source when i transfered it via USB from windows to Ubuntu.I believe it is a issue with the compiler. What do you think i'm missing?
Title: Re: Compile error with Ubuntu 9.10 (64-bit) || Compiling tremulous 1.2
Post by: gimhael on December 30, 2009, 07:08:11 am
...i transfered it via USB from windows to Ubuntu...

Do you have the DOS-style CRLF line endings in the files ? I don't know if the LCC compiler can handle them on linux.
Title: Re: Compile error with Ubuntu 9.10 (64-bit) || Compiling tremulous 1.2
Post by: lambda on December 30, 2009, 04:16:23 pm
Gimhael,
Thanks for your reply! That was the problem. It will take a while to re-code all those. Many thanks.
Title: Re: Compile error with Ubuntu 9.10 (64-bit) || Compiling tremulous 1.2
Post by: Kiwi on March 01, 2010, 06:23:16 pm
Gimhael,
Thanks for your reply! That was the problem. It will take a while to re-code all those. Many thanks.
Please add [SOLVED] to the title of your first post so others can see that your problem was solved without reading through all these posts.  I also was very glad when I found this thread where not a single person yelled, trolled, or got upset about anything.  Iambda even said thank you after everyone posted a reply :)

Thanks,
Kiwi