THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/04/2005 at 16:13, xxxxxxxx wrote:
Cinema 4D Version: 9.1
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
I'm just getting into the C++ SDK and have set up my environment on the Mac. I am able to build plug-ins and all is working fine. However, I would also like to make builds for Windows. Has anyone done this from Codewarrior on the Mac? I would imagine that I will need to copy over libraries and platform specific headers from a Win C4D install... but what else do I need to be aware of.
Thanks for any help.
Steven J. Walker
On 07/04/2005 at 06:15, xxxxxxxx wrote:
Is Codewarrior a Multiplatform compiler? I thought it produces Mac-only software?
But if it does the job it should work by converting the
Microsoft Visual C++ project files (make files) to codewarrior format.
The *.dsw files contain the complete workspace with all projects, the *dsp files contain the single projects, both are ascii.
On 07/04/2005 at 08:38, xxxxxxxx wrote:
Thanks you for your help Greez. However I must disagree... Mac Codewarrior -is- capable of producing cross platform products. For a few years now I have been building plug-ins for After Effects (dlls) using just Codewarrior on the Mac for both Mac and Windows platforms. Of course the target settings must be configured properly and the correct libraries used, but the end result is much better than VC.
I also understand your choice as a developer to use both environments because they are specialized for their respective operating systems. My case is special though, because I am using certain features of Cplusplus (such as templates) I have found VC to be practically unusable. Though perhaps my lack of knowledge of VC is to blame.
In any case, I don't mean to beat the subject to death... I'm just looking for a way to extend my existing code base and what I'm familiar with to Cinema4D. I'll do some tests and let you know if I find a way to build a 'cdl' on the Mac ;)
On 07/04/2005 at 11:45, xxxxxxxx wrote:
If you are used to compiler that tend to stick to ansii standards i think it is a good idea not to use MS VC ;)
Regarding your question about win-specifics the first thing that comes to my mind as a bit exotic in C4D-Plugin development for windows is a special VC compiler setting for Pointer-to-member representation which must be set to *general purpose always* instead of *best case always* and in detail *Point to single-Inheritance Classes*.
I havent seen any multi-inheritance classes in C4D so i dont really see the need for it but who knows...
On 07/04/2005 at 20:43, xxxxxxxx wrote:
I think that "Point to single-Inheritance Classes" is to disallow SDK users from using multiple base classes on their derived classes, ala:
class MyDialogObject : GeDialog, BaseObject
I couldn't complain as I've been using MSVC++ for some years now, so it was only a matter of getting CW for compiling Mac plugins. And, even after these many years, I agree that CW is much nicer than VC++. The only thing with CW that alludes me is how to do post-build commands (in VC++, I copy the plugin from the build area to 'production' - i.e.: into Cinema 4D's Plugins folder - using a post-build command line).
On 08/04/2005 at 09:43, xxxxxxxx wrote:
Thanks for the info Robert. Unfortunately I do have multiple base class inheritance in some of my classes. However, right now I really don't need to use those classes and can address that problem in the future.
I still have not had time yet to try compiling a cdl from Codewarrior on OSX, but I'll definitely let everyone know what I find.
On 10/04/2005 at 21:44, xxxxxxxx wrote:
Codewarrior will compile an application for Windows, but not a C4D plugin. You'll have to get MSVC++. I don't remember exactly what the reason was but there was something the C4D SDK needed for Windows that Codewarrior didn't support.
On 12/04/2005 at 00:26, xxxxxxxx wrote:
If Codewarrior cannot be used for WinPlugins, maybe the GCC compiler that comes with the Mac OSX?
I was hoping to be able to use it for my Mac Plugins, so i would be really interested if anybody has any experence with it. Is The GCC an comparable equivalent for Codewarrior?
On 14/04/2005 at 06:53, xxxxxxxx wrote:
Cinema 4D Mac plugins have to be compiled for OS9 classic, so if that compiler can do that, then it might work, but I've only used Codewarrior on the Mac so I don't know for sure. Do a search in this forum, I believe there was some discusson on that a while back.
On 17/04/2005 at 02:51, xxxxxxxx wrote:
Folks, stop this fruitless discussion, please.
Due to the way the class interfaces are implemented, you must use the Microsoft C compiler for Windows plugins - you get it for free here.
The free version requires a bit of knowledge on how to use it, but Astrofish did a great tutorial on this.
For the same reason you have to use the Metrowerk compiler for OS X compiles. Someone who's *really* into compilers could eventually hack around these limitations - but why bother?
Hope it helps
P.S.: If I recall correctly, then In earlier versions of the SDK it was indeed possible to compile the Windows version from Metrowerks. But at least since R8 this is history
On 17/04/2005 at 03:21, xxxxxxxx wrote:
Cant see anything fruitless in this very helpful exchange of information! What are you talking about?
And if you are still willing to participate in our conversation, here is another question.
Does anybody know a way of compiling a Plugin for MAC without having to buy Codewarrior? Of course only legal solutions are of any interest!