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

    Nothing happen when runing generate_solution_win.bat

    Cinema 4D SDK
    windows c++ 2024
    2
    9
    1.1k
    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.
    • gheyretG
      gheyret
      last edited by

      Hi Community,
      I am trying to take the first step with the C++ plugin, Then I tried to create the plugins.sln file by holding down the steps of the C++ SDK on Windows.
      And I run the generate_solution_win.bat file but nothing happen, just a window popup and close qucikly.
      is that i'm missing something or do something wrong?

      www.boghma.com

      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand @gheyret
        last edited by ferdinand

        Hey @gheyret,

        Thank your for reaching out to us. That is a bit odd but I have hunch to what could be the issue. Try to replace the content of the file with this:

        @echo off
        setlocal
        
        :: Check if the project tool exists.
        set "ptool=%~dp0tools\projecttool\kernel_app_64bit.exe"
        if not exist "%ptool%" (
            echo "Project tool not found at '%ptool%'."
            exit /b 1
        )
        
        :: Run the project tool on the project and create a symbolic link to the solution.
        echo Running project tool on project at '%~dp0'.
        %ptool% g_updateproject=%~dp0
        
        endlocal
        

        I.e., I removed the bit where it creates a symbolic link to the solution file for you. When even this does not work, I would have to ask you to try to run the project tool manually. This could also be something %~dp0 related. Do you have any non-unicode or whitespace characters in your paths? The windows terminal does not like them, and you cannot properly escape them in batch files.

        d:\projects\cinema\2024_SDK                   #OK  - Just ASCII, no whitespaces
        d:\projects\cinema and stuff\2024_SDK         #NOK - white spaces in path
        d:\projects\cínemüß\2024_SDK                  #NOK - Non-ASCII characters, can lead to troubles too
        

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

        gheyretG 1 Reply Last reply Reply Quote 0
        • gheyretG
          gheyret @ferdinand
          last edited by

          Hi @ferdinand,
          I replace the content, but it's same as the video on top.

          www.boghma.com

          1 Reply Last reply Reply Quote 0
          • ferdinandF
            ferdinand
            last edited by

            Hm,

            hard to trouble shoot, have you check the paths?

            MAXON SDK Specialist
            developers.maxon.net

            gheyretG 3 Replies Last reply Reply Quote 0
            • gheyretG
              gheyret @ferdinand
              last edited by

              Yes, And I'm sure I don't have any non-unicode character in my path
              6a6d906c-628f-429c-a947-6670dc5e3bb9-image.png

              www.boghma.com

              1 Reply Last reply Reply Quote 0
              • gheyretG
                gheyret @ferdinand
                last edited by

                @ferdinand
                Oh! sorry for that, it's white space!

                www.boghma.com

                1 Reply Last reply Reply Quote 0
                • gheyretG
                  gheyret @ferdinand
                  last edited by

                  It works correctly!
                  Thank you so much for your help!
                  795dcbac-8d0a-4745-8f08-ef0581dff832-image.png

                  www.boghma.com

                  1 Reply Last reply Reply Quote 0
                  • ferdinandF
                    ferdinand
                    last edited by ferdinand

                    Yeah, no worries, and I am glad that it works for you. The windows terminal also drives me nuts every time (I in fact hate ALL terminals equally 😄 ).

                    Maybe I'll add a little warning to the getting started guides about this ...

                    MAXON SDK Specialist
                    developers.maxon.net

                    gheyretG 1 Reply Last reply Reply Quote 0
                    • gheyretG
                      gheyret @ferdinand
                      last edited by

                      Yeah, it's a little bit anoying, but the problem's solve!
                      Ready for rocking with C++! wohoo~ 😀

                      www.boghma.com

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