SDL + MacOS Version

Can anyone tell me what the MacOS requirements are for the
current + devel versions of SDL?

I am using SDL 1.1.3, and my application does not start up
under MacOS 8.0 or 8.1. I get errors for missing functions
from either AppearanceLib and/or InterfaceLib.

I am now trying to link with SDL 1.0.8, but the app just
hangs on start up.

What MacOS platform is SDL targetted for?

Thanx,

Amilcar--

--------------------------------------
*
Amilcar M. Ubiera
amilcar at randomgames.com ICQ(1269986)
Lead Programmer
Random Games, Inc. 919-469-8676 ext. 147
--------------------------------------
*

At 10:46 Uhr -0400 14.07.2000, Amilcar M. Ubiera wrote:

Can anyone tell me what the MacOS requirements are for the
current + devel versions of SDL?

I am using SDL 1.1.3, and my application does not start up
under MacOS 8.0 or 8.1. I get errors for missing functions
from either AppearanceLib and/or InterfaceLib.

Amilcar,

SDL 1.1.3 runs fine for me on Sys 9, on a G4/400. I used it to port exult.

What exactly is your problem?

However, it still contains some hefty bugs (luckily, no crashes
AFAIK). E.g. the modifier keys are not supported. I asked about this
several times, but got no response… Anyway, maybe I’ll code that
myself when I have time.

Bye,

Max–

Max “The Black Fingolfin” Horn
mailto:Max_Horn
http://www.quendi.de - please use my guestbook!

Can anyone tell me what the MacOS requirements are for the
current + devel versions of SDL?

I am using SDL 1.1.3, and my application does not start up
under MacOS 8.0 or 8.1. I get errors for missing functions
from either AppearanceLib and/or InterfaceLib.

I use it on a B&W G3 with 8.6.

Try some of the demos-- the sprite one seems to work okay (many others
don’t).

Lots of bugs still in the MacOS port, but that’s what Open Source is all
about, n-est’ce pas?

If you have problems, give me a shout. I can fire you some CodeWarrior
projects if you want (I think the ones in SDL 1.1.3 don’t work out of the
box).

What’s up with the interest in MacOS anyway? From your .sig, you seem to
work for a gaming company, hence my curiousity…

-Roy

Hey. Thanks for replying.

I am trying to release a product for MacOS 8.0

What version of SDL do I need to use?

Thanks,

Amilcar> ----- Original Message -----

From: max@quendi.de (Max Horn)
To:
Sent: Friday, July 14, 2000 11:06 AM
Subject: Re: [SDL] SDL + MacOS Version

At 10:46 Uhr -0400 14.07.2000, Amilcar M. Ubiera wrote:

Can anyone tell me what the MacOS requirements are for the
current + devel versions of SDL?

I am using SDL 1.1.3, and my application does not start up
under MacOS 8.0 or 8.1. I get errors for missing functions
from either AppearanceLib and/or InterfaceLib.

Amilcar,

SDL 1.1.3 runs fine for me on Sys 9, on a G4/400. I used it to port exult.

What exactly is your problem?

However, it still contains some hefty bugs (luckily, no crashes
AFAIK). E.g. the modifier keys are not supported. I asked about this
several times, but got no response… Anyway, maybe I’ll code that
myself when I have time.

Bye,

Max


Max “The Black Fingolfin” Horn
<mailto:max at quendi.de>
http://www.quendi.de - please use my guestbook!

I don’t know if there’s a hard/fast answer to that.

Your best bet is likely to grab the latest version and start working with
it (which you seem to be doing). There will certianly be bugs to deal
with along the way, but at least you have the source code so you can fix
them.

If you’ve got some specific problems along the way, I’ll try to help.

For now, try to get the demos up and running, and go from there.

-Roy>Hey. Thanks for replying.

I am trying to release a product for MacOS 8.0

What version of SDL do I need to use?

Thanks,

Amilcar

----- Original Message -----
From: “Max Horn”
To:
Sent: Friday, July 14, 2000 11:06 AM
Subject: Re: [SDL] SDL + MacOS Version

At 10:46 Uhr -0400 14.07.2000, Amilcar M. Ubiera wrote:

Can anyone tell me what the MacOS requirements are for the
current + devel versions of SDL?

I am using SDL 1.1.3, and my application does not start up
under MacOS 8.0 or 8.1. I get errors for missing functions
from either AppearanceLib and/or InterfaceLib.

Amilcar,

SDL 1.1.3 runs fine for me on Sys 9, on a G4/400. I used it to port exult.

What exactly is your problem?

However, it still contains some hefty bugs (luckily, no crashes
AFAIK). E.g. the modifier keys are not supported. I asked about this
several times, but got no response… Anyway, maybe I’ll code that
myself when I have time.

Bye,

Max


Max “The Black Fingolfin” Horn
<mailto:max at quendi.de>
http://www.quendi.de - please use my guestbook!

Can anyone tell me what the MacOS requirements are for the
current + devel versions of SDL?

