>> I want to build plugins for MacOS10.4...
>
> Take projects you have. Or the one from my video
> (http://www.monkeybreadsoftware.de/realbasic/movies/CreatePluginMac.shtml).
>
> Compiler: GCC 4.0
> SDK: 10.6
> Deployment SDK: 10.4
>
> compile and it should work.
Hi Christian, Bjorn,
Thanks for your answers.
In fact, this does work for your example project, but not for my ElfData
plugin. For my plugin, if I set the SDK to 10.4 and compiler to 4.0, I get many
header errors. Like this:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/libkern/ppc/OSByteOrder.h:82:
error: expected unqualified-id before '[' token
I am not sure why. I tried preprocessing my plugin, and I think this file is
coming from #include <stdlib.h>
I tried modifying my project to be like yours, no difference, I got those
header compile errors.
So I tried modifying your project to be like mine. I added my source code and
removed your source code. It compiled, and I put the .dylib into the plugins
folder, but the result was a file that REALbasic could not use!
Then I realised I had the RBCarbonHeaders.h file, and not the MachO headers. So
I replaced RBCarbonHeaders with my header file, as below:
#define TARGET_API_MAC_MACHO
#define TARGET_API_MAC_OS
#define REALobjectType 1
#if __LITTLE_ENDIAN__
#define kPlatformEndian 0
#endif
And... it failed, just like in my project. I get these errors:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/libkern/ppc/OSByteOrder.h:82:
error: expected unqualified-id before '[' token
So, I've pretty much failed for today. I'll try again. Hopefully before I run
out of energy for today.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>