Need installation guide for macOS.
AllenDang opened this issue · 6 comments
Can you please provide a installation guide for macOS?
I installed qt 5.10, download the prebuild libQt5Inline.dylib and put it to /usr/local/lib. But still cannot run the simple example code.
Error message says it cannot find lots of qt5 dylib files.
What do I miss?
what output?
where did you qt installation? qt installed with brew not in system directory as i know.
if you already compiled the example go app, try command like this:
LD_LIBRARY_PATH=/usr/local/opt/qt/lib ./button
I set the LD_LIBRARY_PATH to the lib directory, but error still there.
LD_LIBRARY_PATH=/Users/judy/Qt5.10.0/5.10.0/clang_64/lib ./goqt
2018/02/26 20:20:36 dl: dlopen(libQt5Core.dylib, 2): image not found {handle:{c:}}
2018/02/26 20:20:36 dl: dlopen(libQt5Gui.dylib, 2): image not found {handle:{c:}}
2018/02/26 20:20:36 dl: dlopen(libQt5Widgets.dylib, 2): image not found {handle:{c:}}
2018/02/26 20:20:36 dl: dlopen(libQt5Network.dylib, 2): image not found {handle:{c:}}
2018/02/26 20:20:36 dl: dlopen(libQt5Inline.dylib, 2): Library not loaded: /usr/local/opt/qt/lib/QtQuickControls2.framework/Versions/5/QtQuickControls2
Referenced from: /Users/judy/Desktop/qttest/libQt5Inline.dylib
Reason: image not found {handle:{c:}}
2018/02/26 20:20:36 dl: dlopen(libQt5Qml.dylib, 2): image not found {handle:{c:}}
2018/02/26 20:20:36 dl: dlopen(libQt5Quick.dylib, 2): image not found {handle:{c:}}
2018/02/26 20:20:36 dl: dlopen(libQt5QuickControls2.dylib, 2): image not found {handle:{c:}}
2018/02/26 20:20:36 dl: dlopen(libQt5QuickWidgets.dylib, 2): image not found {handle:{c:}}
it's very different with linux than what i think.
seems you install from office package, but i build with brew installed qt.
i need a macos system for debug that really.
or build a static libQt5Inline.dylib
Any progress?
add a simple install and CI auto tests, it's works fine
https://github.com/kitech/qt.go/blob/master/install.md
-
the CI tests use Qt from brew, can you try it?
-
can you help me push a macos installed qt lib to a git repo https://github.com/qtchina/somename, so i can use in CI auto tests. i have no mac os, and can not install qt .dmg.
last, update qt.go repo to newest.
BUMP. Any chance for a build for ARM64/ Mac M1 architecture.
I havent been able to get the inline qt compiling at all on my machine (It explodes in flames when I try to make it after the cmake step) so a prebuilt binary would be appropriate.