RobinSchmidt / RS-MET

Codebase for RS-MET products (Robin Schmidt's Music Engineering Tools)
Other
56 stars 6 forks source link

build errors #301

Open elanhickler opened 4 years ago

elanhickler commented 4 years ago

Error   C3246   'jura::ColourizableBitmap': cannot inherit from 'juce::Image' as it has been declared as 'final'
(compiling source file ..\..\JuceLibraryCode\include_se_framework.cpp)
SeSALT_App  F:\(MEDIA DRIVE)\_PROGRAMMING\RS-MET\Libraries\RobsJuceModules\jura_framework\gui\graphics\jura_ColourizableBitmap.h    11  

Error   C2440   'initializing': cannot convert from 'std::unique_ptr<juce::XmlElement,std::default_delete<juce::XmlElement>>' to 'juce::XmlElement *'
(compiling source file ..\..\JuceLibraryCode\include_jura_framework.cpp)
SeSALT_App  F:\(MEDIA DRIVE)\_PROGRAMMING\RS-MET\Libraries\RobsJuceModules\jura_framework\tools\jura_XmlTools.cpp   12  

how do you solve?

RobinSchmidt commented 4 years ago

have you updated juce? in the juce copy in my repo, there's a file JuceTweaks.txt where it says:

To make it work, i had to tweak/hack the juce library a bit:

-juce_Image.h: removed "final" declaration from class

this is because i need to inherit from juce::Image for my pixel fonts. they added that "final" declaration long after i inherited from juce::Image - so when i inherited from image, it still was "legal" to do so. so the quick and dirty fix was to just hack away this (new) final declaration.