Unable to do static build from Qt source on MAC
-
Hi,
There's absolutely no requirements for a static build of Qt on macOS.
macdeployqt
was created to fix your application bundle with the various frameworks your application needs.As for your error, what version of MySQL are you using to build the plugin ?
-
Since the build is failing for the MySQL plugin, you likely have it somewhere
configure
found. -
i will check on that in a bit.
I have since borrowed another Mac and tried to compile same Qt version statically.
And I got different errors. Do you know what this one is about?
-- Errors --
orm/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I../../../../mkspecs/macx-clang -o .obj/debug/qcocoawindow.o qcocoawindow.mm
qcocoawindow.mm:407:59: error: use of undeclared identifier 'NSEventTypeMouseMoved'; did you mean 'kEventMouseMoved'?
const auto button = e.type == NSEventTypeMouseMoved ? Qt::NoButton : cocoaButton2QtButton([e buttonNumber]);
^~~~~~~~~~~~~~~~~~~~~
kEventMouseMoved
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEvents.h:1721:3: note:
'kEventMouseMoved' declared here
kEventMouseMoved = 5
^
qcocoawindow.mm:408:62: error: use of undeclared identifier 'NSEventTypeMouseMoved'; did you mean 'kEventMouseMoved'?
const auto eventType = e.type == NSEventTypeMouseMoved ? QEvent::MouseMove : QEvent::MouseButtonPress;
^~~~~~~~~~~~~~~~~~~~~
kEventMouseMoved -
What version of Xcode are you using ?
-
You are going to have to update. That version of Xcode is too old to build such a recent version of Qt. Or at least the platform plugin part.
-
Since the build is failing for the MySQL plugin, you likely have it somewhere
configure
found. -
Current version if macOS Mojave.
-
IIRC, you need Qt 5.12. MySQL removed the use of the my_bool type at some point. The plugin has been updated.
-
IIRC, you need Qt 5.12. MySQL removed the use of the my_bool type at some point. The plugin has been updated.
-
Your MySQL is not outdated as the current version is 8.0.13.
As for Xcode, the current version is 10.1 IIRC.