I am using SDL 1.1.3, and my application does not start up
under MacOS 8.0 or 8.1. I get errors for missing functions
from either AppearanceLib and/or InterfaceLib.

I use it on a B&W G3 with 8.6.

Yes. I am running into incompatibility issues. I reinstalled 8.0
on an old 133Mhz, and it complains about a function in AppearanceLib
"GetMenuBarHeight" or something to that effect. I also have my
own native MacOS code I wrote before discovering SDL which
works just fine under 8.1. I would love to use SDL, but our minimum
requirement is 8.0 or 8.1 if we can convince the publisher. 8.5 and
above is not an option.

I can’t get SDL 1.0.8 to come up under any version with the library
and SDL_Main.o file that are provided in the distribution.

Any suggestions?

Thanks,

Amilcar

--------------------------------------
*
Amilcar M. Ubiera
amilcar at randomgames.com ICQ(1269986)
Lead Programmer
Random Games, Inc.
--------------------------------------
*

----- Original Message -----
From: roy@centricsystems.ca (Roy Wood)

At 13:53 Uhr -0400 14.07.2000, Amilcar M. Ubiera wrote:>----- Original Message -----

From: “Roy Wood”

Can anyone tell me what the MacOS requirements are for the
current + devel versions of SDL?

I am using SDL 1.1.3, and my application does not start up
under MacOS 8.0 or 8.1. I get errors for missing functions
from either AppearanceLib and/or InterfaceLib.

I use it on a B&W G3 with 8.6.

Yes. I am running into incompatibility issues. I reinstalled 8.0
on an old 133Mhz, and it complains about a function in AppearanceLib
"GetMenuBarHeight" or something to that effect. I also have my

Search the SDL source (1.1.3) and replace GetMBarHeight with
LMGetMBarHeight, that should fix it. Even better, make it compile
conditional…

Bye,

Max


Max “The Black Fingolfin” Horn
mailto:Max_Horn
http://www.quendi.de - please use my guestbook!

I don’t know if there’s a hard/fast answer to that.

Your best bet is likely to grab the latest version and start working with
it (which you seem to be doing). There will certianly be bugs to deal
with along the way, but at least you have the source code so you can fix
them.

If you’ve got some specific problems along the way, I’ll try to help.

And I’ll be happy to help in any way I can. I’ll modify the source
to use the LMGetMBarHeight() function. (Anybody know any reason not
to do this? - Matt Slot?)

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Can anyone tell me what the MacOS requirements are for the
current + devel versions of SDL?

I am not sure. I always use the latest version.

Yes. I am running into incompatibility issues. I reinstalled 8.0
on an old 133Mhz, and it complains about a function in AppearanceLib
"GetMenuBarHeight" or something to that effect. I also have my
own native MacOS code I wrote before discovering SDL which
works just fine under 8.1. I would love to use SDL, but our minimum
requirement is 8.0 or 8.1 if we can convince the publisher. 8.5 and
above is not an option.

I’m no expert here, but I think that 8.0 an 8.1 use Appearance Manager
1.0.x, but OS 8.5 and higher uses version 1.1.x.

1.1.x adds some functions that are not present in 1.0.x. You can check
<Appearance.h> and see if GetMenuBarHeight is part of the 1.1.x interface,
which would explain the problem you are having.

There may be a possible fix in <Menus.h> to use a similar function that is
backwords compatible with 8.0 and 8.1.

HTH,
DarrellOn Fri, 14 Jul 2000, Amilcar M. Ubiera wrote:

----- Original Message -----
From: “Roy Wood”

And I’ll be happy to help in any way I can. I’ll modify the source
to use the LMGetMBarHeight() function. (Anybody know any reason not
to do this? - Matt Slot?)

Not Carbon compliant, maybe?

BTW, by my recollection there are about 15 carbon link errors in SDL at
the moment (with the latest CarbonLib).

I have carbon projects for SDL, if anyone is interested.On Fri, 14 Jul 2000, Sam Lantinga wrote:

Thanks for all the replies guys.

Here’s my deal.

  • Our product is two weeks overdue for Beta.
  • Our product goes Gold in two weeks from now.
  • They will print the boxes within the next few days.
  • They need a minimum requirement of at most MacOS 8.1. (8.0 preferably).
  • The game works wonderfully using SDL 1.1.3, under MacOS 9.
  • However, SDL 1.1.3 seems to require OpenGL and other functionality
    of the OS not present in 8.0 or 8.1.
  • I am currently attempting to get SDL 1.0.8 to run, but it hangs on startup
    under MacOS 9.

Be right back. :slight_smile:
My compile is done,

Amilcar> ----- Original Message -----

From: slouken@devolution.com (Sam Lantinga)
To:
Sent: Friday, July 14, 2000 2:15 PM
Subject: Re: [SDL] SDL + MacOS Version

I don’t know if there’s a hard/fast answer to that.

Your best bet is likely to grab the latest version and start working
with

