Open Birch-san opened 2 years ago
Same problem here. And it's i686, mingw 32bit, only. And I'm not using lvvm/clang.
@reuk https://github.com/juce-framework/JUCE/commit/f429647ae90a010550c453006f7f1170e74d5718 and https://github.com/juce-framework/JUCE/commit/640194c87857978c86fcc4f3a0a5f675e323435c didn't fix this.
I fixed it in my build with this crude patch:
kjetil@tt:~/radium/pluginhost$ git diff .
diff --git a/pluginhost/JuceLibraryCode/modules/juce_core/native/juce_win32_ComSmartPtr.h b/pluginhost/JuceLibraryCode/modules/juce_core/native/juce_win32_ComSmartPtr.h
index b1f4bcb97..edddc5c68 100644
--- a/pluginhost/JuceLibraryCode/modules/juce_core/native/juce_win32_ComSmartPtr.h
+++ b/pluginhost/JuceLibraryCode/modules/juce_core/native/juce_win32_ComSmartPtr.h
@@ -23,7 +23,7 @@
namespace juce
{
-#if (JUCE_MINGW && JUCE_32BIT) || (! defined (_MSC_VER) && ! defined (__uuidof))
+#if 0
#ifdef __uuidof
#undef __uuidof
#endif
For some reason, it didn't work just doing
- #if (JUCE_MINGW && JUCE_32BIT) || (! defined (_MSC_VER) && ! defined (__uuidof))
- #if JUCE_MINGW || (! defined (_MSC_VER) && ! defined (__uuidof))
Maybe the JUCE_32BIT macro isn't set properly in mingw?
(forget that last thing about the JUCE_32BIT macro. :-)
Detailed steps on how to reproduce the bug
Containerised repro using JUCE audio plugin example:
Note: we are using llvm-mingw 20211002 because there is an unrelated compilation failure (https://github.com/juce-framework/JUCE/issues/1028) on llvm-mingw 20220209.
The last JUCE version on which I was able to successfully cross-compile an audio plugin for x86, was JUCE 6.1.2. See https://github.com/juce-framework/JUCE/issues/985 for the problems with compiling
uuidof()
that have ensued since then. The issue I'm filing today is the latest incarnation of theuuidof()
problemIn x86 build only, we fail to compile
juce_gui_basics.cpp
, because of the template functionUUIDGetter
:What is the expected behaviour?
Successful compilation of x86 audio plugin.
Operating systems
Linux
What versions of the operating systems?
Ubuntu 22.04 cross-compiling for Windows 7 x86.
Architectures
32-bit
Stacktrace
Plug-in formats (if applicable)
No response
Plug-in host applications (DAWs) (if applicable)
No response
Testing on the
develop
branchI have not tested against the
develop
branchCode of Conduct