o compiles now for mac but crashes

This commit is contained in:
David Voswinkel
2009-05-12 22:15:09 +02:00
parent 091b82a7ef
commit 7a878eab39
6 changed files with 90 additions and 42 deletions

View File

@@ -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

View File

@@ -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