Difference between revisions of "WSJT: Compile"

From OnnoWiki
Jump to navigation Jump to search
Line 6: Line 6:
 
  python3-pil libportaudio2 portaudio19-dev libsamplerate0-dev gfortran cl-fftw3 \
 
  python3-pil libportaudio2 portaudio19-dev libsamplerate0-dev gfortran cl-fftw3 \
 
  python-dev autoconf git
 
  python-dev autoconf git
 
Download
 
 
cd /usr/local/src
 
svn co svn://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx
 
 
 
  
 
Buat hamlib
 
Buat hamlib
Line 34: Line 27:
  
  
Siapkan
+
Compile
  
 +
mkdir -p /usr/local/src/wsjtx/build
 
  cd /usr/local/src/wsjtx
 
  cd /usr/local/src/wsjtx
  ./autogen.sh
+
  svn co svn://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx src
 
+
  cd /usr/local/src/wsjtx/build
 
+
  cmake -D CMAKE_PREFIX_PATH=/usr/local/src/hamlib-prefix ../src
==untuk Ubuntu 14.04==
+
  cmake --build .
Edit
+
  cmake --build . --target install
 
 
  cd /usr/local/src/wspr
 
vi Makefile
 
 
 
Pastikan
 
 
 
f2py menjadi f2py3.4
 
 
 
 
 
==Compile==
 
 
 
make clean
 
make
 
sudo make install
 
 
 
==Cara Lama==
 
 
 
===Untuk i386===
 
 
 
./configure \
 
  --with-portaudio-include-dir=/usr/include \
 
--with-portaudio-lib-dir=/usr/lib/i386-linux-gnu
 
make
 
 
 
===Untuk amd64===
 
 
 
./configure \
 
  --with-portaudio-include-dir=/usr/include \
 
  --with-portaudio-lib-dir=/usr/lib/x86_64-linux-gnu
 
 
 
==Run==
 
 
 
Bisa langsung dari shell sebagai superuser.
 
 
 
sudo su
 
 
wspr
 
 
 
Kita butuh akses superuser agar wspr dapat dengan mudah mengakses /dev/ttyUSB0 untuk
 
menswitch PTT
 
 
 
==Buang Secara Periodik File Audio==
 
 
 
Ternyata default wspr akan menyimpan file audio. Sebaiknya di buang secara periodik.
 
 
 
crontab -e
 
 
 
Isi dengan
 
 
 
0 * * * * rm -Rf /home/username/.wspr/save/* &
 
 
 
  
  

Revision as of 07:04, 5 January 2015

Instalasi aplikasi pendukung

Di Ubuntu 14.04

sudo apt-get install subversion python3-dev python3-numpy python3-imaging-tk python3-tk \
python3-pil libportaudio2 portaudio19-dev libsamplerate0-dev gfortran cl-fftw3 \
python-dev autoconf git

Buat hamlib

apt-get install git
cd /usr/local/src
mkdir hamlib-prefix
cd hamlib-prefix
git clone git://git.code.sf.net/u/bsomervi/hamlib src
cd src
git checkout integration
mkdir ../build
cd ../build
../src/autogen.sh --prefix=$HOME/hamlib-prefix \
      --disable-shared --enable-static \
      --without-cxx-binding --disable-winradio \
      CFLAGS="-fdata-sections -ffunction-sections" \
      LDFLAGS="-Wl,--gc-sections"
make
make install


Compile

mkdir -p /usr/local/src/wsjtx/build
cd /usr/local/src/wsjtx
svn co svn://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx src
cd /usr/local/src/wsjtx/build
cmake -D CMAKE_PREFIX_PATH=/usr/local/src/hamlib-prefix ../src
cmake --build .
cmake --build . --target install


Referensi


Pranala Menarik