mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-22 17:45:48 -05:00
Build: Linux: added perseus external library
This commit is contained in:
parent
816e0e28e0
commit
7a6f1b79ce
12
Readme.md
12
Readme.md
@ -167,10 +167,16 @@ If you are not comfortable with this just do not install DSDcc and/or mbelib and
|
||||
- For Linux distributions: `plugins/channel/libdemoddsd.so`
|
||||
- For Windows distribution: `dsdcc.dll`, `mbelib.dll`, `plugins\channel\demoddsd.dll`
|
||||
|
||||
<h1>Software distributions</h1>
|
||||
<h1>Binary distributions</h1>
|
||||
|
||||
In the [releases](https://github.com/f4exb/sdrangel/releases) section one can find binary distributions for Windows
|
||||
In the [releases](https://github.com/f4exb/sdrangel/releases) section of the Github repository one can find binary distributions for Ubuntu and Windows
|
||||
|
||||
This is the archive of the complete binary distribution that expands to the `sdrangel` directory. You can install it anywhere you like and click on `sdrangel.exe` to start.
|
||||
<h2>Ubuntu</h2>
|
||||
|
||||
The `.deb` file is a Debian package that can be installed with `sudo apt-get install` command. Occasionnally you may have to force the installation of dependencies with the `sudo apt-get install -f` command.
|
||||
|
||||
<h2>Windows</h2>
|
||||
|
||||
The `.7z` file is a [7Zip](https://www.7-zip.org/) archive of the complete binary distribution that expands to the `sdrangel` directory. You can install it anywhere you like and double click on `sdrangel.exe` to start.
|
||||
|
||||
<b>⚠ Windows distribution is provided as a by product thanks to the Qt toolchain. The platform of choice to run SDRangel is definitely Linux and very little support can be given for this Windows distribution.</b>
|
||||
|
@ -19,6 +19,10 @@ add_library(perseusdevice SHARED
|
||||
${perseusdevice_SOURCES}
|
||||
)
|
||||
|
||||
if(ENABLE_EXTERNAL_LIBRARIES)
|
||||
add_dependencies(perseusdevice perseus)
|
||||
endif()
|
||||
|
||||
set_target_properties(perseusdevice
|
||||
PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
|
||||
|
||||
|
22
external/CMakeLists.txt
vendored
22
external/CMakeLists.txt
vendored
@ -17,6 +17,7 @@ set(LIMESUITE_TAG "v19.01.0")
|
||||
set(BLADERF_TAG 896d2431b3a35a4b31b6e729386202ebf5fdc5c0)
|
||||
set(LIBIIO_TAG 826563e41b5ce9890b75506f672017de8d76d52d)
|
||||
set(AIRSPYHF_TAG "1.1.5")
|
||||
set(PERSEUS_TAG afefa23e3140ac79d845acb68cf0beeb86d09028)
|
||||
|
||||
|
||||
# For some external project macros
|
||||
@ -245,19 +246,24 @@ if (LINUX)
|
||||
set(LIBAIRSPYHF_INCLUDE_DIR "${source_dir}/.." CACHE INTERNAL "")
|
||||
set(LIBAIRSPYHF_LIBRARIES "${EXTERNAL_BUILD_LIBRARIES}/lib/libairspyhf.so" CACHE INTERNAL "")
|
||||
makeLink("${source_dir}/libairspyhf/src" "${source_dir}/../libairspyhf" airspyhf)
|
||||
|
||||
# needs pkgconfig, libusb, autoconf, automake and libtool
|
||||
ExternalProject_Add(perseus
|
||||
GIT_REPOSITORY https://github.com/f4exb/libperseus-sdr.git
|
||||
GIT_TAG ${PERSEUS_TAG}
|
||||
PREFIX "${EXTERNAL_BUILD_LIBRARIES}/perseus"
|
||||
CMAKE_ARGS ${DEFAULT_OUTPUT_DIRECTORY}
|
||||
INSTALL_COMMAND ""
|
||||
TEST_COMMAND ""
|
||||
)
|
||||
set(LIBPERSEUS_FOUND ON CACHE INTERNAL "")
|
||||
set(LIBPERSEUS_INCLUDE_DIR "${EXTERNAL_BUILD_LIBRARIES}/perseus/src/perseus" CACHE INTERNAL "")
|
||||
set(LIBPERSEUS_LIBRARIES "${EXTERNAL_BUILD_LIBRARIES}/lib/libperseus-sdr.so" CACHE INTERNAL "")
|
||||
endif()
|
||||
|
||||
# already on the respository
|
||||
# TODO decide what to do
|
||||
if(OFF)
|
||||
# needs pkgconfig, libusb, autoconf, automake and libtool
|
||||
ExternalProject_Add(perseus
|
||||
GIT_REPOSITORY https://github.com/f4exb/libperseus-sdr.git
|
||||
GIT_TAG afefa23e3140ac79d845acb68cf0beeb86d09028
|
||||
PREFIX "${EXTERNAL_BUILD_LIBRARIES}/perseus"
|
||||
INSTALL_COMMAND ""
|
||||
TEST_COMMAND ""
|
||||
)
|
||||
# apt install libcodec2-dev
|
||||
# needs speexdsp
|
||||
ExternalProject_Add(codec2
|
||||
|
@ -48,6 +48,10 @@ add_library(${TARGET_NAME} SHARED
|
||||
${perseus_SOURCES}
|
||||
)
|
||||
|
||||
if(ENABLE_EXTERNAL_LIBRARIES)
|
||||
add_dependencies(${TARGET_NAME} perseus)
|
||||
endif()
|
||||
|
||||
target_link_libraries(${TARGET_NAME}
|
||||
Qt5::Core
|
||||
${TARGET_LIB}
|
||||
|
Loading…
Reference in New Issue
Block a user