Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] compiling and runing Xonotic on a mac

#1
Question 
i can't figure out how to do it Huh
Reply

#2
the error is


The main repo is not xonotic.git, what have you done?


any help?
Reply

#3
hello there,

I manage to get the git and I update it. (just follow the instructions here : http://dev.xonotic.org/projects/3/wiki/R...cess#Linux )

But when i try to compile it ("./all compile")

Got this error : Bab CPU type in executable
Output :
Code:
$ ./all compile
Repository . enabled because it already exists
Repository data/xonotic-data.pk3dir enabled because it already exists
Repository data/xonotic-maps.pk3dir enabled because it already exists
Repository data/xonotic-music.pk3dir enabled because it already exists
Repository data/xonotic-nexcompat.pk3dir disabled by default, create data/xonotic-nexcompat.pk3dir.yes to enable
Repository mediasource disabled by default, create mediasource.yes to enable
Repository darkplaces enabled because it already exists
Repository fteqcc enabled because it already exists
Repository div0-gittools disabled by default, create div0-gittools.yes to enable
Repository netradiant enabled because it already exists
+ cd /Users/Qz/Documents/xonotic/xonotic/fteqcc
+ make
make USEGUI_CFLAGS="" R_qcc
gcc -Wall -ggdb  -o fteqcc.bin -O3 -s qccmain.o qcc_pr_comp.o qcc_pr_lex.o qcctui.o comprout.o hash.o qcc_cmdlib.o qcd_main.o
ld: warning: option -s is obsolete and being ignored
+ cd /Users/Qz/Documents/xonotic/xonotic/data/xonotic-data.pk3dir
+ make FTEQCC=/Users/Qz/Documents/xonotic/xonotic/fteqcc/fteqcc.bin
[ "" = "" ] || [ "" = "1" ]
[ "" = "1" ] || { DO_NOT_RUN_MAKE=1 sh update-cvarcount.sh; }
/bin/sh: /usr/bin/sh: Bad CPU type in executable
make: *** [update-cvarcount] Error 126
I just follow the wiki. I did something wrong ? Is my gcc bad ?
I'm on macos 10.6, intel core2duo.

Thanks for replying.

ha, and Hi to all the Old Nexuiz Bastard here =) Heart
and still sorry for my bad english...
Awesome, did Qz show you that ?
Nexuiz : I Reach the top5 of the ladder (even top3 I guess). Top1 French for quite some time (when active) of ladder. Top5 of some tournaments (if I remember well)
Reply

#4
Qz: from the #xonotic irc channel on freenode:
Quote:<divVerent> MrBougo: broken OS X install
<divVerent> [ "" = "1" ] || { DO_NOT_RUN_MAKE=1 sh update-cvarcount.sh; }
<divVerent> /bin/sh: /usr/bin/sh: Bad CPU type in executable
<divVerent> if "sh" does not work, there is a SERIOUS problem
<divVerent> /usr/bin/sh shouldn't even exist
<divVerent> because it goes in /bin
Reply

#5
Why do you guys even call shell scripts that way (sh script.sh) instead of ./script.sh? Or is that not in option in scripts?
Reply

#6
To use the right interpreter, I guess! The shebang line in the script contains a full path; if for some reason the user has a sh that has a higher priority in his $PATH than the standard one, it's probably better to use the $PATH one.
(i.e. #!/bin/sh in the script will make ./script.sh call /bin/sh script.sh, whereas sh script.sh will use whatever sh is found first)

Another general reason to use sh script.sh is that it will work when the shebang line is absent or the executable bit isn't set, both of which would make ./script.sh fail.
Reply

#7
I learned something new to day.
Reply

#8
Ok, what I can do to manage the compile process ?
I'm bad in compiling stuff : I work on OSX. All the bashes are invisible.

What do you think if I import the project in XCode to compile it ? does it can work ?

I guess, if I can't compile it, nobody can't, because OSX environement are all the same.
If someone manage to make the .app, he should modifie the wiki page for compiling xono on mac.

I remember that Esteel got a mac and I saw that he test some versions of nexuiz for mac. Is he in the xonotic team ?

(I hope you will understand my franglish... Sorry)
Awesome, did Qz show you that ?
Nexuiz : I Reach the top5 of the ladder (even top3 I guess). Top1 French for quite some time (when active) of ladder. Top5 of some tournaments (if I remember well)
Reply

#9
You should join the #xonotic irc channel on freenode if you're still having problems... Basically you seem to have a broken sh binary in /usr/bin, I have no idea where it comes from.
Reply

#10
Ok thanks for the help Mr. Bougo.
I'll join #xonotic.

But that strange, I've managed to compile some applications on my system. The problem may be Darwin. (Darwin used to build Unix applications on OSX).

For infos my spec :
- Mac OS X Version 10.6.4 (Macbook Pro)
- Proc : 2.2 GHz Intel Core 2 Duo

Mac OSX infos :
- Shells : bash, csh, tcsh, ksh, zch, tclsh
- OSX opensource Documentation (Darwin) : http://developer.apple.com/opensource/index.html

If someone manage to compile xono on a mac. Help would be appreciated.
Awesome, did Qz show you that ?
Nexuiz : I Reach the top5 of the ladder (even top3 I guess). Top1 French for quite some time (when active) of ladder. Top5 of some tournaments (if I remember well)
Reply

#11
The problem is resolved thanks to nice people on IRC @ #xonotic

It come from the iphone's SDK that change PATH variable.
Just write
Code:
export PATH=/usr/bin/sh:/bin/sh:$PATH
in terminal.

Compile will be fine.

Thanks.
Awesome, did Qz show you that ?
Nexuiz : I Reach the top5 of the ladder (even top3 I guess). Top1 French for quite some time (when active) of ladder. Top5 of some tournaments (if I remember well)
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [NEEDS INFO] Building on Mac M1 claymore 1 1,170 10-12-2024, 02:34 PM
Last Post: ballerburg9005
  [NEED HELP] Running On Mac jpumroy 2 1,677 01-04-2024, 09:04 PM
Last Post: jpumroy
  [NEED HELP] Compiling on Elbrus DJs3000 1 1,834 07-03-2020, 04:57 AM
Last Post: poVoq
  [NEED HELP] NetRadiant crashes on Build - Mac (10.12.6) Space Ace 0 1,833 04-24-2019, 10:41 PM
Last Post: Space Ace
  [NEED HELP] NetRadiant doesn't compile on Mac nokko 3 3,241 03-29-2019, 11:19 AM
Last Post: Freddy
  [NEED HELP] Netradiant compiling? Raxno 2 3,288 11-11-2017, 04:50 AM
Last Post: It'sMe
  [BUG] Fkeys F-keys F keys not working Mac OS Sierra 0.8.22 Space Ace 8 4,818 10-02-2017, 10:04 PM
Last Post: Space Ace
Sad [NEED HELP] Help with compiling. ImSoAwesome 2 3,325 09-06-2016, 02:54 AM
Last Post: ImSoAwesome
  [NEED HELP] Mac OSX Crashing very often and randomly -MCSquare- 0 2,310 01-30-2016, 12:08 AM
Last Post: -MCSquare-
  [SOLVED] Trouble with launch Xonotic on Mac OS X kanatov 6 11,885 10-03-2015, 10:49 AM
Last Post: SomeGuy

Forum Jump:


Users browsing this thread:
2 Guest(s)

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