HISE Logo Forum
    • Categories
    • Register
    • Login

    HISE Build issues...(Copy Protection system)

    Scheduled Pinned Locked Moved General Questions
    24 Posts 5 Posters 1.3k Views
    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.
    • LindonL
      Lindon
      last edited by Lindon

      OK so I'm having some HISE compile issues on windows, latest HISE build, VS2022

      HISE builds fine - but my project crashes everything because it uses the activate services, so I need to add the lines:

      USE_COPY_PROTECTION=1
      USE_SCRIPT_COPY_PROTECTION=1
      HISE_DEACTIVATE_OVERLAY=1

      to the extra definitions, but as soon as I do so HISE fails to build with these errors:

      >D:\HISE\hi_scripting\scripting\api\ScriptingApiContent.cpp(1907,2): error C2680: 'hise::FrontendProcessor *': invalid target type for dynamic_cast
      1>(compiling source file '../../JuceLibraryCode/include_hi_scripting_01.cpp')
      1>D:\HISE\hi_scripting\scripting\api\ScriptingApiContent.cpp(1907,2):
      1>'hise::FrontendProcessor': class must be defined before using in a dynamic_cast
      1>D:\HISE\hi_scripting\scripting\api\ScriptingApiContent.cpp(2180,2): error C2680: 'hise::FrontendProcessor *': invalid target type for dynamic_cast
      1>(compiling source file '../../JuceLibraryCode/include_hi_scripting_01.cpp')
      1>D:\HISE\hi_scripting\scripting\api\ScriptingApiContent.cpp(2180,2):
      1>'hise::FrontendProcessor': class must be defined before using in a dynamic_cast
      1>D:\HISE\hi_scripting\scripting\api\ScriptingApiContent.cpp(3801,2): error C2680: 'hise::FrontendProcessor *': invalid target type for dynamic_cast
      1>(compiling source file '../../JuceLibraryCode/include_hi_scripting_01.cpp')
      1>D:\HISE\hi_scripting\scripting\api\ScriptingApiContent.cpp(3801,2):
      1>'hise::FrontendProcessor': class must be defined before using in a dynamic_cast
      1>D:\HISE\hi_scripting\scripting\api\ScriptingApiContent.cpp(3824,2): error C2680: 'hise::FrontendProcessor *': invalid target type for dynamic_cast
      1>(compiling source file '../../JuceLibraryCode/include_hi_scripting_01.cpp')
      1>D:\HISE\hi_scripting\scripting\api\ScriptingApiContent.cpp(3824,2):
      1>'hise::FrontendProcessor': class must be defined before using in a dynamic_cast
      1>Done building project "HISE Standalone_App.vcxproj" -- FAILED.
      

      What am I doing thats sillier than usual?

      HISE Development for hire.
      www.channelrobot.com

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @Lindon
        last edited by

        @Lindon said in HISE Build issues...:

        to the extra definitions, but as soon as I do so HISE fails to build with these errors:

        Which extra definition triggers the error? Is it just one, or a combination of all 3?

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        LindonL 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @d.healey
          last edited by

          @d-healey
          USE_COPY_PROTECTION on its own will cause the error, havent checked each of the others individually...

          HISE Development for hire.
          www.channelrobot.com

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @Lindon
            last edited by Lindon

            @Lindon
            HISE_DEACTIVATE_OVERLAY=1 compiles fine...
            USE_SCRIPT_COPY_PROTECTION=1 fails again...

            HISE Development for hire.
            www.channelrobot.com

            LindonL 1 Reply Last reply Reply Quote 0
            • LindonL
              Lindon @Lindon
              last edited by

              @Lindon here's my entire Extra Preprocessor Definitions entry for windows:

              HISE_SCRIPT_SERVER_TIMEOUT=20000
              HISE_USE_VS2022=1
              PERFETTO=0
              NOMINMAX=1
              WIN32_LEAN_AND_MEAN=1
              NUM_HARDCODED_FX_MODS=3
              USE_COPY_PROTECTION=1
              USE_SCRIPT_COPY_PROTECTION=1
              HISE_DEACTIVATE_OVERLAY=1

              HISE Development for hire.
              www.channelrobot.com

              1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey
                last edited by

                So it's something specific to those copy protection flags. I'll try here and see what I get.

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                1 Reply Last reply Reply Quote 1
                • d.healeyD
                  d.healey
                  last edited by

                  Yeah I get the same errors here.

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  LindonL 1 Reply Last reply Reply Quote 0
                  • LindonL
                    Lindon @d.healey
                    last edited by

                    @d-healey OK thanks.... @Christoph-Hart !!!!

                    HISE Development for hire.
                    www.channelrobot.com

                    DabDabD 1 Reply Last reply Reply Quote 0
                    • DabDabD
                      DabDab @Lindon
                      last edited by

                      @Lindon Are you using FAUST Enabled HISE version??

                      I gave it a try without FAUST plugins (just a regular Saturation VST3). It compiled successfully.

                      @Lindon What version of Windows are you using ? I am using it on Windows 11 23H2. It works fine. Even I didn't add any Flags as you can see here.
                      01d544e8-d3c4-4bea-b826-6fb31eeee0e8-image.png

                      If I find any problem on FAUST plugins , I will let you know.

                      Bollywood Music Producer and Trance Producer.

                      1 Reply Last reply Reply Quote 0
                      • DabDabD
                        DabDab
                        last edited by DabDab

                        Here is my simple "HISE 4.0 with FAUST on Windows 11 Tutorial "
                        https://www.youtube.com/watch?v=eIDuhsXCOyk

                        Bollywood Music Producer and Trance Producer.

                        d.healeyD 1 Reply Last reply Reply Quote 0
                        • d.healeyD
                          d.healey @DabDab
                          last edited by

                          @DabDab I think Lindon's trying to compile HISE, not export a plugin. The issue is unrelated to FAUST, it's triggered by the copy protection flags.

                          Libre Wave - Freedom respecting instruments and effects
                          My Patreon - HISE tutorials
                          YouTube Channel - Public HISE tutorials

                          DabDabD 1 Reply Last reply Reply Quote 0
                          • DabDabD
                            DabDab @d.healey
                            last edited by

                            @d-healey Ok, no problem. But I didn't find any HISE building issue both on FAUST and Non FAUST versions of HISE.

                            Bollywood Music Producer and Trance Producer.

                            d.healeyD 1 Reply Last reply Reply Quote 0
                            • d.healeyD
                              d.healey @DabDab
                              last edited by

                              @DabDab Did you use the same preprocessor definitions as Lindon?

                              Libre Wave - Freedom respecting instruments and effects
                              My Patreon - HISE tutorials
                              YouTube Channel - Public HISE tutorials

                              DabDabD 1 Reply Last reply Reply Quote 0
                              • DabDabD
                                DabDab @d.healey
                                last edited by

                                @d-healey said in HISE Build issues...:

                                @DabDab Did you use the same preprocessor definitions as Lindon?

                                That's what I am saying. I didn't add any extra pp definition. I used default projucer that comes with HISE develop source code. I used vs 2022 on Windows 11 23H2. It should not have problem.

                                Bollywood Music Producer and Trance Producer.

                                d.healeyD 1 Reply Last reply Reply Quote 0
                                • d.healeyD
                                  d.healey @DabDab
                                  last edited by

                                  @DabDab He needs to use these preprocessor definitions for the copy protection system he's using.

                                  Libre Wave - Freedom respecting instruments and effects
                                  My Patreon - HISE tutorials
                                  YouTube Channel - Public HISE tutorials

                                  DabDabD 1 Reply Last reply Reply Quote 0
                                  • DabDabD
                                    DabDab @d.healey
                                    last edited by

                                    @d-healey that means it is user specific. If we don't want to use copy protection system , it shouldn't cause any issue right?

                                    Bollywood Music Producer and Trance Producer.

                                    d.healeyD 1 Reply Last reply Reply Quote 0
                                    • d.healeyD
                                      d.healey @DabDab
                                      last edited by d.healey

                                      @DabDab said in HISE Build issues...:

                                      If we don't want to use copy protection system , it shouldn't cause any issue right?

                                      Yeah it's only a problem for people who are using the built in copy protection system

                                      Libre Wave - Freedom respecting instruments and effects
                                      My Patreon - HISE tutorials
                                      YouTube Channel - Public HISE tutorials

                                      DabDabD 1 Reply Last reply Reply Quote 0
                                      • DabDabD
                                        DabDab @d.healey
                                        last edited by

                                        @d-healey said in HISE Build issues...:

                                        @DabDab said in HISE Build issues...:

                                        If we don't want to use copy protection system , it shouldn't cause any issue right?

                                        Yeah it's only a problem for people who are using the built in copy protection system

                                        Great. The title confused me " HISE build issue". It is supposed to be " HISE build issue for Copy protection System".
                                        Any how thank you to @Lindon for getting us the right solution.

                                        Bollywood Music Producer and Trance Producer.

                                        d.healeyD 1 Reply Last reply Reply Quote 0
                                        • d.healeyD
                                          d.healey @DabDab
                                          last edited by

                                          @DabDab It is a HISE build issue. HISE won't build when using those preprocessor definitions, those definitions are part of the HISE codebase. Currently we don't have a solution.

                                          Libre Wave - Freedom respecting instruments and effects
                                          My Patreon - HISE tutorials
                                          YouTube Channel - Public HISE tutorials

                                          LindonL 1 Reply Last reply Reply Quote 1
                                          • LindonL
                                            Lindon @d.healey
                                            last edited by

                                            @Christoph-Hart -- any chance of a solution soon (ish)?

                                            HISE Development for hire.
                                            www.channelrobot.com

                                            Christoph HartC 1 Reply Last reply Reply Quote 0
                                            • LindonL Lindon referenced this topic on
                                            • First post
                                              Last post

                                            27

                                            Online

                                            1.7k

                                            Users

                                            11.9k

                                            Topics

                                            103.5k

                                            Posts