Skip to content

Commit

Permalink
Linux update
Browse files Browse the repository at this point in the history
  • Loading branch information
kibsoft committed Jun 26, 2013
1 parent e56ffbc commit 1f4ece6
Show file tree
Hide file tree
Showing 31 changed files with 158 additions and 19 deletions.
8 changes: 6 additions & 2 deletions examples/CameraExample/CameraExample.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ TEMPLATE = app
INCLUDEPATH += ../../include

greaterThan(QT_MAJOR_VERSION, 4) {
LIBS += -L../../libsQt5
LIBS += -L../../libsQt5
} else {
LIBS += -L../../libsQt4
LIBS += -L../../libsQt4
}

unix {
DEFINES += QTMEL_NOT_INSTALLED
}

CONFIG(debug, debug|release) {
Expand Down
5 changes: 3 additions & 2 deletions examples/EncoderExample/EncoderExample.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ TEMPLATE = app
INCLUDEPATH += ../../include

greaterThan(QT_MAJOR_VERSION, 4) {
LIBS += -L../../libsQt5
LIBS += -L../../libsQt5
} else {
LIBS += -L../../libsQt4
LIBS += -L../../libsQt4
}


unix {
DEFINES += QTMEL_NOT_INSTALLED
LIBS += -lpthread -lX11
QMAKE_CXXFLAGS += -std=c++0x
}
Expand Down
13 changes: 12 additions & 1 deletion include/AbstractGrabber
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
#include "../src/grabbers/abstractgrabber.h"
#if QT_VERSION >= 0x050000
#define CONDITION defined(Q_OS_WIN) || (defined(Q_OS_LINUX) && defined(QTMEL_NOT_INSTALLED))
#else
#define CONDITION defined(Q_WS_WIN) || (defined(Q_WS_X11) && defined(QTMEL_NOT_INSTALLED))
#endif

#if CONDITION
#include "../src/grabbers/abstractgrabber.h"
#else
#include "./src/grabbers/abstractgrabber.h"
#endif

14 changes: 13 additions & 1 deletion include/AbstractImageGrabber
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
#include "../src/grabbers/image/abstractimagegrabber.h"
#if QT_VERSION >= 0x050000
#define CONDITION defined(Q_OS_WIN) || (defined(Q_OS_LINUX) && defined(QTMEL_NOT_INSTALLED))
#else
#define CONDITION defined(Q_WS_WIN) || (defined(Q_WS_X11) && defined(QTMEL_NOT_INSTALLED))
#endif

#if CONDITION
#include "../src/grabbers/image/abstractimagegrabber.h"
#else
#include "./src/grabbers/image/abstractimagegrabber.h"
#endif


12 changes: 11 additions & 1 deletion include/AudioCodecSettings
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
#include "../src/encoder/audiocodecsettings.h"
#if QT_VERSION >= 0x050000
#define CONDITION defined(Q_OS_WIN) || (defined(Q_OS_LINUX) && defined(QTMEL_NOT_INSTALLED))
#else
#define CONDITION defined(Q_WS_WIN) || (defined(Q_WS_X11) && defined(QTMEL_NOT_INSTALLED))
#endif

#if CONDITION
#include "../src/encoder/audiocodecsettings.h"
#else
#include "./src/encoder/audiocodecsettings.h"
#endif
12 changes: 11 additions & 1 deletion include/AudioGrabber
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
#include "../src/grabbers/audio/audiograbber.h"
#if QT_VERSION >= 0x050000
#define CONDITION defined(Q_OS_WIN) || (defined(Q_OS_LINUX) && defined(QTMEL_NOT_INSTALLED))
#else
#define CONDITION defined(Q_WS_WIN) || (defined(Q_WS_X11) && defined(QTMEL_NOT_INSTALLED))
#endif

#if CONDITION
#include "../src/grabbers/audio/audiograbber.h"
#else
#include "./src/grabbers/audio/audiograbber.h"
#endif
12 changes: 11 additions & 1 deletion include/CameraGrabber
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
#include "../src/grabbers/image/cameragrabber.h"
#if QT_VERSION >= 0x050000
#define CONDITION defined(Q_OS_WIN) || (defined(Q_OS_LINUX) && defined(QTMEL_NOT_INSTALLED))
#else
#define CONDITION defined(Q_WS_WIN) || (defined(Q_WS_X11) && defined(QTMEL_NOT_INSTALLED))
#endif

#if CONDITION
#include "../src/grabbers/image/cameragrabber.h"
#else
#include "./src/grabbers/image/cameragrabber.h"
#endif
12 changes: 11 additions & 1 deletion include/Encoder
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
#include "../src/encoder/encoder.h"
#if QT_VERSION >= 0x050000
#define CONDITION defined(Q_OS_WIN) || (defined(Q_OS_LINUX) && defined(QTMEL_NOT_INSTALLED))
#else
#define CONDITION defined(Q_WS_WIN) || (defined(Q_WS_X11) && defined(QTMEL_NOT_INSTALLED))
#endif

#if CONDITION
#include "../src/encoder/encoder.h"
#else
#include "./src/encoder/encoder.h"
#endif
12 changes: 11 additions & 1 deletion include/EncoderGlobal
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
#include "../src/encoder/encoderglobal.h"
#if QT_VERSION >= 0x050000
#define CONDITION defined(Q_OS_WIN) || (defined(Q_OS_LINUX) && defined(QTMEL_NOT_INSTALLED))
#else
#define CONDITION defined(Q_WS_WIN) || (defined(Q_WS_X11) && defined(QTMEL_NOT_INSTALLED))
#endif

#if CONDITION
#include "../src/encoder/encoderglobal.h"
#else
#include "./src/encoder/encoderglobal.h"
#endif
12 changes: 11 additions & 1 deletion include/Recorder
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
#include "../src/helpers/recorder.h"
#if QT_VERSION >= 0x050000
#define CONDITION defined(Q_OS_WIN) || (defined(Q_OS_LINUX) && defined(QTMEL_NOT_INSTALLED))
#else
#define CONDITION defined(Q_WS_WIN) || (defined(Q_WS_X11) && defined(QTMEL_NOT_INSTALLED))
#endif

#if CONDITION
#include "../src/helpers/recorder.h"
#else
#include "./src/helpers/recorder.h"
#endif
12 changes: 11 additions & 1 deletion include/ScreenGrabber
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
#include "../src/grabbers/image/screengrabber.h"
#if QT_VERSION >= 0x050000
#define CONDITION defined(Q_OS_WIN) || (defined(Q_OS_LINUX) && defined(QTMEL_NOT_INSTALLED))
#else
#define CONDITION defined(Q_WS_WIN) || (defined(Q_WS_X11) && defined(QTMEL_NOT_INSTALLED))
#endif

#if CONDITION
#include "../src/grabbers/image/screengrabber.h"
#else
#include "./src/grabbers/image/screengrabber.h"
#endif
12 changes: 11 additions & 1 deletion include/VideoCodecSettings
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
#include "../src/encoder/videocodecsettings.h"
#if QT_VERSION >= 0x050000
#define CONDITION defined(Q_OS_WIN) || (defined(Q_OS_LINUX) && defined(QTMEL_NOT_INSTALLED))
#else
#define CONDITION defined(Q_WS_WIN) || (defined(Q_WS_X11) && defined(QTMEL_NOT_INSTALLED))
#endif

#if CONDITION
#include "../src/encoder/videocodecsettings.h"
#else
#include "./src/encoder/videocodecsettings.h"
#endif
39 changes: 35 additions & 4 deletions qtmel.pro
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CONFIG(debug, debug|release) {
TARGET = qtmel
}

INCLUDEPATH += $$(FFMPEG_INCLUDE_PATH) $$(OPENCV_INCLUDE_PATH) ./include/rtaudio/
INCLUDEPATH += $$(FFMPEG_INCLUDE_PATH) $$(OPENCV_INCLUDE_PATH) ./src/3rdparty/RtAudio/include
LIBS += -L$$(FFMPEG_LIBRARY_PATH) -L$$(OPENCV_LIBRARY_PATH)

win32 {
Expand Down Expand Up @@ -60,6 +60,37 @@ unix {
-lavutil \
-lopencv_highgui \
-lasound

#make install
headers1.files = ./src/grabbers/image/*.h
headers1.path = /usr/local/include/src/grabbers/image

headers2.files = ./src/grabbers/audio/*.h
headers2.path = /usr/local/include/src/grabbers/audio

headers3.files = ./src/grabbers/*.h
headers3.path = /usr/local/include/src/grabbers

headers4.files = ./src/encoder/*.h
headers4.path = /usr/local/include/src/encoder

headers5.files = ./src/helpers/*.h
headers5.path = /usr/local/include/src/helpers

headers6.files = ./src/*.h
headers6.path = /usr/local/include/src

headers7.files = ./include/*
headers7.path = /usr/local/include

greaterThan(QT_MAJOR_VERSION, 4) {
libs.files = ./libsQt5/*
} else {
libs.files = ./libsQt4/*
}
libs.path = /usr/local/lib

INSTALLS += headers1 headers2 headers3 headers4 headers5 headers6 headers7 libs
}

SOURCES += src/grabbers/abstractgrabber.cpp \
Expand All @@ -71,7 +102,7 @@ SOURCES += src/grabbers/abstractgrabber.cpp \
src/grabbers/audio/audiograbber.cpp \
src/encoder/audiocodecsettings.cpp \
src/grabbers/image/cameragrabber.cpp \
src/3rdparty/RtAudio.cpp \
src/3rdparty/RtAudio/RtAudio.cpp \
src/helpers/recorder.cpp \
src/helpers/audiotimer.cpp

Expand All @@ -87,7 +118,7 @@ HEADERS += src/grabbers/abstractgrabber.h\
src/grabbers/audio/audiograbber.h \
src/encoder/audiocodecsettings.h \
src/grabbers/image/cameragrabber.h \
src/3rdparty/RtError.h \
src/3rdparty/RtAudio.h \
src/3rdparty/RtAudio/RtError.h \
src/3rdparty/RtAudio/RtAudio.h \
src/helpers/recorder.h \
src/helpers/audiotimer.h
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/grabbers/audio/audiograbber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
****************************************************************************/

#include "audiograbber.h"
#include "../../3rdparty/RtAudio.h"
#include "../../3rdparty/RtAudio/RtAudio.h"

int handleData(void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames,
double streamTime, RtAudioStreamStatus status, void *data)
Expand Down

0 comments on commit 1f4ece6

Please sign in to comment.