Latest tip and VST issues

5 posts / 0 new
Last post
atom
Offline
Last seen: 3 days 4 hours ago
Joined: 15 Feb 2007 - 10:36
Latest tip and VST issues


Compiling juce_audio_processors.cpp
In file included from ../../../../modules/juce_audio_processors/juce_audio_processors.cpp:73:0:
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:1866:40: warning: multi-character character constant [-Wmultichar]
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:1866:78: warning: multi-character character constant [-Wmultichar]
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:1887:40: warning: multi-character character constant [-Wmultichar]
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:1887:80: warning: multi-character character constant [-Wmultichar]
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:1891:36: warning: multi-character character constant [-Wmultichar]
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:1927:41: warning: multi-character character constant [-Wmultichar]
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:1932:44: warning: multi-character character constant [-Wmultichar]
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:1940:41: warning: multi-character character constant [-Wmultichar]
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:1940:78: warning: multi-character character constant [-Wmultichar]
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:1950:41: warning: multi-character character constant [-Wmultichar]
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:1950:78: warning: multi-character character constant [-Wmultichar]
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:1975:34: warning: multi-character character constant [-Wmultichar]
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:1977:31: warning: multi-character character constant [-Wmultichar]
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:2005:41: warning: multi-character character constant [-Wmultichar]
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:2007:38: warning: multi-character character constant [-Wmultichar]
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:2022:41: warning: multi-character character constant [-Wmultichar]
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:2024:38: warning: multi-character character constant [-Wmultichar]
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:2044:41: warning: multi-character character constant [-Wmultichar]
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:2046:38: warning: multi-character character constant [-Wmultichar]
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:1214:28: error: expected ‘)’
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:1214:22: error: expected ‘;’ at end of member declaration
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:1214:34: error: expected unqualified-id before numeric constant
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp: In member function ‘void juce::VSTPluginWindow::openPluginWindow()’:
../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp:1469:108: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
In file included from ../../../../modules/juce_audio_processors/juce_audio_processors.cpp:77:0:
../../../../modules/juce_audio_processors/scanning/juce_PluginListComponent.cpp: In member function ‘void juce::PluginListComponent::scanFor(juce::AudioPluginFormat*)’:
../../../../modules/juce_audio_processors/scanning/juce_PluginListComponent.cpp:239:49: error: expected ‘)’ before ‘::’ token
../../../../modules/juce_audio_processors/scanning/juce_PluginListComponent.cpp:240:51: error: expected ‘)’ before ‘::’ token
../../../../modules/juce_audio_processors/scanning/juce_PluginListComponent.cpp:259:47: error: expected ‘)’ before ‘::’ token
make: *** [build/intermediate/Debug/juce_audio_processors_eb9ae116.o] Error 1

This looks like problems with the KeyPress class, i tried adding the juce:: namespace but that causes
error: expected unqualified-id before numeric constant

is there a conflict with some other KeyPress class from Xorg or somewhere or is it some other error ?
--------------------------- Ctrlr - http://ctrlr.org ---------------------------
jules
Offline
Last seen: 9 hours 10 min ago
Joined: 29 Apr 2013 - 18:37
Re: Latest tip and VST issues

I don't actually do any linux plugin builds myself, so am relying on you lot to help out with stuff like this...

Yes, I think X does include a KeyPress definition, but I'd have thought that explicitly specifying juce::KeyPress and maybe adding an #undef KeyPress should sort out any ambiguities?

atom
Offline
Last seen: 3 days 4 hours ago
Joined: 15 Feb 2007 - 10:36
Re: Latest tip and VST issues

Yup adding #undef KeyPress in modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp helped.

--------------------------- Ctrlr - http://ctrlr.org ---------------------------
jules
Offline
Last seen: 9 hours 10 min ago
Joined: 29 Apr 2013 - 18:37
Re: Latest tip and VST issues

So is that the only change needed to make it compile ok?

And it'd be more appropriate to add the #undef after the X11 includes at line 58 of juce_audio_processors.cpp, right? In all the other places in the codebase where I include X11, I have a similar undef, but it looks like I missed that one.

atom
Offline
Last seen: 3 days 4 hours ago
Joined: 15 Feb 2007 - 10:36
Re: Latest tip and VST issues

yes i didn't add/change anything else just the #undef

--------------------------- Ctrlr - http://ctrlr.org ---------------------------