hacktv icon indicating copy to clipboard operation
hacktv copied to clipboard

build_win64.sh script needs fixes and improvements when using rolling release linux distros

Open Potomac opened this issue 2 months ago • 2 comments

Hello,

the current build_win64.sh script doesn't work on rolling release Linux distros like Arch Linux, it fails on osmo-fl2k compilation, during the build of fl2k*.exe binaries, because of the include file osmo-fl2k/src/getopt/getopt.h.

A fix would be to apply a patch for the osmo-fl2k version of getopt.h, the patch is avalaible here in this bug report.

fix_getopt.patch

And improvements can be done on the script :

  • update libusb to 1.0.29, the current script uses 1.0.26 version
  • update libhackrf to 2024.02.1 version instead of using 2023.01.1 (requirement for using 2024.02.1 version is to update hackrf firmware to version provided with hackrf 2024.02.1 source code)
  • add "-DCMAKE_POLICY_VERSION_MINIMUM=3.5" option for the cmake command of libhackrf (without this option the compilation of libhackrf is not possible on Arch Linux)

it will avoid this error :

CMake Error at CMakeLists.txt:24 (cmake_minimum_required): Compatibility with CMake < 3.5 has been removed from CMake.

Update the VERSION argument <min> value. Or, use the <min>...<max> syntax to tell CMake that the project requires at least <min> but has been updated to work with policies introduced by <max> or earlier.

Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

see also : https://cmake.org/cmake/help/latest/variable/CMAKE_POLICY_VERSION_MINIMUM.html

  • add soapySDR support if cross compilation of soapySDR for Windows is possible

Thanks.

Potomac avatar Nov 01 '25 23:11 Potomac