librtlsdr/win32-qtcreator
hayati ayguen ea168c1d6d changed default of option RTL_FULL_STATIC_BUILD to ON
This only affects the extra CMakeLists.txt below win32-qtcreator.
  This compiles fully static - without librtlsdr.dll.

Root CMakeLists.txt, with option RTL_STATIC_BUILD ON,
  does compile librtlsdr.dll and the rtl_* tools require it.

Signed-off-by: hayati ayguen <h_ayguen@web.de>
2017-02-15 21:20:49 +01:00
..
CMakeLists.txt changed default of option RTL_FULL_STATIC_BUILD to ON 2017-02-15 21:20:49 +01:00
README.txt added OPTION RTL_STATIC_BUILD for MinGW/Win32, default: ON 2017-02-15 21:11:17 +01:00

README.txt

there is an outdated "How to compile new releases of librtlsdr (and tools) on Windows" at
https://www.reddit.com/r/RTLSDR/comments/uce3e/how_to_compile_new_releases_of_librtlsdr_and/
unfortunately the link to the CMakeLists.txt is broken!

so, i needed to find another solution ..


1) aquire and install Qt 5.5.x for Windows 32-bit (MinGW 4.9.2) from
https://www.qt.io/download-open-source/#section-2

2) aquire and install QtCreator 4.0.x
from same site as 1)
probably this step is not necessary and you can use the qtcreator IDE from 1)

3) aquire LibUSB 1.0.20 from
https://sourceforge.net/projects/libusb/files/
last tested: libusb-1.0.20.7z

and place the file at C:/src/_foreign/libusb-1.0.20

or replace LIBUSBBASE path in CMakeLists.txt

4) start qtcreator and open the (modified) CMakeLists.txt
configure compiler/environment and compile


the resulting executables have no other dependencies than libwinpthread-1.dll
from the MINGW system at C:\Qt\Qt5.5.1\Tools\mingw492_32\bin\
  or C:\Qt\Qt5.5.1\5.5\mingw492_32\bin

=======================================================================

opening main CMakeLists.txt in root (above win32-qtcreator) with above QT 5.5/qtcreator

set RTL_STATIC_BUILD = ON
set LIBUSB_FOUND = TRUE
set LIBUSB_INCLUDE_DIR = C:/src/_foreign/libusb-1.0.20/include/libusb-1.0
set LIBUSB_LIBRARIES = C:/src/_foreign/libusb-1.0.20/MinGW32/static/libusb-1.0.a
set THREADS_PTHREADS_INCLUDE_DIR = C:/Qt/Qt5.6.1/Tools/mingw492_32/i686-w64-mingw32/include
set THREADS_PTHREADS_WIN32_LIBRARY = C:/Qt/Qt5.6.1/Tools/mingw492_32/i686-w64-mingw32/lib/libwinpthread.a

the resulting executables have no other dependencies, except the freshly built librtlsdr.dll