Built Carbon Library? Please help! :)

Hey list,

I am desperately seeking anyone whom has a built copy of the Mac Carbon
SDL library. I cannot get it to compile and I’ve tried CW Pro 6 & 7.

All I need is the library and then I can finally get my game off OS X
SDL and to a cross-platform (Mac OS X and Classic) implementation.

I cannot continue work until I can grab this library. Can anyone please
help me out?

Thanks a lot

Graham

At 0:39 Uhr -0700 10.12.2001, Graham Wihlidal wrote:

Hey list,

I am desperately seeking anyone whom has a built copy of the Mac
Carbon SDL library. I cannot get it to compile and I’ve tried CW
Pro 6 & 7.

If you told us the error you got, we might be able to help you
compile it yourself!

All I need is the library and then I can finally get my game off OS
X SDL and to a cross-platform (Mac OS X and Classic) implementation.

Note that the Carbon target is not really tested. This means that
functionality could be broken or missing, and that it may be slower
than the corresponding native targets.

Cheers,

Max–

Max Horn
Software Developer

email: mailto:Max_Horn
phone: (+49) 6151-494890

At 0:39 Uhr -0700 10.12.2001, Graham Wihlidal wrote:

Hey list,

I am desperately seeking anyone whom has a built copy of the Mac
Carbon SDL library. I cannot get it to compile and I’ve tried CW Pro
6 & 7.

If you told us the error you got, we might be able to help you compile
it yourself!
I get a whack load of errors in MacMemory.h and OSUtils.h with CW Pro

  1. And yes, it is compiling as a Carbon target. :confused:

Just to name a few (from 700 :slight_smile:

Error : ‘)’ expected
MacMemory.h line 91 typedef CALLBACK_API_REGISTER68K( void ,
UserFnProcPtr, (void * parameter) );

Error : ‘)’ expected
OSUtils.h line 156 typedef CALLBACK_API_REGISTER68K( void ,
DeferredTaskProcPtr, (long dtParam) );

Error : ‘)’ expected
OSUtils.h line 167 NewDeferredTaskUPP(DeferredTaskProcPtr userRoutine);

Error : illegal function definition
OSUtils.h line 186 DisposeDeferredTaskUPP(DeferredTaskUPP userUPP);

Error : illegal function definition
OSUtils.h line 207 InvokeDeferredTaskUPP(

Error : illegal function definition
OSUtils.h line 209 ferredTaskUPP
userUPP) ONEWORDINLINE(0x4E90);

Error : identifier expected
OSUtils.h line 231 };

All I need is the library and then I can finally get my game off OS X
SDL and to a cross-platform (Mac OS X and Classic) implementation.

Note that the Carbon target is not really tested. This means that
functionality could be broken or missing, and that it may be slower
than the corresponding native targets.
noted :slight_smile:

I just need to have one executable that runs on OS 9 and OS X, and our
engine only compiles in Codewarrior because of complex templating, etc…
PB breaks at a few crucial lines.

It’d be great if someone could walk me through it

Thanks in advance,

Graham

At 11:15 Uhr -0700 10.12.2001, Graham Wihlidal wrote:

At 0:39 Uhr -0700 10.12.2001, Graham Wihlidal wrote:

Hey list,

I am desperately seeking anyone whom has a built copy of the Mac
Carbon SDL library. I cannot get it to compile and I’ve tried CW
Pro 6 & 7.

If you told us the error you got, we might be able to help you
compile it yourself!
I get a whack load of errors in MacMemory.h and OSUtils.h with CW
Pro 7. And yes, it is compiling as a Carbon target. :confused:

Just to name a few (from 700 :slight_smile:

Error : ‘)’ expected
MacMemory.h line 91 typedef CALLBACK_API_REGISTER68K( void ,
UserFnProcPtr, (void * parameter) );

[…]

Ah yes. These are due to the ConditionalMacros.h file that SDL
supplies, and which was left in more or less by accident. Delete it
from the SDL source (make sure you do not delete the correct one
which is part of the Universal Headers in your CW folder :slight_smile:

All I need is the library and then I can finally get my game off
OS X SDL and to a cross-platform (Mac OS X and Classic)
implementation.

Note that the Carbon target is not really tested. This means that
functionality could be broken or missing, and that it may be slower
than the corresponding native targets.
noted :slight_smile:

I just need to have one executable that runs on OS 9 and OS X, and
our engine only compiles in Codewarrior because of complex
templating, etc… PB breaks at a few crucial lines.

You can build the Cocoa backend of SDL using CW 7, as was just proven
by another user, with a small few tweaks (mainly to cope with bugs in
CW).

Max–

Max Horn
Software Developer

email: mailto:Max_Horn
phone: (+49) 6151-494890

Ah yes. These are due to the ConditionalMacros.h file that SDL
supplies, and which was left in more or less by accident. Delete it
from the SDL source (make sure you do not delete the correct one
which is part of the Universal Headers in your CW folder :slight_smile:

I got it to compile after removing the file. I first had to go into the
.exp file and remove SDL_InitQuickDraw because it couldn’t be found,
but I took a guess that I didn’t need it :slight_smile:

Then it couldn’t find the standard library functions, so I added a few
more libraries than the project had and I got it to compile! :slight_smile:

Kudos!

You can build the Cocoa backend of SDL using CW 7, as was just proven
by another user, with a small few tweaks (mainly to cope with bugs in
CW).
Interesting. Any way that doing so will allow it to load in the classic
enironment? Or is it now OS X only?

Thanks a lot!

Graham

At 13:06 Uhr -0700 10.12.2001, Graham Wihlidal wrote:

Ah yes. These are due to the ConditionalMacros.h file that SDL
supplies, and which was left in more or less by accident. Delete it
from the SDL source (make sure you do not delete the correct one
which is part of the Universal Headers in your CW folder :slight_smile:

I got it to compile after removing the file. I first had to go into
the .exp file and remove SDL_InitQuickDraw because it couldn’t be
found, but I took a guess that I didn’t need it :slight_smile:

Correct. This should be fixed in CVS already (or if not, will be
soon, the issue is known).

Then it couldn’t find the standard library functions, so I added a
few more libraries than the project had and I got it to compile! :slight_smile:

I myself haven’t tried to build the carbon target for some time, but
I did do it with 1.2.3, and it went just smooth (after the two
changes mentioned above). But of course you will have to link in some
more libs in your application that is using SDL.

Kudos!

You can build the Cocoa backend of SDL using CW 7, as was just
proven by another user, with a small few tweaks (mainly to cope
with bugs in CW).
Interesting. Any way that doing so will allow it to load in the
classic enironment? Or is it now OS X only?

Cocoa is OS X only.

Max–

Max Horn
Software Developer

email: mailto:Max_Horn
phone: (+49) 6151-494890