it (which you seem to be doing). There will certianly be bugs to deal
with along the way, but at least you have the source code so you can fix
them.

If you’ve got some specific problems along the way, I’ll try to help.

And I’ll be happy to help in any way I can. I’ll modify the source
to use the LMGetMBarHeight() function. (Anybody know any reason not
to do this? - Matt Slot?)

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Ok!

It compiles and runs using SDL 1.0.8, under MacOS 9.
I’m not in a state to compile the lib (since it needs the Perl compiler)
and I am using CodeWarrior 5.

However, under MacOS 8.1, I get an error of
"InterfaceLib- LMGetUnitTableEntryCount" not found.
SDL_syscdrom.c and SDL_timer.c are the files
using this function. Is there an alternative?
And does anyone have the project files to build SDL’s library
and main file for CodeWarrior 5 on the Mac?

Thanks,

Amilcar*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

Amilcar M. Ubiera
amilcar at randomgames.com ICQ(1269986)
Lead Programmer
Random Games, Inc. 919-469-8676 ext. 147
--------------------------------------
*

However, under MacOS 8.1, I get an error of
"InterfaceLib- LMGetUnitTableEntryCount" not found.
SDL_syscdrom.c and SDL_timer.c are the files
using this function. Is there an alternative?

Matt, do you know what needs to be done to get this code to run
under MacOS 8.1?

Amilcar, do you need the SDL CD-ROM functions? If not, I could
build a version of the library this weekend that doesn’t have them
included…

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

  • Our product is two weeks overdue for Beta.
  • Our product goes Gold in two weeks from now.

Out of curiousity, what product is it? :slight_smile:

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Matt, do you know what needs to be done to get this code to run
under MacOS 8.1?

This symbol was left out of certain versions of InterfaceLib, so just
access the low memory location directly.

#define LMGetUnitTableEntryCount() (* (short *) 0x01D2)

Matt

/* Matt Slot, Bitwise Operator * One box, two box, yellow box, blue box. *

Matt, do you know what needs to be done to get this code to run
under MacOS 8.1?

This symbol was left out of certain versions of InterfaceLib, so just
access the low memory location directly.

#define LMGetUnitTableEntryCount() (* (short *) 0x01D2)

Can we safely #ifndef/#define this for all versions of MacOS?

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

You guys are the bomb. :slight_smile:

I am trying that #define as we speak (as I type).

I finally got CodeWarrior to build the library properly.
Now, with my stub + shared library, it gets a bus error.
I’m going to try stepping through the code to see what
I did wrong.

Thanks for all the help,

Amilcar*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

Amilcar M. Ubiera
amilcar at randomgames.com ICQ(1269986)
Lead Programmer
Random Games, Inc. 919-469-8676 ext. 147
--------------------------------------
*

----- Original Message -----
From: fprefect@ambrosiasw.com (Matt Slot)
To:
Sent: Friday, July 14, 2000 4:06 PM
Subject: Re: [SDL] SDL + MacOS Version

Matt, do you know what needs to be done to get this code to run
under MacOS 8.1?

This symbol was left out of certain versions of InterfaceLib, so just
access the low memory location directly.

#define LMGetUnitTableEntryCount() (* (short *) 0x01D2)

Matt

/* Matt Slot, Bitwise Operator * One box, two box, yellow box, blue box. *

Matt, do you know what needs to be done to get this code to run
under MacOS 8.1?

This symbol was left out of certain versions of InterfaceLib, so just
access the low memory location directly.

#define LMGetUnitTableEntryCount() (* (short *) 0x01D2)

Can we safely #ifndef/#define this for all versions of MacOS?

I don’t think the LM calls work under Carbon…Do they? :o)

And one more thing. It has nothing to do with this thread, but anyways, can
you do direct-to-screen blitting under Carbon? A long time ago I heard that
it would not be possible.-----------------------------------------------------
Jens Lindblad @Jens_Lindblad
Black holes are where God divided by zero

This isn’t #defined in the Universal Headers, so you can’t just check
with #ifndef.

I don’t think the LM calls work under Carbon…Do they? :o)

No, but the whole Device Manager isn’t available under Carbon anyway, so
there isn’t any reason to access the Unit Table. :wink:

And one more thing. It has nothing to do with this thread, but anyways, can
you do direct-to-screen blitting under Carbon? A long time ago I heard that
it would not be possible.

No, Apple recommends doing your raw pixel access in an offscreen GWorld and
then CopyBits to the screen. All the more so under Carbon.

Matt–
/* Matt Slot, Bitwise Operator * One box, two box, yellow box, blue box *

This isn’t #defined in the Universal Headers, so you can’t just check
with #ifndef.

Is there any way to write the code so it will work on older and newer
versions of MacOS?

I don’t think the LM calls work under Carbon…Do they? :o)

No, but the whole Device Manager isn’t available under Carbon anyway, so
there isn’t any reason to access the Unit Table. :wink:

Hmm, so how do you control the CD-ROM? :slight_smile:

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software