Hamlib/scripts/README.build-JTSDK.txt

96 wiersze
2.5 KiB
Plaintext
Czysty Zwykły widok Historia

2021-02-18 20:36:39 +00:00
==============================================================
JTSDK DLL Qt MinGW/MSYS2 Supplementary Notes
==============================================================
2021-02-18 23:11:55 +00:00
These instructions should work with JTSDk 3.2.0 Beta 3 and later.
2021-02-18 20:36:39 +00:00
2021-02-18 23:11:55 +00:00
The JTSDK 3.2.0 Stream (and later) is available at
https://sourceforge.net/projects/hamlib-sdk/files/Windows/
2021-02-18 20:36:39 +00:00
2021-02-18 23:11:55 +00:00
Future updates to the JTSDK may implement these steps into the
MSYS2 "menu" command.
2021-02-18 20:36:39 +00:00
2021-02-18 23:11:55 +00:00
1. Update Environment
=====================
$ pacman -Syuu
2021-02-18 20:36:39 +00:00
2. Deploy MinGW
===============
2021-02-18 23:11:55 +00:00
Ensure that the 'zip' , 'dos2unix' and 'groff' packages are deployed
to and working in the MSYS2 Environment
** Versions of JTSDK 3.2.0 Beta 4 and later will incorporate **
** deployment of these tools into the Setup scripts. **
2021-02-18 20:36:39 +00:00
2021-02-18 23:11:55 +00:00
$ pacman -S zip
$ pacman -S dos2unix
$ pacman -S groff
2021-02-18 20:36:39 +00:00
2021-02-18 23:11:55 +00:00
** The next step may be redundant as it has been incorporated **
** into build-w64-jtsdk.sh **
2021-02-18 20:36:39 +00:00
2021-02-18 23:11:55 +00:00
$ export PATH=$PATH:$GCCD_F:.
2021-02-18 20:36:39 +00:00
3. Create a dir $HOME/Builds
============================
2021-02-18 23:11:55 +00:00
Open a MSYS2 Terminal from a jtsdk64.ps1 environment
2021-02-18 20:36:39 +00:00
2021-02-18 23:11:55 +00:00
In a JTSDK PowerShell Environment launch MSYS2 with:
2021-02-18 20:36:39 +00:00
msys2
2021-02-18 23:11:55 +00:00
In the MSYS2 environment type:
2021-02-18 20:36:39 +00:00
2021-02-18 23:11:55 +00:00
$ cd ~ <== ensure you at home
$ mkdir builds
$ cd builds
2021-02-18 20:36:39 +00:00
4. Locate and unzip LibUSB matching version deployed above into builds
======================================================================
2021-02-18 23:11:55 +00:00
** These steps in the original build-w64.sh script are redundant **
2021-02-18 20:36:39 +00:00
2021-02-18 23:11:55 +00:00
** You should familiarise yourself with these steps - but may skip this **
2021-02-18 20:36:39 +00:00
JTSDK 3.2.0 (and later) points the environment to the libusb
deployment in X:\JTSDK64-Tools\tools\libusb through
environment variable $libusb_dir_f .
2021-02-18 23:11:55 +00:00
If you need the source for LibUSB use steps similar to those
2021-02-18 20:36:39 +00:00
below to obtain source:
2021-02-18 23:11:55 +00:00
$ wget https://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.24/libusb-1.0.24.tar.bz2
$ tar -xvf libusb-1.0.24.tar.bz2
2021-02-18 20:36:39 +00:00
[ This creates a subdirectory libusb-1.0.24 ]
2021-02-18 23:11:55 +00:00
5. Obtain latest Hamlib Source from Github
==========================================
2021-02-18 20:36:39 +00:00
2021-02-18 23:11:55 +00:00
$ git clone https://github.com/Hamlib/Hamlib.git hamlib-4.2~git
2021-02-18 20:36:39 +00:00
6. Start the Process Rolling
============================
2021-02-18 23:11:55 +00:00
$ cd ./hamlib-4.2~git
$ ./bootstrap
$ ./scripts/build-w64-jtsdk.sh hamlib-4.2~git
2021-02-18 20:36:39 +00:00
7. Tadaa - Drumroll !
=====================
2021-02-18 23:11:55 +00:00
==> Package ......... ~/build/hamlib-4.2~git/hamlib-w64-4.2~git ==> hamlib-w64-4.2~git.zip
==> Headers ......... ~/build/hamlib-4.2~git/hamlib-w64-4.2~git/include
==> Library &tools .. ~/build/hamlib-4.2~git/hamlib-w64-4.2~git/bin
2021-02-18 20:36:39 +00:00