mac build troubles


(.pdp.slice) #1

so i have been trying to compile a mac build so we can upload it to our server, but i’ve been having issues. i have the latest versions of scons and python - scons folder is in my home folder, which is where the etpub build is located too - python was installed via an installer. i opened terminal and set the directory to inside the src folder of the etpub folder. i then typed scons BUILD=release, which worked fine. then i typed scons BUILDBUNDLE=1 and it started to run, then i got this error:

can anyone help me out???


(kamikazee) #2

“./makebundle.sh” is the cause of the problem, though I can’t see anything suspicious other than “: bad interpreter: No such file or dir”.
Maybe you should try to run ./makebundle.sh on it’s own so you can see what goes wrong?


(SCDS_reyalP) #3

“bad interpreter” is often caused by having the file in the wrong text mode. Make sure it doesn’t have DOS lin endings.


(nUllSkillZ) #4

What’s makebundle.sh good for?


(SCDS_reyalP) #5

making bundles. Really.


(.pdp.slice) #6

sorry but i dont know what DOS lin endings are. i’m a complete noob, and i only know the scons commands to make the files. can you clarify what i need to look for? thanks


(SCDS_reyalP) #7

http://developer.apple.com/documentation/developertools/conceptual/xcodeuserguide20/contents/resources/en.lproj/ed_file_attr/chapter_17_section_4.html


(.pdp.slice) #8

thats for the link reyal but it didn’t work :frowning:

would someone be willing to help me out 1 on 1 through msn or aim? please let me know, the pc/linux builds are being put up on our server today and no mac users will be able to play unless i can get the mac builds fixed and i really don’t know anything about coding. i could really use the 1 on 1 help.


(jaybird) #9

The problem lies with your line endings, as has been mentioned. I think Mac comes bundled with the dos2unix program. Usually this works:
dos2unix -U makebundle.sh
Also, make sure the script is executable:
chmod a+x makebundle.sh


(.pdp.slice) #10

ok jaybird, can you explain what i need to do with more detail? sorry, but like i said i am a total noob at this stuff and i only know how to do scons BUILD=release and scons BUILDBUNDLE=1 because thats usually all i have to do to get a mac build complete for our clan leader.


(jaybird) #11

I just did :slight_smile: Issue those commands, and if dos2unix is installed, you’re golden. If it’s not, then you need to find and download it.


(.pdp.slice) #12

ok i ran the first one and i got this error:

chmod: makebundle.sh: No such file or directory

then i ran the second one you suggested and after i hit enter it made a new line like nothing ever happened:

ariel-seris-imac-g5:/users/ariel/etpubb3/src ariel$ chmod a+x makebundle.sh
ariel-seris-imac-g5:/users/ariel/etpubb3/src ariel$

now what??


(.pdp.slice) #13

and i cant download dos2unix - i have OS X - and why would i need this? i’ve done previous builds using those 2 scons commands and its worked fine but now it isnt, whats wrong??


(kamikazee) #14

Now you can just type ./makebundle.sh to run it. :wink:

As for dos2unix: maybe some coder touched it, converting it to Windows format. You’ll rather have to use dos2mac if you haven’t got dos2unix. It takes a few seconds to convert and won’t bother anyone, please try it.

If ./makebundle.sh still fails after that, we need to look what’s in it.


(.pdp.slice) #15

got this error:

if: bad interpreter: No such file or directory

ill give dos2mac a try

but ./makebundle.sh failed

and dont i need to use scons BUILDBUNDLE=1 to put all the right files (cgame, qagame, and ui.mp.ppc.so)???


(.pdp.slice) #16

and when i do a search for dos2mac, it just displays text like this:
#!/usr/bin/perl -pi.unix

=head1 NAME
unix2mac - convert Unix line terminators to Macintosh line terminators

=head1 SYNOPSIS
unix2mac [file]…

=head1 DESCRIPTION
This reads one or more files (or stdin), and writes to stdout
the data with any Unix-style
line terminators with the
Macintosh \r line terminator.

=head1 OPTIONS

=head1 FILES

=head1 BUGS

=head1 SEE ALSO
mac2unix, dos2unix, unix2dos

=head1 AUTHOR
John Chambers <jc@trillian.mit.edu>
=cut

s/
/\r/g;

what the heck am i supposed to do with that??? [/noob]


(.pdp.slice) #17

so can anyone help me? i really have no idea what i’m doing but i need to get this problem fixed ASAP so i can bundle the build together and get it back to our clan leader.


(=>ETK<=Elite) #18

I don’t have a mac, but hope this is what you want and what kamikazee was talking about. Can’t open it cause I don’t know the encoding, but anyhow, google always works…

http://www.groomsville.co.uk/absmac/list.htm


(kamikazee) #19

The page =>ETK<=Elite posted has a link on it to a Stuff it archive. Just search trough the page till you find “dos2mac”. I haven’t tried it, but at least it sounds like the tool you need…


(SCDS_reyalP) #20

For OSX you want to convert to unix format, not MAC format.