Pages: [1] 2
|
 |
|
Author
|
Topic: Building an OS X Bundled App (Read 10858 times)
|
daveesq
Zebranky food

Offline
Posts: 2
|
Hello all.
I was just wondering whether anyone could tell me how to build UQM as an OS X bundled application (.app). I've looked through the svn repository, but I didn't see any building instructions, much less platform-specific ones. Essentially, I just want to know what the process is for building the OS X release.
Thanks (especially for everyone's hard work in making UQM as great as it is), David
|
|
|
Logged
|
|
|
|
|
daveesq
Zebranky food

Offline
Posts: 2
|
Well I'll be dipped! 
Thanks!!!
|
|
|
Logged
|
|
|
|
Michael Martin
Core Team
*Smell* controller
    
Offline
Posts: 387

|
I've just committed a draft of the steps I had to go through to make it build on my own Mac system, so hopefully this won't be as much of a problem in the future.
Nic, as the resident expert, feel free to correct any errors I've made
|
|
|
Logged
|
|
|
|
C. Bob
Zebranky food

Offline
Posts: 43
|
I want to try rebuilding UQM, so I can test out ship performance changes; since there's no moddability yet, it's necessary.
At any rate, build.sh is completely resistant to use! It claims "permission denied" whenever I try to do anything with it.
An average log (altered for personal details): Ascent:~ anonymous$ /uqm-0.6.2/sc2/build/unix/build.sh uqm install -bash: /uqm-0.6.2/sc2/build/unix/build.sh: Permission denied Ascent:~ anonymous$ su Password: Ascent:/Users/anonymous root# /uqm-0.6.2/sc2/build/unix/build.sh uqm install su: /uqm-0.6.2/sc2/build/unix/build.sh: Permission denied
I've placed uqm-0.6.0-content.uqm and uqm-0.6.2 in the hard drive's root directory. Is that correct?
Please let me know what I'm doing wrong; I'm a complete amateur to Unix-based things (and hope to largely stay that way; it's not my kinda world), but learning enough to compile UQM would be great. I like tweaking the idea of changing ship stats and the like, and it'd be cool. Some future UQM version might make it easier, but well.
- Bob
|
|
|
Logged
|
|
|
|
|
C. Bob
Zebranky food

Offline
Posts: 43
|
Well, it turned out that I was attempting to use the wrong build.sh file entirely to do it. I managed to find the right one.
Here's the result of my most recent attempts: 'echo -n' capable echo found. Sed stream editor found. tr found. Make found. build/unix/build.sh: line 1: libmikmod-config: command not found build/unix/build.sh: line 1: libmikmod-config: command not found build/unix/build.sh: line 1: libmikmod-config: command not found GNU C compiler found. We have a C preprocessor. We have a C dependency generator. We have a C compiler. We have a linker. We have a Objective-C preprocessor. We have a Objective-C dependency generator. We have a Objective-C compiler. Rez resource compiler (Apple Developer Tools) found. We have a MacOS X resource compiler (Rez). Little-endian machine detected. Simple DirectMedia Layer not found.
The only documentation of this is ages old; in an incompetent attempt to follow out some advice Nic gave someone almost five ago for an earlier version (http://forum.uqm.stack.nl/index.php?topic=1112.0), I replaced the uqm-indent file with the version in Nic's latest source; this produced no notable effect.
I found the build.patch file made back in '04 (http://bugs.uqm.stack.nl/show_bug.cgi?id=358), but having no clue what to do with it, and no apparent file I could copy its contents into, then that doesn't work.
|
|
|
Logged
|
|
|
|
Novus
Enlightened
    
Offline
Gender: 
Posts: 1938

Fot or not?
|
Don't bother with Nic's old patches; they'll probably just make things worse. Your real problem is that you're missing most of the libraries; at least SDL. You want the OS X development libraries for the latest stable (1.2 branch, not SVN trunk) version. UQM has (for reasons I don't fully understand) its own copy of Mikmod, so you don't need to worry that it can't find a system-wide one.
|
|
|
Logged
|
|
|
|
C. Bob
Zebranky food

Offline
Posts: 43
|
Well, that explains a lot.
I installed all the frameworks and the like, but didn't know about these other things, or that they were required.
With the long, convoluted SDL developmental setup ahead and no apparent installation documentation in sight (I checked the docs; it just talks about the technical things *after* you've installed it, though I probably overlooked something obvious to everyone else), I think it'd make the most sense to just give up on setting it up myself and see if there's anyone who wouldn't mind doing so (who it would be easy for); I don't have any experience whatsoever and it'd take ages. It isn't worth the effort anymore, when I really just want to hone in this one thing, and then I'm basically done.
Thanks for the advice, in any case.
- Bob
|
|
|
Logged
|
|
|
|
|
|
|
|
|
|
Pages: [1] 2
|
|
|
|
|