qt.go icon indicating copy to clipboard operation
qt.go copied to clipboard

Need installation guide for macOS.

Open AllenDang opened this issue 7 years ago • 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?

AllenDang avatar Feb 25 '18 13:02 AllenDang

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

kitech avatar Feb 25 '18 14:02 kitech

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:}}

AllenDang avatar Feb 26 '18 12:02 AllenDang

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

kitech avatar Feb 26 '18 13:02 kitech

Any progress?

AllenDang avatar Mar 18 '18 13:03 AllenDang

add a simple install and CI auto tests, it's works fine https://github.com/kitech/qt.go/blob/master/install.md

  1. the CI tests use Qt from brew, can you try it?

  2. 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.

kitech avatar Mar 20 '18 04:03 kitech

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.

shayneoneill avatar Dec 08 '22 09:12 shayneoneill