o compiles now for mac but crashes
This commit is contained in:
@@ -4,13 +4,28 @@
|
||||
|
||||
objects := main $(if $(call streq,$(platform),win),resource) $(objects)
|
||||
|
||||
moc = moc-qt4
|
||||
rcc = rcc
|
||||
ifeq ($(platform),mac)
|
||||
moc = moc
|
||||
rcc = rcc
|
||||
link +=-F/Developer/SDKs/Qt/lib \
|
||||
-L/Developer/SDKs/Qt/lib \
|
||||
-framework QtOpenGL \
|
||||
-framework QtGui \
|
||||
-framework Carbon \
|
||||
-framework AppKit \
|
||||
-framework QtCore
|
||||
qtflags= -I/Developer/SDKs/Qt/include/ \
|
||||
-I/Developer/SDKs/Qt/include/Qt \
|
||||
-I/Developer/SDKs/Qt/include/QtCore \
|
||||
-I/Developer/SDKs/Qt/include/QtGui
|
||||
|
||||
endif
|
||||
ifeq ($(platform),x) # X11
|
||||
link += $(call mklib,Xtst)
|
||||
link += `pkg-config --libs QtCore QtGui`
|
||||
qtflags = `pkg-config --cflags QtCore QtGui`
|
||||
moc = moc-qt4
|
||||
rcc = rcc
|
||||
link += $(call mklib,Xtst)
|
||||
link += `pkg-config --libs QtCore QtGui`
|
||||
qtflags = `pkg-config --cflags QtCore QtGui`
|
||||
else ifeq ($(platform),win) # Windows
|
||||
qtdir = c:/qt450
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
//keycode of 255 does not map to any actual key,
|
||||
//but it will block screensaver and power management.
|
||||
Display *display = XOpenDisplay(0);
|
||||
XTestFakeKeyEvent(display, 255, True, 0);
|
||||
XTestFakeKeyEvent(display, 255, False, 0);
|
||||
//XTestFakeKeyEvent(display, 255, True, 0);
|
||||
//XTestFakeKeyEvent(display, 255, False, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user