Compare commits
24 Commits
071204f392
...
f9766ceaf0
Author | SHA1 | Date |
---|---|---|
Charles J. Cliffe | f9766ceaf0 | |
Charles J. Cliffe | b12084d2e5 | |
Charles J. Cliffe | 6c1cfcad65 | |
Charles J. Cliffe | 6d65a1ca7c | |
Charles J. Cliffe | 69a7b0b97a | |
Charles J. Cliffe | e1e30ed890 | |
Charles J. Cliffe | 165ace2c37 | |
Charles J. Cliffe | b3428c3ba8 | |
Charles J. Cliffe | b4fee0dff7 | |
Charles J. Cliffe | c0e71c70d6 | |
Charles J. Cliffe | 1fd2f431cb | |
Charles J. Cliffe | 61797c2ac6 | |
Charles J. Cliffe | 8ad45faec5 | |
Charles J. Cliffe | 437a66b3bd | |
Charles J. Cliffe | 0b899dbdb3 | |
Charles J. Cliffe | 2dff8948e3 | |
Charles J. Cliffe | f4aacd11e2 | |
Charles J. Cliffe | be641f1946 | |
Charles J. Cliffe | eba9a18182 | |
Charles J. Cliffe | f59e25a4bf | |
Charles J. Cliffe | 41d27ad357 | |
Charles J. Cliffe | 50370cc74b | |
classabbyamp | 521f62900a | |
Sebastien F4GRX | aa29aa41c6 |
|
@ -0,0 +1,34 @@
|
|||
version: 2.1
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
- image: cimg/base:current-22.04
|
||||
resource_class: medium
|
||||
environment:
|
||||
- CACHE_DIR: ~/build/wxWidgets/staticlib
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
- cache-{{ checksum ".circleci/scripts/build_wxwidgets.sh" }}
|
||||
- run:
|
||||
name: Install Dependencies
|
||||
command: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y build-essential cmake libpulse-dev libgtk-3-dev freeglut3 freeglut3-dev libhamlib-dev
|
||||
- run:
|
||||
name: Build wxWidgets
|
||||
command: bash .circleci/scripts/build_wxwidgets.sh
|
||||
- run:
|
||||
name: Build LiquidDSP
|
||||
command: bash .circleci/scripts/build_liquiddsp.sh
|
||||
- run:
|
||||
name: Build SoapySDR
|
||||
command: bash .circleci/scripts/build_soapysdr.sh
|
||||
- run:
|
||||
name: Build CubicSDR
|
||||
command: bash .circleci/scripts/build_cubicsdr.sh
|
||||
- save_cache:
|
||||
key: cache-{{ checksum ".circleci/scripts/build_wxwidgets.sh" }}
|
||||
paths:
|
||||
- ~/build/wxWidgets/staticlib
|
|
@ -0,0 +1,5 @@
|
|||
# CubicSDR
|
||||
mkdir -p $HOME/build/cjcliffe/CubicSDR-build
|
||||
cd $HOME/build/cjcliffe/CubicSDR-build
|
||||
cmake ~/project -DCMAKE_BUILD_TYPE=Release -DwxWidgets_CONFIG_EXECUTABLE=$HOME/build/wxWidgets/staticlib/bin/wx-config -DUSE_HAMLIB=1 -DENABLE_DIGITAL_LAB=1
|
||||
make -j2
|
|
@ -1,11 +1,9 @@
|
|||
# Liquid-DSP
|
||||
cd $HOME/build
|
||||
|
||||
mkdir jgaeddert/
|
||||
cd jgaeddert/
|
||||
mkdir -p $HOME/build/jgaeddert
|
||||
cd $HOME/build/jgaeddert
|
||||
git clone https://github.com/jgaeddert/liquid-dsp.git
|
||||
|
||||
cd liquid-dsp/
|
||||
cd $HOME/build/jgaeddert/liquid-dsp
|
||||
./bootstrap.sh
|
||||
|
||||
echo "Configuring liquid-dsp.."
|
||||
|
@ -13,4 +11,4 @@ echo "Configuring liquid-dsp.."
|
|||
|
||||
echo "Building liquid-dsp.."
|
||||
make -j2 > /dev/null
|
||||
sudo make install
|
||||
sudo make install
|
|
@ -0,0 +1,13 @@
|
|||
# Soapy SDR
|
||||
mkdir -p $HOME/build/pothosware/SoapySDR-build
|
||||
|
||||
cd $HOME/build/pothosware
|
||||
git clone https://github.com/pothosware/SoapySDR.git
|
||||
|
||||
cd $HOME/build/pothosware/SoapySDR-build
|
||||
cmake $HOME/build/pothosware/SoapySDR -DCMAKE_BUILD_TYPE=Release
|
||||
|
||||
echo "Building SoapySDR.."
|
||||
make -j2 > /dev/null
|
||||
|
||||
sudo make install
|
|
@ -8,9 +8,8 @@ fi
|
|||
|
||||
|
||||
echo "Fetch wxWidgets.."
|
||||
cd $HOME/build
|
||||
mkdir -p $HOME/build/wxWidgets/staticlib
|
||||
cd wxWidgets
|
||||
cd $HOME/build/wxWidgets
|
||||
wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.1/wxWidgets-3.2.1.tar.bz2 > /dev/null
|
||||
|
||||
echo "Unpacking wxWidgets.."
|
||||
|
@ -18,15 +17,13 @@ tar -xvjf wxWidgets-3.2.1.tar.bz2 > /dev/null
|
|||
cd wxWidgets-3.2.1/
|
||||
./autogen.sh
|
||||
|
||||
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
||||
./configure --with-opengl --disable-glcanvasegl --disable-shared --enable-monolithic --with-libjpeg --with-libtiff --with-libpng --with-zlib --disable-sdltest --enable-unicode --enable-display --enable-propgrid --disable-webview --disable-webviewwebkit --prefix=`echo $HOME/build/wxWidgets/staticlib` CXXFLAGS="-std=c++0x"
|
||||
fi
|
||||
|
||||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||
if [ "$(uname)" == "Linux" ]; then
|
||||
./configure --with-opengl --disable-glcanvasegl --disable-shared --enable-monolithic --with-libjpeg --with-libtiff --with-libpng --with-zlib --disable-sdltest --enable-unicode --enable-display --enable-propgrid --disable-webview --disable-webviewwebkit --prefix=`echo $HOME/build/wxWidgets/staticlib` CXXFLAGS="-std=c++0x"
|
||||
elif [ "$(uname)" == "Darwin" ]; then
|
||||
./configure --with-opengl --disable-glcanvasegl --disable-shared --enable-monolithic --with-libjpeg --with-libtiff --with-libpng --with-zlib --with-mac --disable-sdltest --enable-unicode --enable-display --enable-propgrid --disable-webkit --disable-webview --disable-webviewwebkit --prefix=`echo $HOME/build/wxWidgets/staticlib` CXXFLAGS="-std=c++0x" --with-libiconv=/usr
|
||||
fi
|
||||
|
||||
echo "Building wxWidgets.."
|
||||
make -j2
|
||||
make V=1 -j2
|
||||
make install
|
||||
|
24
.travis.yml
24
.travis.yml
|
@ -1,24 +0,0 @@
|
|||
os:
|
||||
- linux
|
||||
- osx
|
||||
osx_image: xcode11.3
|
||||
dist: trusty
|
||||
language: cpp
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- libpulse-dev
|
||||
- libgtk-3-dev
|
||||
- freeglut3
|
||||
- freeglut3-dev
|
||||
- libhamlib-dev
|
||||
script:
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install hamlib; fi
|
||||
- bash travis-ci/build_liquiddsp.sh
|
||||
- bash travis-ci/build_soapysdr.sh
|
||||
- bash travis-ci/build_wxwidgets.sh
|
||||
- bash travis-ci/build_cubicsdr.sh
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/build/wxWidgets/staticlib
|
|
@ -689,7 +689,7 @@ IF (NOT BUNDLE_APP)
|
|||
configure_files(${CUBICSDR_HEADER_IMAGE_DIR} ${CMAKE_BINARY_DIR}/${EX_PLATFORM_NAME} ${CUBICSDR_HEADER_IMAGE_FILE})
|
||||
ENDIF()
|
||||
add_executable(CubicSDR ${cubicsdr_sources} ${cubicsdr_headers} ${RES_FILES})
|
||||
target_link_libraries(CubicSDR ${LIQUID_LIB} ${wxWidgets_LIBRARIES} ${OPENGL_LIBRARIES} ${OTHER_LIBRARIES})
|
||||
target_link_libraries(CubicSDR ${wxWidgets_LIBRARIES} ${OPENGL_LIBRARIES} ${OTHER_LIBRARIES})
|
||||
ENDIF (NOT BUNDLE_APP)
|
||||
|
||||
IF (MSVC)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CubicSDR
|
||||
CubicSDR [![CircleCI](https://dl.circleci.com/status-badge/img/gh/cjcliffe/CubicSDR/tree/master.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/cjcliffe/CubicSDR/tree/master)
|
||||
========
|
||||
|
||||
Cross-Platform Software-Defined Radio Application
|
||||
|
|
|
@ -269,7 +269,7 @@ void TuningCanvas::StepTuner(ActiveState state, TuningDirection tuningDir, int d
|
|||
}
|
||||
}
|
||||
|
||||
void TuningCanvas::OnIdle(wxIdleEvent & /* event */) {
|
||||
void TuningCanvas::OnIdle(wxIdleEvent & event) {
|
||||
if (mouseTracker.mouseDown()) {
|
||||
if (downState != TUNING_HOVER_NONE) {
|
||||
dragAccum += 5.0*mouseTracker.getOriginDeltaMouseX();
|
||||
|
|
|
@ -482,7 +482,7 @@ void WaterfallCanvas::OnKeyDown(wxKeyEvent& event) {
|
|||
}
|
||||
|
||||
}
|
||||
void WaterfallCanvas::OnIdle(wxIdleEvent & /* event */) {
|
||||
void WaterfallCanvas::OnIdle(wxIdleEvent & event) {
|
||||
processInputQueue();
|
||||
Refresh();
|
||||
}
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
# CubicSDR
|
||||
cd $HOME/build
|
||||
mkdir cjcliffe/CubicSDR-build
|
||||
cd cjcliffe/CubicSDR-build
|
||||
cmake ../CubicSDR -DCMAKE_BUILD_TYPE=Release -DwxWidgets_CONFIG_EXECUTABLE=$HOME/build/wxWidgets/staticlib/bin/wx-config -DUSE_HAMLIB=1 -DENABLE_DIGITAL_LAB=1
|
||||
make -j2
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
# Soapy SDR
|
||||
cd $HOME/build
|
||||
|
||||
mkdir pothosware/
|
||||
cd pothosware/
|
||||
git clone https://github.com/pothosware/SoapySDR.git
|
||||
|
||||
mkdir SoapySDR-build
|
||||
cd SoapySDR-build
|
||||
|
||||
cmake ../SoapySDR -DCMAKE_BUILD_TYPE=Release
|
||||
|
||||
echo "Building SoapySDR.."
|
||||
make -j2 > /dev/null
|
||||
|
||||
sudo make install
|
Loading…
Reference in New Issue