Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build errors #301

Open
elanhickler opened this issue Apr 11, 2020 · 1 comment
Open

build errors #301

elanhickler opened this issue Apr 11, 2020 · 1 comment

Comments

@elanhickler
Copy link
Contributor

elanhickler commented Apr 11, 2020


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
Copy link
Owner

RobinSchmidt commented Apr 22, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants