Re: Mac OS X porting help wanted



On Jan 13, 7:36 pm, "copx" <c...@xxxxxxxxx> wrote:
"Jeff Lait" <torespondisfut...@xxxxxxxxxxx> schrieb im Newsbeitragnews:af067997-7c63-46f1-98f7-967ff8ba21a0@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Okay, I checked out the latest source from the sourceforge site.

make -f mac.mak

fails because it can't find "sources.inc". I took a wild guess and
changed the makefile line to wrogue_sources.inc and recompiled. I
think you might have a symbolic link in your environment?

No, the makefile was simply outdated.

In that case you need to create a symbolic link

sudo ln -s /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o /Developer/
SDKs/MacOSX10.4u.sdk/usr/lib/crt1.10.5.o

This might solve the linking problem than.
******

Another outdated part of the makefile I guess. I have idea, really. I did
not write that makefile, and I know nothing about Mac coding.

Okay, now at least you can update those parts of the make file :> The
second problem might not be an issue with the makefile, it might just
need to be something in the build.txt file.

Making that change lets me compile into a wrogue binary.

To build a dmg, I do
make -f mac.mak dist

Voila! I have a wroge-0.8.0.dmg. Unfortunately, I don't have the
slightest clue if it does anything useful as I just have console
access to aforementioned mac :>

I am amazed that it compiled without source changes.. Not just the makefile
is outdated, the platform code is outdated too. It needs to modified to work
as expected.

Well, it compiled. I haven't actually tried running it.

If this suffices for your purposes, I can do such an update/build on
demand. What I can't do is actually test the binary.

Thanks a lot, but I am uncomfortable with the idea of releasing that
package. Warp Rogue has the worst possible rating at a certain Mac games
site simply because the DMG of the first Mac release was not built
perfectly. The porter used a compression algorithm not supported by older
versions of Mac OS X, and the guy was a Mac programmer..
I mean, packaging for OS X is tricky and Mac users are not like Linux users.
They expect everything to work perfectly out of the box. I do not want to
ruin Warp Rogue's reputation even more by publishing such an "unsafe"
package.

Can't say I blame you for wanting caution. Thanks for the tip
re: .dmg compression - I copied your makefile so I should probably
double check that UDZO compression string. Does your current .dmg
compile in a friendly way, or will POWDER be sharing WarpRogue on said
sites most hated list?

I think, BTW, it speaks very poorly of such site that the rating of a
game should depend on the rating of the packaging. How much more
superficial can they get? The real culprit, IMHO, is Apple. It
should not be possible to have a .dmg that can't be run on older
versions of OSX. OTOH, my brother in law just had to switch to
Windows because he bought a new iPod and the new iPod refused to work
with his older version of OSX.

I really wish I had Steve Job's mind control powers.
--
Jeff Lait
(POWDER: http://www.zincland.com/powder)
.



Relevant Pages

  • Re: Mac OS X porting help wanted
    ... the makefile was simply outdated. ... If you compile a programm/library on Mac OS X 10.5 against ... To build a dmg, I do ... package. ...
    (rec.games.roguelike.development)
  • Re: Completion?
    ... Only the X11 makefile compiles on my Mac, all the rest borks on Mac. ... not 4.5) and even after fixing that I cant get the menu working (so I ...
    (rec.games.roguelike.angband)
  • Re: compiling C extension on Mac -- which version Tcl on new Leopard
    ... Are there any good examples of compiling C extensions on the Mac. ... have seen examples on the wiki showing makefiles for Windows and Linux ... If your extension is non-TEA compliant, i.e. uses a makefile, then you'll have to do some hacking. ...
    (comp.lang.tcl)
  • Re: Hard drive format question: Mac vs PC
    ... will A. be fully booatble on my mac and B. be pc and mac friendly. ... but can only store short filenames. ... Extended is extended, with metadata journaling. ... Extended is the same as Extended except that filenames are case-sensitive, so you can have both "makefile" and "Makefile" in the same directory, and you have to get the case exactly right when opening a file. ...
    (uk.comp.sys.mac)
  • RE: Creating RPMS from source without Makefile
    ... Creating RPMS from source without Makefile ... For several applications/tools I'd like to create an RPM to make ... You may want to start with a package less complex than httpd ... "Start with pristine sources; then patch as needed. ...
    (RedHat)