Compilation fixes under Embedded Linux (for ARM) envvironment.

Needed to properly compile GoldenDict for Kindle eInk readers.
This commit is contained in:
Vladimir Sizikov 2012-12-04 09:21:13 +01:00
parent 2836b66d54
commit 28b96427ac
4 changed files with 9 additions and 6 deletions

View file

@ -66,8 +66,11 @@ unix:!mac {
vorbis \
ogg \
hunspell
LIBS += -lX11 \
-lXtst
arm {
LIBS += -liconv
} else {
LIBS += -lX11 -lXtst
}
PREFIX = $$(PREFIX)
isEmpty( PREFIX ):PREFIX = /usr/local
DEFINES += PROGRAM_DATA_DIR=\\\"$$PREFIX/share/apps/goldendict/\\\"

View file

@ -65,7 +65,7 @@ HotkeyStruct::HotkeyStruct( quint32 key_, quint32 key2_, quint32 modifier_,
//////////////////////////////////////////////////////////////////////////
#ifndef Q_WS_MAC
#if !defined(Q_OS_MAC) && !defined(Q_WS_QWS)
HotkeyWrapper::HotkeyWrapper(QObject *parent) : QThread( parent ),
state2(false)
{

View file

@ -32,7 +32,7 @@ struct HotkeyStruct
//////////////////////////////////////////////////////////////////////////
#ifndef Q_OS_MAC
#if !defined(Q_OS_MAC) && !defined(Q_WS_QWS)
class HotkeyWrapper : public QThread // Thread is actually only used on X11
{
Q_OBJECT

View file

@ -6,7 +6,7 @@
#ifdef Q_OS_WIN32
#include <windows.h>
#else
#elif defined(Q_WS_X11)
#include <QX11Info>
#include <X11/X.h>
#include <X11/XKBlib.h>
@ -14,7 +14,7 @@
bool KeyboardState::checkModifiersPressed( int mask )
{
#ifdef Q_OS_MAC
#if defined(Q_OS_MAC) || defined(Q_WS_QWS)
return false;
#elif defined Q_OS_WIN32