mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
Merged Sigysmund changes for Mac OS Sierra on v3.4.5
This commit is contained in:
commit
dafad384c8
62
ReadmeMacOS.md
Normal file
62
ReadmeMacOS.md
Normal file
@ -0,0 +1,62 @@
|
||||
# MacOS
|
||||
|
||||
## Prerequisites for OSX (Sierra):
|
||||
- Qt (used 5.6.2)
|
||||
- XCode with MacPorts
|
||||
- HackRF One
|
||||
|
||||
We are only covering HackRF One, since is only the hardware I own.
|
||||
|
||||
### Project dir structure:
|
||||
+ .
|
||||
+ build-sdrangel.macos-Desktop_Qt_5_6_2_clang_64bit-Release
|
||||
+ SDRangel/
|
||||
+ sdrangel
|
||||
+ deps
|
||||
+ dsdcc
|
||||
+ mbelib
|
||||
+ nanomsg
|
||||
+ boost_1_64_0/
|
||||
|
||||
### Environment preparation
|
||||
Boost 1.64: Download and unpack
|
||||
There are a few dependencies which can be installed through MacPorts:
|
||||
```
|
||||
sudo port install cmake hackrf-devel bladeRF rtl-sdr opencv
|
||||
```
|
||||
|
||||
Clone other libs to deps folder:
|
||||
|
||||
##### mbelib:
|
||||
```
|
||||
git clone https://github.com/szechyjs/mbelib.git
|
||||
|
||||
```
|
||||
|
||||
##### dsdcc:
|
||||
```
|
||||
git clone https://github.com/f4exb/dsdcc.git
|
||||
|
||||
```
|
||||
|
||||
##### nanomsg:
|
||||
```
|
||||
git clone https://github.com/nanomsg/nanomsg.git
|
||||
mkdir build && cd build
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/opt/local ..
|
||||
cmake --build . && sudo cmake --build . --target install
|
||||
```
|
||||
|
||||
## Build
|
||||
Release build configuration with QT Creator
|
||||
|
||||
## Deployment
|
||||
Go into release build directory, something like: ```build-sdrangel.macos-Desktop_Qt_***Release```
|
||||
and run deployment script:
|
||||
```../sdrangel/apple/deploy.sh```
|
||||
|
||||
## Run
|
||||
from build directory:
|
||||
```DYLD_LIBRARY_PATH=/opt/local/lib:.; ../MacOS/sdrangel```
|
||||
or
|
||||
```../sdrangel/apple/run.sh```
|
@ -60,6 +60,7 @@ int pthread_barrier_wait(pthread_barrier_t *barrier)
|
||||
/**
|
||||
* Missing POSIX RealTime/Monotonic Clock
|
||||
*/
|
||||
/*
|
||||
#include <mach/mach_time.h>
|
||||
|
||||
int clock_gettime(int clk_id, struct timespec *t) {
|
||||
@ -73,5 +74,5 @@ int clock_gettime(int clk_id, struct timespec *t) {
|
||||
t->tv_nsec = nseconds;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif // APPLE Compatibility
|
||||
*/
|
||||
#endif // APPLE Compatibility
|
@ -40,6 +40,4 @@ int pthread_barrier_wait(pthread_barrier_t *barrier);
|
||||
# define CLOCK_MONOTONIC 0
|
||||
#endif
|
||||
|
||||
int clock_gettime(int clk_id, struct timespec *t);
|
||||
|
||||
#endif // APPLE Compatibility
|
||||
#endif // APPLE Compatibility
|
33
apple/deploy.sh
Executable file
33
apple/deploy.sh
Executable file
@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Run from build directory
|
||||
test -d "app/sdrangel.app/Contents" || { echo "Please build first or chdir to proper folder!"; exit 1; }
|
||||
|
||||
APP_LIB="app/sdrangel.app/Contents/lib"
|
||||
APP_PLUGINS="${APP_LIB}/plugins"
|
||||
|
||||
mkdir -p "${APP_PLUGINS}/channeltx"
|
||||
mkdir -p "${APP_PLUGINS}/channelrx"
|
||||
mkdir -p "${APP_PLUGINS}/samplesink"
|
||||
mkdir -p "${APP_PLUGINS}/samplesource"
|
||||
|
||||
cp -v fcdhid/libfcdhid.dylib $APP_LIB
|
||||
cp -v fcdlib/libfcdlib.dylib $APP_LIB
|
||||
cp -v lz4/liblz4.dylib $APP_LIB
|
||||
cp -v mbelib/libmbelib.dylib $APP_LIB
|
||||
cp -v sdrbase/libsdrbase.dylib $APP_LIB
|
||||
cp -v devices/libdevices.dylib $APP_LIB
|
||||
cp -v dsdcc/libdsdcc.dylib $APP_LIB
|
||||
|
||||
for f in `find plugins/channelrx/ -name '*.dylib'`; do cp -v $f "${APP_PLUGINS}/channelrx/"; done
|
||||
for f in `find plugins/channeltx/ -name '*.dylib'`; do cp -v $f "${APP_PLUGINS}/channeltx/"; done
|
||||
for f in `find plugins/samplesink/ -name '*.dylib'`; do cp -v $f "${APP_PLUGINS}/samplesink/"; done
|
||||
for f in `find plugins/samplesource/ -name '*.dylib'`; do cp -v $f "${APP_PLUGINS}/samplesource/"; done
|
||||
|
||||
cd $APP_LIB
|
||||
cp /opt/local/lib/libnanomsg.5.0.0.dylib .
|
||||
ln -s libdsdcc.dylib libdsdcc.1.dylib
|
||||
ln -s libdevices.dylib libdevices.1.dylib
|
||||
ln -s liblz4.dylib liblz4.1.dylib
|
||||
ln -s libsdrbase.dylib libsdrbase.1.dylib
|
||||
ln -s libmbelib.dylib libmbelib.1.dylib
|
6
apple/run.sh
Executable file
6
apple/run.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
test -d app/sdrangel.app/Contents || { echo "Please build first or chdir to proper folder!"; exit 1; }
|
||||
|
||||
cd app/sdrangel.app/Contents/lib
|
||||
DYLD_LIBRARY_PATH=/opt/local/lib:.; ../MacOS/sdrangel
|
@ -18,6 +18,7 @@ QMAKE_CXXFLAGS += -msse4.1
|
||||
|
||||
CONFIG(MINGW32):LIBBLADERFSRC = "D:\softs\bladeRF\host\libraries\libbladeRF\include"
|
||||
CONFIG(MINGW64):LIBBLADERFSRC = "D:\softs\bladeRF\host\libraries\libbladeRF\include"
|
||||
CONFIG(macx):LIBHACKRFSRC = "/opt/local/include"
|
||||
CONFIG(MINGW32):LIBHACKRFSRC = "D:\softs\hackrf\host"
|
||||
CONFIG(MINGW64):LIBHACKRFSRC = "D:\softs\hackrf\host"
|
||||
CONFIG(MINGW32):LIBLIMESUITESRC = "D:\softs\LimeSuite"
|
||||
@ -46,9 +47,10 @@ CONFIG(MINGW64)INCLUDEPATH += $$LIBLIMESUITESRC/external/cpp-feather-ini-parser
|
||||
CONFIG(Release):build_subdir = release
|
||||
CONFIG(Debug):build_subdir = debug
|
||||
|
||||
SOURCES += bladerf/devicebladerf.cpp\
|
||||
bladerf/devicebladerfvalues.cpp\
|
||||
hackrf/devicehackrf.cpp\
|
||||
!macx:SOURCES += bladerf/devicebladerf.cpp\
|
||||
bladerf/devicebladerfvalues.cpp
|
||||
|
||||
SOURCES += hackrf/devicehackrf.cpp\
|
||||
hackrf/devicehackrfvalues.cpp
|
||||
|
||||
CONFIG(MINGW64)SOURCES += limesdr/devicelimesdr.cpp\
|
||||
@ -56,10 +58,11 @@ CONFIG(MINGW64)SOURCES += limesdr/devicelimesdr.cpp\
|
||||
limesdr/devicelimesdrshared.cpp\
|
||||
sdrdaemon/sdrdaemonfecbuffer.cpp
|
||||
|
||||
HEADERS += bladerf/devicebladerf.h\
|
||||
!macx:HEADERS -= bladerf/devicebladerf.h\
|
||||
bladerf/devicebladerfparam.h\
|
||||
bladerf/devicebladerfvalues.h\
|
||||
hackrf/devicehackrf.h\
|
||||
bladerf/devicebladerfvalues.h
|
||||
|
||||
HEADERS += hackrf/devicehackrf.h\
|
||||
hackrf/devicehackrfparam.h\
|
||||
hackrf/devicehackrfvalues.h\
|
||||
|
||||
@ -73,3 +76,9 @@ LIBS += -L../libbladerf/$${build_subdir} -llibbladerf
|
||||
LIBS += -L../libhackrf/$${build_subdir} -llibhackrf
|
||||
CONFIG(MINGW64)LIBS += -L../cm256cc/$${build_subdir} -lcm256cc
|
||||
CONFIG(MINGW64)LIBS += -L../liblimesuite/$${build_subdir} -lliblimesuite
|
||||
|
||||
macx {
|
||||
LIBS -= -L../libbladerf/$${build_subdir} -llibbladerf
|
||||
LIBS -= -L../libhackrf/$${build_subdir} -llibhackrf
|
||||
LIBS += -L/opt/local/lib -lhackrf
|
||||
}
|
||||
|
@ -11,9 +11,11 @@ TARGET = dsdcc
|
||||
|
||||
CONFIG(MINGW32):LIBDSDCCSRC = "D:\softs\dsdcc"
|
||||
CONFIG(MINGW64):LIBDSDCCSRC = "D:\softs\dsdcc"
|
||||
CONFIG(macx):LIBDSDCCSRC = "../../deps/dsdcc"
|
||||
|
||||
CONFIG(MINGW32):LIBMBELIBSRC = "D:\softs\mbelib"
|
||||
CONFIG(MINGW64):LIBMBELIBSRC = "D:\softs\mbelib"
|
||||
CONFIG(macx):LIBMBELIBSRC = "../../deps/mbelib"
|
||||
|
||||
INCLUDEPATH += $$LIBDSDCCSRC
|
||||
INCLUDEPATH += $$LIBMBELIBSRC
|
||||
|
@ -1,13 +1,13 @@
|
||||
project(fcdhid)
|
||||
|
||||
set(fcdhid_SOURCES
|
||||
../apple_compat.c
|
||||
../apple/apple_compat.c
|
||||
hid-libusb.c
|
||||
fcdhid.c
|
||||
)
|
||||
|
||||
set(fcdhid_HEADERS
|
||||
../apple_compat.h
|
||||
../apple/apple_compat.h
|
||||
fcdhid.h
|
||||
hid-libusb.h
|
||||
hidapi.h
|
||||
|
@ -15,12 +15,17 @@ CONFIG(MINGW32):DEFINES += MINGW32=1
|
||||
CONFIG(MINGW64):INCLUDEPATH += "D:\softs\libusb-1.0.20\include"
|
||||
CONFIG(MINGW64):DEFINES += MINGW32=1
|
||||
|
||||
CONFIG(macx):INCLUDEPATH += "/opt/local/include"
|
||||
|
||||
SOURCES = $$PWD/hid-libusb.c\
|
||||
$$PWD/fcdhid.c
|
||||
|
||||
macx:SOURCES += ../apple/apple_compat.c
|
||||
|
||||
HEADERS = $$PWD/fcdhid.h\
|
||||
$$PWD/hid-libusb.h\
|
||||
$$PWD/hidapi.h
|
||||
|
||||
CONFIG(MINGW32):LIBS += -LD:\softs\libusb-1.0.20\MinGW32\dll -llibusb-1.0 -liconv
|
||||
CONFIG(MINGW64):LIBS += -LD:\softs\libusb-1.0.20\MinGW64\dll -llibusb-1.0 -liconv
|
||||
CONFIG(macx):LIBS += -L/opt/local/lib -lusb-1.0 -liconv
|
||||
|
@ -70,7 +70,7 @@ extern "C" {
|
||||
*/
|
||||
#ifdef __APPLE__
|
||||
|
||||
#include "../apple_compat.h"
|
||||
#include "../apple/apple_compat.h"
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -11,6 +11,7 @@ TARGET = mbelib
|
||||
|
||||
CONFIG(MINGW32):LIBMBELIBSRC = "D:\softs\mbelib"
|
||||
CONFIG(MINGW64):LIBMBELIBSRC = "D:\softs\mbelib"
|
||||
CONFIG(macx):LIBMBELIBSRC = "../../deps/mbelib"
|
||||
|
||||
INCLUDEPATH += $$LIBMBELIBSRC
|
||||
|
||||
|
@ -22,6 +22,7 @@ INCLUDEPATH += ../../../sdrbase
|
||||
CONFIG(ANDROID):INCLUDEPATH += /opt/softs/boost_1_60_0
|
||||
CONFIG(MINGW32):INCLUDEPATH += "D:\boost_1_58_0"
|
||||
CONFIG(MINGW64):INCLUDEPATH += "D:\boost_1_58_0"
|
||||
CONFIG(macx):INCLUDEPATH += "../../../../../boost_1_64_0"
|
||||
|
||||
CONFIG(Release):build_subdir = release
|
||||
CONFIG(Debug):build_subdir = debug
|
||||
|
@ -22,6 +22,7 @@ INCLUDEPATH += ../../../sdrbase
|
||||
CONFIG(ANDROID):INCLUDEPATH += /opt/softs/boost_1_60_0
|
||||
CONFIG(MINGW32):INCLUDEPATH += "D:\boost_1_58_0"
|
||||
CONFIG(MINGW64):INCLUDEPATH += "D:\boost_1_58_0"
|
||||
CONFIG(macx):INCLUDEPATH += "../../../../../boost_1_64_0"
|
||||
|
||||
CONFIG(Release):build_subdir = release
|
||||
CONFIG(Debug):build_subdir = debug
|
||||
|
@ -1,44 +1,45 @@
|
||||
#--------------------------------------------------------
|
||||
#
|
||||
# Pro file for Android and Windows builds with Qt Creator
|
||||
#
|
||||
#--------------------------------------------------------
|
||||
|
||||
TEMPLATE = lib
|
||||
CONFIG += plugin
|
||||
|
||||
QT += core gui widgets multimedia opengl
|
||||
|
||||
TARGET = demodatv
|
||||
|
||||
DEFINES += USE_SSE2=1
|
||||
QMAKE_CXXFLAGS += -msse2
|
||||
DEFINES += USE_SSE4_1=1
|
||||
QMAKE_CXXFLAGS += -msse4.1
|
||||
|
||||
INCLUDEPATH += $$PWD
|
||||
INCLUDEPATH += ../../../sdrbase
|
||||
|
||||
CONFIG(Release):build_subdir = release
|
||||
CONFIG(Debug):build_subdir = debug
|
||||
|
||||
CONFIG(MINGW32):INCLUDEPATH += "D:\boost_1_58_0"
|
||||
CONFIG(MINGW64):INCLUDEPATH += "D:\boost_1_58_0"
|
||||
|
||||
SOURCES += atvdemod.cpp\
|
||||
atvdemodgui.cpp\
|
||||
atvdemodplugin.cpp\
|
||||
atvscreen.cpp\
|
||||
glshaderarray.cpp
|
||||
|
||||
HEADERS += atvdemod.h\
|
||||
atvdemodgui.h\
|
||||
atvdemodplugin.h\
|
||||
atvscreen.h\
|
||||
glshaderarray.h
|
||||
|
||||
FORMS += atvdemodgui.ui
|
||||
|
||||
LIBS += -L../../../sdrbase/$${build_subdir} -lsdrbase
|
||||
|
||||
RESOURCES = ../../../sdrbase/resources/res.qrc
|
||||
#--------------------------------------------------------
|
||||
#
|
||||
# Pro file for Android and Windows builds with Qt Creator
|
||||
#
|
||||
#--------------------------------------------------------
|
||||
|
||||
TEMPLATE = lib
|
||||
CONFIG += plugin
|
||||
|
||||
QT += core gui widgets multimedia opengl
|
||||
|
||||
TARGET = demodatv
|
||||
|
||||
DEFINES += USE_SSE2=1
|
||||
QMAKE_CXXFLAGS += -msse2
|
||||
DEFINES += USE_SSE4_1=1
|
||||
QMAKE_CXXFLAGS += -msse4.1
|
||||
|
||||
INCLUDEPATH += $$PWD
|
||||
INCLUDEPATH += ../../../sdrbase
|
||||
|
||||
CONFIG(Release):build_subdir = release
|
||||
CONFIG(Debug):build_subdir = debug
|
||||
|
||||
CONFIG(MINGW32):INCLUDEPATH += "D:\boost_1_58_0"
|
||||
CONFIG(MINGW64):INCLUDEPATH += "D:\boost_1_58_0"
|
||||
CONFIG(macx):INCLUDEPATH += "../../../../../boost_1_64_0"
|
||||
|
||||
SOURCES += atvdemod.cpp\
|
||||
atvdemodgui.cpp\
|
||||
atvdemodplugin.cpp\
|
||||
atvscreen.cpp\
|
||||
glshaderarray.cpp
|
||||
|
||||
HEADERS += atvdemod.h\
|
||||
atvdemodgui.h\
|
||||
atvdemodplugin.h\
|
||||
atvscreen.h\
|
||||
glshaderarray.h
|
||||
|
||||
FORMS += atvdemodgui.ui
|
||||
|
||||
LIBS += -L../../../sdrbase/$${build_subdir} -lsdrbase
|
||||
|
||||
RESOURCES = ../../../sdrbase/resources/res.qrc
|
@ -1,49 +1,50 @@
|
||||
#--------------------------------------------------------
|
||||
#
|
||||
# Pro file for Android and Windows builds with Qt Creator
|
||||
#
|
||||
#--------------------------------------------------------
|
||||
|
||||
TEMPLATE = lib
|
||||
CONFIG += plugin
|
||||
|
||||
QT += core gui widgets multimedia opengl
|
||||
|
||||
TARGET = demodbfm
|
||||
|
||||
DEFINES += USE_SSE2=1
|
||||
QMAKE_CXXFLAGS += -msse2
|
||||
DEFINES += USE_SSE4_1=1
|
||||
QMAKE_CXXFLAGS += -msse4.1
|
||||
|
||||
INCLUDEPATH += $$PWD
|
||||
INCLUDEPATH += ../../../sdrbase
|
||||
|
||||
CONFIG(ANDROID):INCLUDEPATH += /opt/softs/boost_1_60_0
|
||||
CONFIG(MINGW32):INCLUDEPATH += "D:\boost_1_58_0"
|
||||
CONFIG(MINGW64):INCLUDEPATH += "D:\boost_1_58_0"
|
||||
|
||||
CONFIG(Release):build_subdir = release
|
||||
CONFIG(Debug):build_subdir = debug
|
||||
|
||||
SOURCES += bfmdemod.cpp\
|
||||
bfmdemodgui.cpp\
|
||||
bfmplugin.cpp\
|
||||
rdsdemod.cpp\
|
||||
rdsdecoder.cpp\
|
||||
rdsparser.cpp\
|
||||
rdstmc.cpp
|
||||
|
||||
HEADERS += bfmdemod.h\
|
||||
bfmdemodgui.h\
|
||||
bfmplugin.h\
|
||||
rdsdemod.h\
|
||||
rdsdecoder.h\
|
||||
rdsparser.h\
|
||||
rdstmc.h
|
||||
|
||||
FORMS += bfmdemodgui.ui
|
||||
|
||||
LIBS += -L../../../sdrbase/$${build_subdir} -lsdrbase
|
||||
|
||||
RESOURCES = ../../../sdrbase/resources/res.qrc
|
||||
#--------------------------------------------------------
|
||||
#
|
||||
# Pro file for Android and Windows builds with Qt Creator
|
||||
#
|
||||
#--------------------------------------------------------
|
||||
|
||||
TEMPLATE = lib
|
||||
CONFIG += plugin
|
||||
|
||||
QT += core gui widgets multimedia opengl
|
||||
|
||||
TARGET = demodbfm
|
||||
|
||||
DEFINES += USE_SSE2=1
|
||||
QMAKE_CXXFLAGS += -msse2
|
||||
DEFINES += USE_SSE4_1=1
|
||||
QMAKE_CXXFLAGS += -msse4.1
|
||||
|
||||
INCLUDEPATH += $$PWD
|
||||
INCLUDEPATH += ../../../sdrbase
|
||||
|
||||
CONFIG(ANDROID):INCLUDEPATH += /opt/softs/boost_1_60_0
|
||||
CONFIG(MINGW32):INCLUDEPATH += "D:\boost_1_58_0"
|
||||
CONFIG(MINGW64):INCLUDEPATH += "D:\boost_1_58_0"
|
||||
CONFIG(macx):INCLUDEPATH += "../../../../../boost_1_64_0"
|
||||
|
||||
CONFIG(Release):build_subdir = release
|
||||
CONFIG(Debug):build_subdir = debug
|
||||
|
||||
SOURCES += bfmdemod.cpp\
|
||||
bfmdemodgui.cpp\
|
||||
bfmplugin.cpp\
|
||||
rdsdemod.cpp\
|
||||
rdsdecoder.cpp\
|
||||
rdsparser.cpp\
|
||||
rdstmc.cpp
|
||||
|
||||
HEADERS += bfmdemod.h\
|
||||
bfmdemodgui.h\
|
||||
bfmplugin.h\
|
||||
rdsdemod.h\
|
||||
rdsdecoder.h\
|
||||
rdsparser.h\
|
||||
rdstmc.h
|
||||
|
||||
FORMS += bfmdemodgui.ui
|
||||
|
||||
LIBS += -L../../../sdrbase/$${build_subdir} -lsdrbase
|
||||
|
||||
RESOURCES = ../../../sdrbase/resources/res.qrc
|
||||
|
@ -18,12 +18,15 @@ QMAKE_CXXFLAGS += -msse4.1
|
||||
|
||||
CONFIG(MINGW32):LIBDSDCCSRC = "D:\softs\dsdcc"
|
||||
CONFIG(MINGW64):LIBDSDCCSRC = "D:\softs\dsdcc"
|
||||
CONFIG(macx):LIBDSDCCSRC = "../../../../deps/dsdcc"
|
||||
|
||||
CONFIG(MINGW32):LIBMBELIBSRC = "D:\softs\mbelib"
|
||||
CONFIG(MINGW64):LIBMBELIBSRC = "D:\softs\mbelib"
|
||||
CONFIG(macx):LIBMBELIBSRC = "../../../../deps/mbelib"
|
||||
|
||||
CONFIG(MINGW32):INCLUDEPATH += "D:\boost_1_58_0"
|
||||
CONFIG(MINGW64):INCLUDEPATH += "D:\boost_1_58_0"
|
||||
CONFIG(macx):INCLUDEPATH += "../../../../../boost_1_64_0"
|
||||
|
||||
INCLUDEPATH += $$PWD
|
||||
INCLUDEPATH += ../../../sdrbase
|
||||
|
@ -24,6 +24,7 @@ CONFIG(Debug):build_subdir = debug
|
||||
|
||||
CONFIG(MINGW32):INCLUDEPATH += "D:\softs\opencv\build\include"
|
||||
CONFIG(MINGW64):INCLUDEPATH += "D:\softs\opencv\build\include"
|
||||
CONFIG(macx):INCLUDEPATH += "/opt/local/include"
|
||||
|
||||
SOURCES += atvmod.cpp\
|
||||
atvmodgui.cpp\
|
||||
@ -39,5 +40,6 @@ LIBS += -L../../../sdrbase/$${build_subdir} -lsdrbase
|
||||
|
||||
CONFIG(MINGW32):LIBS += -LD:\softs\opencv\build\mw32\install\x86\mingw\bin -llibopencv_core2413 -llibopencv_highgui2413 -llibopencv_imgproc2413
|
||||
CONFIG(MINGW64):LIBS += -LD:\softs\opencv\build\mw64\install\x64\mingw\bin -llibopencv_core2413 -llibopencv_highgui2413 -llibopencv_imgproc2413
|
||||
CONFIG(macx):LIBS += -L/opt/local/lib -lopencv_core -lopencv_highgui -lopencv_imgcodecs -lopencv_imgproc -lopencv_video -lopencv_videoio
|
||||
|
||||
RESOURCES = ../../../sdrbase/resources/res.qrc
|
||||
|
@ -21,7 +21,8 @@ CONFIG(MINGW64):LIBHACKRFSRC = "D:\softs\hackrf\host"
|
||||
INCLUDEPATH += $$PWD
|
||||
INCLUDEPATH += ../../../sdrbase
|
||||
INCLUDEPATH += ../../../devices
|
||||
INCLUDEPATH += $$LIBHACKRFSRC
|
||||
!macx:INCLUDEPATH += $$LIBHACKRFSRC
|
||||
macx:INCLUDEPATH += /opt/local/include
|
||||
|
||||
CONFIG(Release):build_subdir = release
|
||||
CONFIG(Debug):build_subdir = debug
|
||||
@ -41,7 +42,8 @@ HEADERS += hackrfoutputgui.h\
|
||||
FORMS += hackrfoutputgui.ui
|
||||
|
||||
LIBS += -L../../../sdrbase/$${build_subdir} -lsdrbase
|
||||
LIBS += -L../../../libhackrf/$${build_subdir} -llibhackrf
|
||||
!macx:LIBS += -L../../../libhackrf/$${build_subdir} -llibhackrf
|
||||
macx:LIBS += -L/opt/local/lib -lhackrf
|
||||
LIBS += -L../../../devices/$${build_subdir} -ldevices
|
||||
|
||||
RESOURCES = ../../../sdrbase/resources/res.qrc
|
||||
|
@ -21,7 +21,8 @@ CONFIG(MINGW64):LIBHACKRFSRC = "D:\softs\hackrf\host"
|
||||
INCLUDEPATH += $$PWD
|
||||
INCLUDEPATH += ../../../sdrbase
|
||||
INCLUDEPATH += ../../../devices
|
||||
INCLUDEPATH += $$LIBHACKRFSRC
|
||||
!macx:INCLUDEPATH += $$LIBHACKRFSRC
|
||||
macx:INCLUDEPATH += /opt/local/include
|
||||
|
||||
CONFIG(Release):build_subdir = release
|
||||
CONFIG(Debug):build_subdir = debug
|
||||
@ -41,7 +42,8 @@ HEADERS += hackrfinputgui.h\
|
||||
FORMS += hackrfinputgui.ui
|
||||
|
||||
LIBS += -L../../../sdrbase/$${build_subdir} -lsdrbase
|
||||
LIBS += -L../../../libhackrf/$${build_subdir} -llibhackrf
|
||||
!macx:LIBS += -L../../../libhackrf/$${build_subdir} -llibhackrf
|
||||
macx:LIBS += -L/opt/local/lib -lhackrf
|
||||
LIBS += -L../../../devices/$${build_subdir} -ldevices
|
||||
|
||||
RESOURCES = ../../../sdrbase/resources/res.qrc
|
||||
|
@ -20,7 +20,8 @@ CONFIG(MINGW32):LIBRTLSDRSRC = "D:\softs\librtlsdr"
|
||||
CONFIG(MINGW64):LIBRTLSDRSRC = "D:\softs\librtlsdr"
|
||||
INCLUDEPATH += $$PWD
|
||||
INCLUDEPATH += ../../../sdrbase
|
||||
INCLUDEPATH += $$LIBRTLSDRSRC/include
|
||||
!macx:INCLUDEPATH += $$LIBRTLSDRSRC/include
|
||||
macx:INCLUDEPATH += /opt/local/include
|
||||
|
||||
CONFIG(Release):build_subdir = release
|
||||
CONFIG(Debug):build_subdir = debug
|
||||
@ -40,6 +41,7 @@ HEADERS += rtlsdrgui.h\
|
||||
FORMS += rtlsdrgui.ui
|
||||
|
||||
LIBS += -L../../../sdrbase/$${build_subdir} -lsdrbase
|
||||
LIBS += -L../../../librtlsdr/$${build_subdir} -llibrtlsdr
|
||||
!macx:LIBS += -L../../../librtlsdr/$${build_subdir} -llibrtlsdr
|
||||
macx:LIBS += -L/opt/local/lib -lrtlsdr
|
||||
|
||||
RESOURCES = ../../../sdrbase/resources/res.qrc
|
||||
|
@ -22,7 +22,8 @@ CONFIG(MINGW64):LIBNANOMSGSRC = "D:\softs\nanomsg-0.8-beta"
|
||||
INCLUDEPATH += $$PWD
|
||||
INCLUDEPATH += ../../../sdrbase
|
||||
INCLUDEPATH += ../../../lz4
|
||||
INCLUDEPATH += $$LIBNANOMSGSRC/src
|
||||
!macx:INCLUDEPATH += $$LIBNANOMSGSRC/src
|
||||
macx:INCLUDEPATH += /opt/local/include
|
||||
|
||||
CONFIG(Release):build_subdir = release
|
||||
CONFIG(Debug):build_subdir = debug
|
||||
@ -43,7 +44,8 @@ FORMS += sdrdaemongui.ui
|
||||
|
||||
LIBS += -L../../../sdrbase/$${build_subdir} -lsdrbase
|
||||
LIBS += -L../../../lz4/$${build_subdir} -llz4
|
||||
LIBS += -L../../../nanomsg/$${build_subdir} -lnanomsg
|
||||
!macx:LIBS += -L../../../nanomsg/$${build_subdir} -lnanomsg
|
||||
macx:LIBS += -L/opt/local/lib -lnanomsg
|
||||
|
||||
RESOURCES = ../../../sdrbase/resources/res.qrc
|
||||
|
||||
|
@ -6,19 +6,24 @@
|
||||
|
||||
TEMPLATE = subdirs
|
||||
SUBDIRS = sdrbase
|
||||
SUBDIRS += devices
|
||||
SUBDIRS += lz4
|
||||
SUBDIRS += librtlsdr
|
||||
SUBDIRS += libhackrf
|
||||
SUBDIRS += libairspy
|
||||
SUBDIRS += fcdhid
|
||||
SUBDIRS += fcdlib
|
||||
SUBDIRS += mbelib
|
||||
SUBDIRS += dsdcc
|
||||
SUBDIRS += plugins/samplesource/filesource
|
||||
SUBDIRS += plugins/samplesource/sdrdaemon
|
||||
SUBDIRS += plugins/samplesource/rtlsdr
|
||||
SUBDIRS += plugins/samplesource/hackrf
|
||||
SUBDIRS += plugins/samplesource/airspy
|
||||
SUBDIRS += plugins/samplesource/hackrfinput
|
||||
SUBDIRS += plugins/samplesink/filesink
|
||||
SUBDIRS += plugins/samplesink/hackrfoutput
|
||||
SUBDIRS += plugins/channelrx/chanalyzer
|
||||
SUBDIRS += plugins/channelrx/chanalyzerng
|
||||
SUBDIRS += plugins/channelrx/demodam
|
||||
SUBDIRS += plugins/channelrx/demodatv
|
||||
SUBDIRS += plugins/channelrx/demodbfm
|
||||
SUBDIRS += plugins/channelrx/demoddsd
|
||||
SUBDIRS += plugins/channelrx/demodlora
|
||||
SUBDIRS += plugins/channelrx/demodnfm
|
||||
SUBDIRS += plugins/channelrx/demodssb
|
||||
@ -26,6 +31,7 @@ SUBDIRS += plugins/channelrx/demodwfm
|
||||
SUBDIRS += plugins/channelrx/tcpsrc
|
||||
SUBDIRS += plugins/channelrx/udpsrc
|
||||
SUBDIRS += plugins/channeltx/modam
|
||||
SUBDIRS += plugins/channeltx/modatv
|
||||
SUBDIRS += plugins/channeltx/modnfm
|
||||
SUBDIRS += plugins/channeltx/modssb
|
||||
SUBDIRS += plugins/channeltx/modwfm
|
||||
|
@ -28,8 +28,10 @@
|
||||
#ifndef __WINDOWS__
|
||||
#include <termios.h>
|
||||
#include <sys/ioctl.h>
|
||||
#ifndef __APPLE__
|
||||
#include <linux/serial.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <QDebug>
|
||||
#include <QThread>
|
||||
|
@ -138,7 +138,7 @@ MainWindow::MainWindow(QWidget* parent) :
|
||||
if (sampleSourceIndex < 0)
|
||||
{
|
||||
qCritical("MainWindow::MainWindow: no sample source. Exit");
|
||||
exit(0);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
bool sampleSourceSignalsBlocked = m_deviceUIs.back()->m_samplingDeviceControl->getDeviceSelector()->blockSignals(true);
|
||||
|
@ -12,8 +12,10 @@ TARGET = sdrbase
|
||||
INCLUDEPATH += $$PWD
|
||||
|
||||
DEFINES += USE_KISSFFT=1
|
||||
DEFINES += __WINDOWS__=1
|
||||
DEFINES += DSD_USE_SERIALDV=1
|
||||
win32 {
|
||||
DEFINES += __WINDOWS__=1
|
||||
DEFINES += DSD_USE_SERIALDV=1
|
||||
}
|
||||
DEFINES += USE_SSE2=1
|
||||
QMAKE_CXXFLAGS += -msse2
|
||||
DEFINES += USE_SSE4_1=1
|
||||
@ -30,6 +32,17 @@ CONFIG(MINGW64):INCLUDEPATH += "D:\boost_1_58_0"
|
||||
CONFIG(MINGW32):INCLUDEPATH += "D:\softs\serialDV"
|
||||
CONFIG(MINGW64):INCLUDEPATH += "D:\softs\serialDV"
|
||||
|
||||
CONFIG(macx):INCLUDEPATH += "../../../boost_1_64_0"
|
||||
|
||||
win32 {
|
||||
HEADERS += \
|
||||
dsp/dvserialengine.h \
|
||||
dsp/dvserialworker.h
|
||||
SOURCES += \
|
||||
dsp/dvserialengine.cpp \
|
||||
dsp/dvserialworker.cpp
|
||||
}
|
||||
|
||||
SOURCES += mainwindow.cpp\
|
||||
audio/audiodeviceinfo.cpp\
|
||||
audio/audiofifo.cpp\
|
||||
@ -48,8 +61,6 @@ SOURCES += mainwindow.cpp\
|
||||
dsp/dspengine.cpp\
|
||||
dsp/dspdevicesourceengine.cpp\
|
||||
dsp/dspdevicesinkengine.cpp\
|
||||
dsp/dvserialengine.cpp\
|
||||
dsp/dvserialworker.cpp\
|
||||
dsp/fftengine.cpp\
|
||||
dsp/kissengine.cpp\
|
||||
dsp/fftfilt.cxx\
|
||||
@ -141,8 +152,6 @@ HEADERS += mainwindow.h\
|
||||
dsp/dspengine.h\
|
||||
dsp/dspdevicesourceengine.h\
|
||||
dsp/dspdevicesinkengine.h\
|
||||
dsp/dvserialengine.h\
|
||||
dsp/dvserialworker.h\
|
||||
dsp/dsptypes.h\
|
||||
dsp/fftengine.h\
|
||||
dsp/fftfilt.h\
|
||||
@ -249,7 +258,7 @@ FORMS += mainwindow.ui\
|
||||
|
||||
RESOURCES = resources/res.qrc
|
||||
|
||||
LIBS += -L../serialdv/$${build_subdir} -lserialdv
|
||||
!macx:LIBS += -L../serialdv/$${build_subdir} -lserialdv
|
||||
|
||||
CONFIG(ANDROID):CONFIG += mobility
|
||||
CONFIG(ANDROID):MOBILITY =
|
||||
|
Loading…
Reference in New Issue
Block a user