This page desribes how to create the Windows OS installer package by using the MXE crossbuild scripts.
This HOWTO works only on the following Linux distributions:
* Debian
* Fedora
* Mint
* MX
* OpenSUSE
* Ubuntu
NOTE: Due to missing package 'nsis' OpenSUSE can create windows binaries, but not the installer
**The creation of the Fldigi Windows binary installer consists of 4 steps:
**
1. Download the Fldigi Git repository
2. Install the required OS packages
3. Build the MXE crossbuild environment
4. Compile Fldigi for Windows
Step 2 only needs to be run once per-system, as OS packages are accessible to all user accounts.
Step 3 only needs to be run once per user-account, as a persistant crossbuild environment is made in $HOME/.fldigiMXE
**1) Download the Fldigi Git Repository **
To download Fldigi, run:
$ git clone git://git.code.sf.net/p/fldigi/fldigi fldigi-fldigi
This will download the source-repository to directory fldigi-fldigi.
2) Install the Required OS Packages
The following steps auto-install all required OS packages.
Open a terminal program and go to directory: fldigi-fldigi/scripts
For Fedora, Mint, OpenSUSE, Ubuntu, and MX Linux run:
sudo ./setupmxe.sh packages
For Debian run:
su root
./setupmxe.sh packages
exit
This step needs to be run only once per system.
3) Build the MXE Crossbuild Environment
You have the option to build either only 32-bit, or dual 32/64-bit crossbuild libraries
Open a terminal program and go to directory: fldigi-fldigi/scripts
To build only 32-bit libraries run:
./setupmxe.sh setup32
To build dual 32/64-bit libraries run:
./setupmxe.sh setup64
This will create a persistant crossbuild environment in $HOME/.fldigiMXE
This step needs to be run only once per user-account.
4) Compile Fldigi for Windows
Running the build script will compile binaries for Fldigi and Flarq,
then create a nullsoft installer package containing them.
Open a terminal program and go to directory: fldigi-fldigi/scripts
To crossbuild 32-bit Fldigi (DEFAULT)
./buildmxe.sh
To crossbuild 64-bit Fldigi (CURRENTLY BROKEN)
./buildmxe64.sh
When script is complete, the finished binaries and installer will be in directory: * fldigi-fldigi*
** Cleanup **
To delete an installed MXE crossbuild environment, run:
./setupmxe.sh clean
This will delete the directory $HOME/.fldigiMXE
** Notes**
MXE libraries 32-bit compile:
CFLAGS=" -march=i686 -mtune=i686 -O3 -mno-3dnow -mmmx -msse -mfpmath=sse "
MXE libraries 64-bit compile
CFLAGS=" -march=x86-64 -mtune=k8 -O3 -mno-3dnow -mmmx -msse -msse2 -mfpmath=sse "
Scripts that this HOWTO requires.
Copy/paste into 'fldigi-fldigi/scripts' directory
make the scripts executable with:
$ chmod a+x *.sh
Last edit: KL4YFD 2020-05-21