Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need installation guide for macOS. #9

Open
AllenDang opened this issue Feb 25, 2018 · 6 comments
Open

Need installation guide for macOS. #9

AllenDang opened this issue Feb 25, 2018 · 6 comments

Comments

@AllenDang
Copy link

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?

@kitech
Copy link
Owner

kitech commented Feb 25, 2018

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

@AllenDang
Copy link
Author

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

@kitech
Copy link
Owner

kitech commented Feb 26, 2018

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

@AllenDang
Copy link
Author

Any progress?

@kitech
Copy link
Owner

kitech commented Mar 20, 2018

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.

@shayneoneill
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants