VSTi export errors



  • I'm getting some errors when trying to build a VSTi

    In file included from ../../JuceLibraryCode/JuceHeader.h:21:0,
                     from ../../Source/Plugin.cpp:2:
    ../../Source/Plugin.cpp: In static member function ‘static juce::MemoryInputStream* hise::FrontendFactory::getEmbeddedData(hise::FileHandlerBase::SubDirectories)’:
    ../../Source/Plugin.cpp:6:57: error: ‘impulses’ is not a member of ‘PresetData’
     DEFINE_EMBEDDED_DATA(hise::FileHandlerBase::AudioFiles, PresetData::impulses, PresetData::impulsesSize);
                                                             ^
    /media/dave/work1/HISE Development Builds/HISE/hi_frontend/hi_frontend.h:151:104: note: in definition of macro ‘DEFINE_EMBEDDED_DATA’
     #define DEFINE_EMBEDDED_DATA(subdirectory, data, size) case subdirectory: return new MemoryInputStream(data, size, false);
                                                                                                            ^
    ../../Source/Plugin.cpp:6:79: error: ‘impulsesSize’ is not a member of ‘PresetData’
     DEFINE_EMBEDDED_DATA(hise::FileHandlerBase::AudioFiles, PresetData::impulses, PresetData::impulsesSize);
                                                                                   ^
    /media/dave/work1/HISE Development Builds/HISE/hi_frontend/hi_frontend.h:151:110: note: in definition of macro ‘DEFINE_EMBEDDED_DATA’
     #define DEFINE_EMBEDDED_DATA(subdirectory, data, size) case subdirectory: return new MemoryInputStream(data, size, false);
                                                                                                                  ^
    ../../Source/Plugin.cpp:7:53: error: ‘images’ is not a member of ‘PresetData’
     DEFINE_EMBEDDED_DATA(hise::FileHandlerBase::Images, PresetData::images, PresetData::imagesSize);
                                                         ^
    /media/dave/work1/HISE Development Builds/HISE/hi_frontend/hi_frontend.h:151:104: note: in definition of macro ‘DEFINE_EMBEDDED_DATA’
     #define DEFINE_EMBEDDED_DATA(subdirectory, data, size) case subdirectory: return new MemoryInputStream(data, size, false);
                                                                                                            ^
    ../../Source/Plugin.cpp:7:73: error: ‘imagesSize’ is not a member of ‘PresetData’
     DEFINE_EMBEDDED_DATA(hise::FileHandlerBase::Images, PresetData::images, PresetData::imagesSize);
                                                                             ^
    /media/dave/work1/HISE Development Builds/HISE/hi_frontend/hi_frontend.h:151:110: note: in definition of macro ‘DEFINE_EMBEDDED_DATA’
     #define DEFINE_EMBEDDED_DATA(subdirectory, data, size) case subdirectory: return new MemoryInputStream(data, size, false);
                                                                                                                  ^
    Makefile:114: recipe for target 'build/intermediate/Release/Plugin_124bbd3c.o' failed
    make: *** [build/intermediate/Release/Plugin_124bbd3c.o] Error 1
    


  • I figured it out, I had to enable the embed audio files option. Since this option seems to be mandatory to get it to build what is the point in the option? 🙂


  • administrators

    Yeah, that's an artefact from old times...



  • Any idea about this? I did a standalone export.

    0_1535497372882_Screenshot from 2018-08-29 00-02-20.png


  • administrators

    It fails to resolve a embedded resource called undefined, what is probably the result of an invalid Javascript expression. You‘re only image is the Empty.png filmstrip, yes?



  • @christoph-hart Yes that's the only image, I'm also including 3 font files. I have another image in my images folder too but it's not used in the project, could this be the cause?



  • So this time I tried a debug build and ran it through the terminal

    0_1535540257901_Screenshot from 2018-08-29 11-57-10.png

    I figure the Assertion failures are sample loading issues but I'm not sure what the cause is.


  • administrators

    Yeah the interesting things are the „unknown function“ messages indicating that you try to call String methods on an undefined variable, hence the error message on the UI.

    Can you post every JS code path that accesses your external resources?



  • @christoph-hart Aha the only time I call those two functions is when loading presets, so maybe this is preset related... I'll try commenting out the line, rebuilding, and see if it works.



  • @d-healey Yep, works perfectly without that line. I shall investigate further. Thanks for the tip.


Log in to reply
 

0
Online

315
Users

919
Topics

6.0k
Posts

Looks like your connection to Forum was lost, please wait while we try to reconnect.