Permalink
Browse files

Fix build under Mac OS X

Can be built, but looks kinda horrible.
What to do:
* Download Xcode from that Apple store or what
* Open Xcode. XCode->Preferences->Downloads->Install "Console tools".
  That is just the worst name for GCC ever.
* Download and install Qt framework
* add qt to your PATH, eg. export PATH=$PATH:/Users/some/QtSDK/Desktop/blahblah/bin
* download SDL source from http://www.libsdl.org/download-1.2.php
* ./configure && make && make install in SDL source
* qmake CONFIG+=release && make && make install in Lorris source
  • Loading branch information...
Tasssadar committed Jun 3, 2012
1 parent 7209837 commit 20b3dc2a75e7d959de9ac639638c2a5a38020ba9
Showing with 14 additions and 4 deletions.
  1. +1 −1 dep/SDL/include/SDL_main.h
  2. +3 −1 dep/qextserialport/config.pri
  3. +1 −1 src/joystick/joymgr.h
  4. +1 −1 src/pch.h
  5. +8 −0 src/src.pro
@@ -51,7 +51,7 @@
* }
* @endcode
*/
#ifndef USING_PCH
#if !defined USING_PCH && !defined(Q_OS_MAC)
#define main SDL_main
#endif
@@ -8,4 +8,6 @@
QEXTSERIALPORT_LIBRARY = yes
# uncomment the following line too if you want to use it as static library
QEXTSERIALPORT_STATIC = yes
unix:!macx {
QEXTSERIALPORT_STATIC = yes
}
View
@@ -12,7 +12,7 @@
#include <QMutex>
#include <QStringList>
#ifdef Q_OS_WIN
#if defined Q_OS_WIN || defined Q_OS_MAC
#include <SDL.h>
#else // use lib from OS on other systems
#include <SDL/SDL.h>
View
@@ -13,7 +13,7 @@
#include <QVBoxLayout>
#include <QHBoxLayout>
#ifdef Q_OS_WIN
#if defined Q_OS_WIN || defined Q_OS_MAC
#include <SDL.h>
#else // use lib from OS on other systems
#include <SDL/SDL.h>
View
@@ -230,13 +230,21 @@ unix:!macx:!symbian {
INSTALLS += target translations
}
macx {
INCLUDEPATH += ../dep/SDL/include
LIBS += -lqwt_lorris -lqextserialport -lSDL -lqextserialport
QMAKE_POST_LINK = mkdir \
"$$DESTDIR/translations" 2> /dev/null \
; \
cp \
translations/*.qm \
"$$DESTDIR/translations/ 2> /dev/null"
translations.path = /usr/share/lorris/
translations.files = ../translations/Lorris.*.qm
qext.path = /usr/lib/
qext.files = ../dep/qextserialport/lib/libqextserialport.*
target.path = /Applications/
INSTALLS += target translations qext
}
FORMS += \

0 comments on commit 20b3dc2

Please sign in to comment.