Difference between revisions of "WSJT-Z: Compile"

From OnnoWiki
Jump to navigation Jump to search
Line 24: Line 24:
 
Sebagai user biasa, compile hamlib
 
Sebagai user biasa, compile hamlib
  
  mkdir ~/hamlib-prefix
+
cd ~
  cd ~/hamlib-prefix
+
  mkdir hamlib  
 +
  cd hamlib
 
  git clone git://git.code.sf.net/u/bsomervi/hamlib src
 
  git clone git://git.code.sf.net/u/bsomervi/hamlib src
  cd src
+
  cd src  
 
  git checkout integration
 
  git checkout integration
 
  ./bootstrap
 
  ./bootstrap
Line 33: Line 34:
 
  cd ../build
 
  cd ../build
 
   ../src/configure --prefix=$HOME/hamlib-prefix \
 
   ../src/configure --prefix=$HOME/hamlib-prefix \
      --disable-shared --enable-static \
+
  --disable-shared --enable-static \
      --without-cxx-binding --disable-winradio \
+
  --without-cxx-binding --disable-winradio \
      CFLAGS="-g -O2 -fdata-sections -ffunction-sections" \
+
  CFLAGS="-g -O2 -fdata-sections -ffunction-sections" \
      LDFLAGS="-Wl,--gc-sections"
+
  LDFLAGS="-Wl,--gc-sections"
  make
+
  make -j4
 
  make install-strip
 
  make install-strip
 +
cd ../../
 +
  
  
Line 54: Line 57:
 
  cmake --build .
 
  cmake --build .
 
  cmake --build . --target install
 
  cmake --build . --target install
 
 
 
  
 
==Referensi==
 
==Referensi==
  
 
* https://aaron-brown.net/blog/?p=203
 
* https://aaron-brown.net/blog/?p=203

Revision as of 18:42, 5 September 2021

Sumber: https://aaron-brown.net/blog/?p=203

Install Aplikasi Pendukung

sudo apt update
sudo apt -y install build-essential gfortran autoconf automake libtool cmake git
sudo apt -y install asciidoctor libfftw3-dev qtdeclarative5-dev texinfo libqt5multimedia5 \
libqt5multimedia5-plugins qtmultimedia5-dev libusb-1.0.0-dev libqt5serialport5-dev \
asciidoc libudev-dev

Download & Buka source code

Download source wsjt-z

https://sourceforge.net/projects/wsjt-z/
mv wsjtz-2.3.0-mod-0.81.zip /usr/local/src/
cd /usr/local/src
unzip wsjtz-2.3.0-mod-0.81.zip


Compile

Sebagai user biasa, compile hamlib

cd ~
mkdir hamlib 
cd hamlib
git clone git://git.code.sf.net/u/bsomervi/hamlib src
cd src 
git checkout integration
./bootstrap
mkdir ../build
cd ../build
  ../src/configure --prefix=$HOME/hamlib-prefix \
  --disable-shared --enable-static \
  --without-cxx-binding --disable-winradio \
  CFLAGS="-g -O2 -fdata-sections -ffunction-sections" \
  LDFLAGS="-Wl,--gc-sections"
make -j4 
make install-strip
cd ../../



Sebagai user biasa, compile WSJT-Z

mkdir -p ~/wsjtx-prefix/build
cd ~/wsjtx-prefix
git clone git://git.code.sf.net/p/wsjt/wsjtx src
cd ~/wsjtx-prefix/build
cmake -D CMAKE_PREFIX_PATH=~/hamlib-prefix \
  -DWSJT_SKIP_MANPAGES=ON -DWSJT_GENERATE_DOCS=OFF \
  -D CMAKE_INSTALL_PREFIX=~/wsjtx-prefix ../src
cmake --build .
cmake --build . --target install

Referensi