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

qarma works on mac os sierra! #15

Closed
maz-1 opened this issue Feb 2, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@maz-1
Copy link

commented Feb 2, 2017

snip20170202_2

@maz-1

This comment has been minimized.

Copy link
Author

commented Feb 2, 2017

This is what you have to do:
1.Install Xcode. Build static qt5 ( http://wohlsoft.ru/pgewiki/Building_static_Qt_5 )
2.Modify PATH to include qmake from static qt5 build
3.Open qarma.pro, remove all X11 related things
4.Run "qmake qarma.pro && make" from source tree
5.There should be qarma.app after make. You can copy qarma.app/Contents/MacOS/qarma to /usr/local/bin for better shell script integration

So finally we have a good zenity-compatible implemention under mac os ( zenity can be installed from homebrew, but like other gtk apps, it requies xquartz )

@luebking

This comment has been minimized.

Copy link
Owner

commented Feb 13, 2017

I'm kinda stunned there's zenity/qarma usage on OSX at all ;-)
Can you try whether this patch builds a makefile that works out of the box?

diff --git a/qarma.pro b/qarma.pro
index ebd0327..d6b745b 100644
--- a/qarma.pro
+++ b/qarma.pro
@@ -1,10 +1,11 @@
 HEADERS = Qarma.h
 SOURCES = Qarma.cpp
-QT      += dbus gui widgets x11extras
+QT      += dbus gui widgets
+unix:QT += x11extras
 TARGET  = qarma
 
-LIBS    += -lX11
-DEFINES += WS_X11
+unix:LIBS    += -lX11
+unix:DEFINES += WS_X11
 
 target.path += /usr/bin
 INSTALLS += target
@maz-1

This comment has been minimized.

Copy link
Author

commented Feb 14, 2017

Nope, But this works

diff --git a/qarma.pro b/qarma.pro
index ebd0327..d6b745b 100644
--- a/qarma.pro
+++ b/qarma.pro
@@ -1,10 +1,11 @@
 HEADERS = Qarma.h
 SOURCES = Qarma.cpp
-QT      += dbus gui widgets x11extras
+QT      += dbus gui widgets
+unix:!macx:QT += x11extras
 TARGET  = qarma
 
-LIBS    += -lX11
-DEFINES += WS_X11
+unix:!macx:LIBS    += -lX11
+unix:!macx:DEFINES += WS_X11
 
 target.path += /usr/bin
 INSTALLS += target

See here : http://stackoverflow.com/questions/18462420/how-to-specify-mac-platform-in-qmake-qtcreator

@luebking luebking closed this in 70dcb9d Feb 14, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.