Building Cinema 4D SDK on Windows



  • Hello! I'm just starting to explore building a C++ plugin for R21. I'm taking this one step at a time. I've installed the R21 SDK, the project tool for R21, and Visual Studio 2017 Community. I've run the project tool for the frameworks and plugins within the sdk. When I open and attempt to build (Release/x64) the cinema4dsdk I get 100 errors all in the form:

    C1083 Cannot open include file: 'system1.hxx': No such file or directory (compiling source file ..\generated\hxx\register.cpp) cinema4dsdk F:\c4d_plugin_dev\sdk\frameworks\core.framework\source\maxon\system.h

    All of these errors refer to a missing file 'system1.hxx' that is indeed not present in any of the directories within the sdk.

    What have I done wrong?



  • Hello,

    those file are generated at compile time by the Source Processor

    That said, be sure :

    • to have the last version of Visual Studio installed (we had some issue with previous versons)
    • open the solution file that is on plugins/project (plugins.sln) not the project file that is on the cinema4Dsdk folder.
    • unzip the sdk archive in a folder where you have the right to write.
    • be sure to execute the project_tools on your "main" directory (in your case F:\c4d_plugin_dev\sdk) as said on the project tool page

    Cheers,
    Manuel



  • Hello,

    those file are generated at compile time by the Source Processor

    That said, be sure :

    • to have the last version of Visual Studio installed (we had some issue with previous versons)
    • open the solution file that is on plugins/project (plugins.sln) not the project file that is on the cinema4Dsdk folder.
    • unzip the sdk archive in a folder where you have the right to write.
    • be sure to execute the project_tools on your "main" directory (in your case F:\c4d_plugin_dev\sdk) as said on the project tool page

    Cheers,
    Manuel



  • Thank you @m_magalhaes! I needed to open the plugins.sln solution instead of the project file. I feel like I've learned something, but I'm not sure what 👍 🤕