Removing license related things messed up the export
-
Hi,
In my plugin, there was a license system, where the user would need a serial number to unlock the plugin. I wanted to remove it, so the license dialogue was taken out, but that didn't work on its own, so I removed the definitions USE_COPY_PROTECTION=1 and USE_SCRIPT_COPY_PROTECTION=1. Now I tried to export the plugin on Windows (VST3), and I got an error that seems to say that something is trying to refer to the license, but can't because I took it out. How to fix this? The error is below.
Asgard Sampler 2.lib(include_hi_frontend.obj) : error LNK2001: unresolved external symbol "public: enum hise::OverlayMe ssageBroadcaster::State __cdecl hise::DeactiveOverlay::checkLicense(class juce::String const &)" (?checkLicense@Deactiv eOverlay@hise@@QEAA?AW4State@OverlayMessageBroadcaster@2@AEBVString@juce@@@Z) [D:\Euren Virtual Instruments\Asgard Samp ler 2\Dev\Binaries\Builds\VisualStudio2022\Asgard Sampler 2_VST3.vcxproj] Asgard Sampler 2.lib(include_hi_frontend.obj) : error LNK2001: unresolved external symbol "public: class juce::var __cd ecl hise::Unlocker::isUnlocked(void)const " (?isUnlocked@Unlocker@hise@@QEBA?AVvar@juce@@XZ) [D:\Euren Virtual Instrume nts\Asgard Sampler 2\Dev\Binaries\Builds\VisualStudio2022\Asgard Sampler 2_VST3.vcxproj] Asgard Sampler 2.lib(include_hi_frontend.obj) : error LNK2001: unresolved external symbol "public: class juce::var __cd ecl hise::Unlocker::loadKeyFile(void)" (?loadKeyFile@Unlocker@hise@@QEAA?AVvar@juce@@XZ) [D:\Euren Virtual Instruments\ Asgard Sampler 2\Dev\Binaries\Builds\VisualStudio2022\Asgard Sampler 2_VST3.vcxproj] Asgard Sampler 2.lib(include_hi_frontend.obj) : error LNK2001: unresolved external symbol "public: virtual class juce:: OnlineUnlockStatus * __cdecl hise::Unlocker::getUnlockerObject(void)" (?getUnlockerObject@Unlocker@hise@@UEAAPEAVOnline UnlockStatus@juce@@XZ) [D:\Euren Virtual Instruments\Asgard Sampler 2\Dev\Binaries\Builds\VisualStudio2022\Asgard Sampl er 2_VST3.vcxproj] Asgard Sampler 2.lib(include_hi_frontend.obj) : error LNK2001: unresolved external symbol "public: virtual __cdecl hise ::Unlocker::~Unlocker(void)" (??1Unlocker@hise@@UEAA@XZ) [D:\Euren Virtual Instruments\Asgard Sampler 2\Dev\Binaries\Bu ilds\VisualStudio2022\Asgard Sampler 2_VST3.vcxproj] Asgard Sampler 2.lib(include_hi_frontend.obj) : error LNK2001: unresolved external symbol "public: __cdecl hise::Unlock er::Unlocker(void)" (??0Unlocker@hise@@QEAA@XZ) [D:\Euren Virtual Instruments\Asgard Sampler 2\Dev\Binaries\Builds\Visu alStudio2022\Asgard Sampler 2_VST3.vcxproj] Asgard Sampler 2.lib(include_hi_core.obj) : error LNK2001: unresolved external symbol "public: class juce::String __cde cl hise::Unlocker::getProductErrorMessage(void)const " (?getProductErrorMessage@Unlocker@hise@@QEBA?AVString@juce@@XZ) [D:\Euren Virtual Instruments\Asgard Sampler 2\Dev\Binaries\Builds\VisualStudio2022\Asgard Sampler 2_VST3.vcxproj] Asgard Sampler 2.lib(include_hi_core_02.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl h ise::Unlocker::resolveLicenseFile(class juce::Component *)" (?resolveLicenseFile@Unlocker@hise@@SAXPEAVComponent@juce@@ @Z) [D:\Euren Virtual Instruments\Asgard Sampler 2\Dev\Binaries\Builds\VisualStudio2022\Asgard Sampler 2_VST3.vcxproj] Asgard Sampler 2.lib(include_hi_core_02.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl h ise::Unlocker::showActivationWindow(class juce::Component *)" (?showActivationWindow@Unlocker@hise@@SAXPEAVComponent@ju ce@@@Z) [D:\Euren Virtual Instruments\Asgard Sampler 2\Dev\Binaries\Builds\VisualStudio2022\Asgard Sampler 2_VST3.vcxpr oj] .\..\..\Compiled\VST3\\Asgard Sampler 2.vst3 : fatal error LNK1120: 9 unresolved externals [D:\Euren Virtual Instrument s\Asgard Sampler 2\Dev\Binaries\Builds\VisualStudio2022\Asgard Sampler 2_VST3.vcxproj]
-
@HIKuukkeli Did you clean the build after making those changes?
-
@d-healey No, I did not. So I would need to build HISE again with Visual Studio, right?
-
@HIKuukkeli I don't think you need to rebuild HISE, unless you changed some setting in the HISE .juicer file.
I was asking about cleaning the build for your project before exporting. Export > Clean Build Directory
-
@d-healey Ah, thank you!
-
@HIKuukkeli oh easy remove rsa files in your project
-
@HIKuukkeli
this one