Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    AdditionalCompileOptions breaks any plugin

    Cinema 4D SDK
    4
    6
    1.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Fritz
      last edited by

      Hi SDK Team,

      After hours of searching inexplicable crashes when Init() is called on plugin object creation I narrowed it down to using "AdditionalCompileOptions" in the projectdefinition. No matter what the set setting is, just adding:

      AdditionalCompileOptions.Win64.Debug= /D "ANYSETTING"

      to the projectdefinition.txt breaks any plugin under windows. Tested with adding it to the SDK example plugin and it crashes on cinema startup. Same with "Release" setting instead of "Debug"
      I am using VS2017 community with v141 toolset win 8.1 sdk version. (all default what update projects
      tool created). SDK & Cinema Version is R21.022.

      Regards
      Fritz

      F 1 Reply Last reply Reply Quote 0
      • F
        Fritz @Fritz
        last edited by

        Important to note: adding the setting manually to the project works. Only when using AdditionalCompileOptions this happens.

        1 Reply Last reply Reply Quote 0
        • kbarK
          kbar
          last edited by

          Looks like your setting preprocessing definitions. So try the following instead...

          AdditionalPreprocessorDefinitions.Win=ANYSETTING;SETTING2;SETTING3;

          or

          AdditionalPreprocessorDefinitions.Win64.Debug=ANYSETTING;SETTING2;SETTING3;

          https://www.gamelogicdesign.com
          https://www.plugins4d.com

          1 Reply Last reply Reply Quote 1
          • r_giganteR
            r_gigante
            last edited by

            Hi Fritz, thanks for reaching out us.

            With regard to your issue, as already pointed about by @kbar , please refer to the General Settings section of the ProjectTool Manual. There you'll find the projectdefinition parameter Kent just mentioned in his post.

            Best, Riccardo

            1 Reply Last reply Reply Quote 0
            • ManuelM
              Manuel
              last edited by Manuel

              hello,

              Just to be sure, what are exactly the options you are trying to set ?

              Cheers,
              Manuel

              MAXON SDK Specialist

              MAXON Registered Developer

              1 Reply Last reply Reply Quote 0
              • F
                Fritz
                last edited by

                Thx for the answers,

                @Manuel I was just trying to set some library specific defines. I tried with a random define text and it breaks plugins.

                @Kent I will try that, thank you.

                Shouldn't it however also work how I did it?

                Regards
                Fritz

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post