Difference between revisions of "WSJT-Z: Compile"

From OnnoWiki
Jump to navigation Jump to search
Line 14: Line 14:
 
==Compile==
 
==Compile==
  
Compile hamlin
+
Sebagai user biasa, compile hamlib
  
  $ mkdir ~/hamlib-prefix
+
  mkdir ~/hamlib-prefix
  $ cd ~/hamlib-prefix
+
  cd ~/hamlib-prefix
  $ 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
  $ mkdir ../build
+
  mkdir ../build
  $ 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
  $ make install-strip
+
  make install-strip
  
  
  
Compile WSJT-Z
+
Sebagai user biasa, compile WSJT-Z
  
  $ mkdir -p ~/wsjtx-prefix/build
+
  mkdir -p ~/wsjtx-prefix/build
  $ cd ~/wsjtx-prefix
+
  cd ~/wsjtx-prefix
  $ git clone git://git.code.sf.net/p/wsjt/wsjtx src
+
  git clone git://git.code.sf.net/p/wsjt/wsjtx src
  
  $ cd ~/wsjtx-prefix/build
+
  cd ~/wsjtx-prefix/build
  $ cmake -D CMAKE_PREFIX_PATH=~/hamlib-prefix \
+
  cmake -D CMAKE_PREFIX_PATH=~/hamlib-prefix \
    -DWSJT_SKIP_MANPAGES=ON -DWSJT_GENERATE_DOCS=OFF \
+
  -DWSJT_SKIP_MANPAGES=ON -DWSJT_GENERATE_DOCS=OFF \
    -D CMAKE_INSTALL_PREFIX=~/wsjtx-prefix ../src
+
  -D CMAKE_INSTALL_PREFIX=~/wsjtx-prefix ../src
  $ cmake --build .
+
  cmake --build .
  $ cmake --build . --target install
+
  cmake --build . --target install

Revision as of 18:32, 5 September 2021

Download

Download source wsjt-z

https://sourceforge.net/projects/wsjt-z/


Buka

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

mkdir ~/hamlib-prefix
cd ~/hamlib-prefix
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
make install-strip


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