Difference between revisions of "WSPR: Compile"

From OnnoWiki
Jump to navigation Jump to search
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Instalasi aplikasi pendukung
 
Instalasi aplikasi pendukung
  
  sudo apt-get install subversion python3-dev python3-numpy python3-imaging-tk python3-tk \
+
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 asciidoc \
 +
subversion python3-dev python3-numpy python3-imaging-tk python3-tk \
 
  python3-pil libportaudio2 portaudio19-dev libsamplerate0-dev gfortran cl-fftw3 \
 
  python3-pil libportaudio2 portaudio19-dev libsamplerate0-dev gfortran cl-fftw3 \
  python-dev autoconf
+
  python-dev autoconf cmake libtool texinfo libqt5widgets5 qtbase5-dev libqt5x11extras5-dev \
 +
asciidoc
  
Di Ubuntu 12.04
 
* Compile [[Autoconf: Compile | Autoconf versi yang paling baru]]
 
 
sudo apt-get install subversion python3-dev python3-numpy python3-tk \
 
libportaudio2 portaudio19-dev libsamplerate0-dev gfortran cl-fftw3 \
 
python-dev
 
  
 
Download
 
Download
Line 17: Line 17:
 
  svn co svn://svn.code.sf.net/p/wsjt/wsjt/branches/wspr
 
  svn co svn://svn.code.sf.net/p/wsjt/wsjt/branches/wspr
  
Siapkan
+
Lakukan
  
 +
sudo su -
 +
sudo chmod -Rf 777 /usr/local/src
 
  cd /usr/local/src/wspr
 
  cd /usr/local/src/wspr
 
  ./autogen.sh
 
  ./autogen.sh
  
==Untuk Ubuntu 14.04, edit Makefile==
+
-------------------------------------------
Edit
+
  Configuration Summary
 +
-------------------------------------------
 +
 +
  Install prefix ..: /usr/local
 +
  Package .........: WSPR 4.0
 +
  Build Docs ......: Yes
 +
  Build Manpages ..: Yes
 +
  Python2 .........: /usr/bin/python 2.7.6
 +
  Python3 .........: /usr/bin/python3 3.4.0
 +
  F2py ............: /usr/bin/f2py3
 +
  Fcompiler: ......: gfortran
 +
  FC Lib Path .....: /usr/lib/gcc/i686-linux-gnu/4.8/
 +
  Samplerate ......: OK
 +
  FFTW3 ...........: OK
 +
  Portaudio .......: OK
 +
  Copyright........: Copyright (C) 2001-2015 Joseph H Taylor, Jr, K1JT
 +
  Website .........: http://www.physics.princeton.edu/pulsar/K1JT/wspr.html
 +
  Report Bugs To ..: wsjt-devel@lists.sourceforge.net
 +
 +
  Finished Configuration
 +
 +
  To build, type ..: make
  
cd /usr/local/src/wspr
 
vi Makefile
 
  
Pastikan
 
  
f2py menjadi f2py3.4
 
 
 
Compile
 
 
make clean
 
 
  make
 
  make
  sudo make install
+
  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==
 
==Run==
  
Bisa langsung dari shell
+
Bisa langsung dari shell sebagai superuser.
  
 +
sudo su
 
  wspr
 
  wspr
  
 +
Kita butuh akses superuser agar wspr dapat dengan mudah mengakses /dev/ttyUSB0 untuk
 +
menswitch PTT
  
 
Cara lama
 
Cara lama
Line 65: Line 68:
 
  cd /usr/bin/
 
  cd /usr/bin/
 
  ./wspr
 
  ./wspr
 +
 +
==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/* &
 +
0 * * * * rm -Rf /home/username/.local/share/WSPR/save/* &
 +
0 * * * * rm -Rf /root/.wspr/save/* &
 +
0 * * * * rm -Rf /root/.local/share/WSPR/save/* &
  
 
==Referensi==
 
==Referensi==

Latest revision as of 18:30, 12 April 2016

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 asciidoc \
subversion python3-dev python3-numpy python3-imaging-tk python3-tk \
python3-pil libportaudio2 portaudio19-dev libsamplerate0-dev gfortran cl-fftw3 \
python-dev autoconf cmake libtool texinfo libqt5widgets5 qtbase5-dev libqt5x11extras5-dev \
asciidoc


Download

cd /usr/local/src
svn co svn://svn.code.sf.net/p/wsjt/wsjt/branches/wspr

Lakukan

sudo su -
sudo chmod -Rf 777 /usr/local/src
cd /usr/local/src/wspr
./autogen.sh
-------------------------------------------
 Configuration Summary
------------------------------------------- 

 Install prefix ..: /usr/local
 Package .........: WSPR 4.0
 Build Docs ......: Yes
 Build Manpages ..: Yes
 Python2 .........: /usr/bin/python 2.7.6
 Python3 .........: /usr/bin/python3 3.4.0
 F2py ............: /usr/bin/f2py3
 Fcompiler: ......: gfortran
 FC Lib Path .....: /usr/lib/gcc/i686-linux-gnu/4.8/
 Samplerate ......: OK
 FFTW3 ...........: OK
 Portaudio .......: OK
 Copyright........: Copyright (C) 2001-2015 Joseph H Taylor, Jr, K1JT
 Website .........: http://www.physics.princeton.edu/pulsar/K1JT/wspr.html
 Report Bugs To ..: wsjt-devel@lists.sourceforge.net

 Finished Configuration

 To build, type ..: make


make
make install


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

Cara lama

cd /usr/bin/
./wspr

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/* &
0 * * * * rm -Rf /home/username/.local/share/WSPR/save/* &
0 * * * * rm -Rf /root/.wspr/save/* &
0 * * * * rm -Rf /root/.local/share/WSPR/save/* &

Referensi


Pranala Menarik