On 17/10/2016 at 15:03, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 17
Platform: Windows ;
Language(s) :
---------
Hello,
I'm trying to incorporate our C4D plugin into our nightly build scripts, and it seems to work. However, on Windows, when we try to load the plugin we see an error message like this:
C4D Debug Output Start...
CINEMA 4D Start...
Error: plugin (foo.cdl64) doesn't support the required sdk
I'm assuming/guessing we're missing some preprocessor define(s), but I can't figure out which ones we need. If I compile the plugin via the VisualStudio IDE then it works without issue. The only difference I can see is the binary that the IDE created is a lot smaller than our build scripts. Can someone explain the error? How does C4D figure out what sdk the plugin is using? I tried searching on the forum and Google, but couldn't find anything relevant.
For what it's worth, these are the preprocessor defines we're using (internal ones to us have been removed) :
-DMSVCVERS=12 -D__64BIT - -D_WINDLL -DWIN64 -PRIVATE_MODULE_ID=net.maxon.c4d.cineman -D_CONSOLE -D__STL_HAS_NAMESPACES -D_UNICODE -DBits64_ -DBOOST_SIGNALS_NO_DEPRECATION_WARNING -DUNICODE -DMAXON_TARGET_RELEASE -D_WIN32 -D__C4D_64BIT -D__PC -DNDEBUG
-D_CRT_SECURE_NO_DEPRECATE -DWIN32 -DMAXON_API -DRMAN_VERSION=21.2 -DPRIVATE_MANGLED_MODULE_ID=net_maxon_c4d_cineman -DPSAPI_VERSION=1
-D_CRT_SECURE_NO_WARNINGS -DMAXON_TARGET_WINDOWS -D_WIN64 -DMAXON_TARGET_64BIT -D_WINDOWS
Thanks,
Ian