Author Topic: Compile error with Ubuntu 9.10 (64-bit) || Compiling tremulous 1.2  (Read 5773 times)

lambda

  • Posts: 3
  • Turrets: +0/-1
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,
λάβδα

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: Compile error with Ubuntu 9.10 (64-bit) || Compiling tremulous 1.2
« Reply #1 on: December 29, 2009, 09:46:49 pm »
What changes did you make, and what are you compiling?
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

lambda

  • Posts: 3
  • Turrets: +0/-1
Re: Compile error with Ubuntu 9.10 (64-bit) || Compiling tremulous 1.2
« Reply #2 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?
« Last Edit: December 29, 2009, 11:58:02 pm by lambda »

gimhael

  • Posts: 546
  • Turrets: +70/-16
Re: Compile error with Ubuntu 9.10 (64-bit) || Compiling tremulous 1.2
« Reply #3 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.

lambda

  • Posts: 3
  • Turrets: +0/-1
Re: Compile error with Ubuntu 9.10 (64-bit) || Compiling tremulous 1.2
« Reply #4 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.

Kiwi

  • Posts: 859
  • Turrets: +29/-9
Re: Compile error with Ubuntu 9.10 (64-bit) || Compiling tremulous 1.2
« Reply #5 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