compiling rtl-sdr on win10 with qtcreator
luigi.tarenga at gmail.com
Sat Dec 17 10:15:32 UTC 2016
actually I'm working with a clone of git://git.osmocom.org/rtl-sdr
I remember the file you mention is on the librtlsdr fork on github...
I'm missing something?
My objective now is to build the original rtl-sdr and try to apply some patches
on that tree. I will try out your cmake file in win32-qtcreator in the future
as I see it's simpler to use and the static library is a good idea.
As to yesterday I manager to build rtl-sdr. the summary is:
I tried to build with the mingw installed by qtcreator but this fail as it miss
libpthread and I can't figure out own to install additional library
into this mingw.
I then configured qtcreator to build using my mingw installed apart and in this
mingw I have libpthread installed. Initially it failed and I find out that
the in the file FindThread.cmake there is a reference to an different
I change the line:
does anyone know if I'm using a too recent pthread library or the
FindThread.cmake needs a patch?
anyway this solved my make generation problem. no problem during compilation.
On Fri, Dec 16, 2016 at 10:04 PM, Hayati Ayguen <h_ayguen at web.de> wrote:
> Hi Luigi,
> i had created the CMakelist below the librtlsdr/tree/master/win32-qtcreator
> subdirectory. You should directly open the CMakelist from here in qtcreator.
> I just needed the first non commented line setting LIBUSBBASE:
> # edit this path
> SET( LIBUSBBASE C:/src/_foreign/libusb-1.0.20 )
> Everything else comes from/with the qt/creator installation including mingw.
> For me quite important is the FULL_STATIC Build option, that the result does not need any gcc/libusb or pthread dlls.
> Kind Regards,
> Hayati Aygün <h_ayguen at web.de>
> Am 16. Dezember 2016 16:33:00 MEZ, schrieb Luigi Tarenga <luigi.tarenga at gmail.com>:
>>thanks for the feedback. unfortunately I cannot find the commended
>>lines you mention.
>>just to be clear, I cloned rtl-sdr git and I'm at commit
>>I solved the problem editing cmake/Modules/FindLibUSB.cmake
>>I addeded c:/..blablabla../libusb/include/libusb-1.0 and
>>in the find_path() and find_library() blocks respectively.
>>I'm now trying to figure out how add pthread-win32 to the qt mingw (I
>>have installed libpthread in
>>the mingw directory used for compiling libusb but qtcreator seems to
>>have its own mingw environment
>>and the latter one is missing pthread-win32 ... )
>>On Fri, Dec 16, 2016 at 2:52 PM, Hayati Ayguen <h_ayguen at web.de> wrote:
>>> Hi Luigi,
>>> i modified the pathes in the CMakeLists.txt for mingw/qtcreator for
>>compilation. Think, i commented it in the head of the file.
>>> Kind Regards,
>>> Hayati Aygün <h_ayguen at web.de>
>>> Am 16. Dezember 2016 13:18:58 MEZ, schrieb Luigi Tarenga
>><luigi.tarenga at gmail.com>:
>>>>I'm trying to build rtl-sdr on win10. I choosed to use mingw and
>>>>mingw32 (to build libusb)
>>>>I compiled libusb with mingw32 and automake and installed in
>>>>Now I'm trying to find out how to generate make files for rtl-sdr
>>>>the folder where I installed libusb (library and header) in
>>>>I don't understand if I have to modify CMakeLists.txt or there is
>>>>gui to enter
>>>>the correct parameter. I have even to find out if I have to explicit
>>>>variable LIBUSB_PKG_INCLUDE_DIRS or what...
>>>>running cmake (from qtcreator) returns with error that I'm missing
>>>>libusb and libpthread.
>>>>I think that once I can solve the problem for libusb I will be able
>>>>solve even the one of
>>>>libpthread. can someone help me in this phase?
More information about the osmocom-sdr