falkTX / Carla

Audio plugin host
https://kx.studio/carla
1.62k stars 146 forks source link

Carla fails to compile on Fedora 36 #1621

Open ryanpg123 opened 2 years ago

ryanpg123 commented 2 years ago
Compiling juce_gui_basics.cpp In file included from juce_gui_basics.cpp:265: native/x11/juce_linux_XWindowSystem.cpp: In member function ‘juce::BorderSize juce::XWindowSystem::getBorderSize(Window) const’: native/x11/juce_linux_XWindowSystem.cpp:1599:42: error: aggregate ‘std::array<long unsigned int, 4> sizes’ has incomplete type and cannot be defined 1599 std::array<unsigned long, 4> sizes; ^~~~~ native/x11/juce_linux_XWindowSystem.cpp:1607:85: error: could not convert ‘{, , , }’ from ‘’ to ‘juce::BorderSize’ 1607 return { (int) sizes[2], (int) sizes[0], (int) sizes[3], (int) sizes[1] }; ^
native/x11/juce_linux_XWindowSystem.cpp: In function ‘juce::Rectangle juce::getWorkArea(const XWindowSystemUtilities::GetXProperty&)’: native/x11/juce_linux_XWindowSystem.cpp:2181:29: error: aggregate ‘std::array<long int, 4> position’ has incomplete type and cannot be defined 2181 std::array<long, 4> position; ^~~~ native/x11/juce_linux_XWindowSystem.cpp:2190:55: error: could not convert ‘{, , , }’ from ‘’ to ‘juce::Rectangle’ 2190 (int) position[2], (int) position[3] }; ^

In file included from juce_gui_basics.cpp:269: native/juce_linux_FileChooser.cpp: In static member function ‘static juce::FileChooser::Pimpl juce::FileChooser::showPlatformDialog(juce::FileChooser&, int, juce::FilePreviewComponent)’: native/juce_linux_FileChooser.cpp:257:67: warning: unused parameter ‘owner’ [-Wunused-parameter] 257 | FileChooser::Pimpl FileChooser::showPlatformDialog (FileChooser& owner, int flags, FilePreviewComponent) | ~~~^~~ native/juce_linux_FileChooser.cpp:257:78: warning: unused parameter ‘flags’ [-Wunused-parameter] 257 | FileChooser::Pimpl FileChooser::showPlatformDialog (FileChooser& owner, int flags, FilePreviewComponent) | ~~^~~ native/x11/juce_linux_XWindowSystem.cpp: At global scope: native/x11/juce_linux_XWindowSystem.cpp:915:19: warning: ‘double juce::DisplayHelpers::getDisplayScale(const juce::String&, double)’ defined but not used [-Wunused-function] 915 | static double getDisplayScale (const String& name, double dpi) | ^~~~~~~ make[1]: [Makefile:91: ../../../build/juce_gui_basics/Release/juce_gui_basics.cpp.o] Error 1 make[1]: Leaving directory '/home/ryanpg/src/Carla/source/modules/juce_gui_basics' make: [Makefile:168: /home/ryanpg/src/Carla/build/modules/Release/juce_gui_basics.a] Error 2

ryanpg123 commented 2 years ago

Works with a pull on June 26, 2022