Building rtl-sdr under mingw64

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-sdr@lists.osmocom.org/.

Momchil Ivanov momchil at xaxo.eu
Sun Feb 21 18:44:16 UTC 2016


Hi,

I was trying to build rtl-sdr on windows using mingw64 and stumbled upon
the error described here [1]

[ 40%] Building C object src/CMakeFiles/rtl_adsb.dir/rtl_adsb.c.o
Linking C executable rtl_adsb.exe
libconvenience_static.a(convenience.c.o):convenience.c:(.text+0x1e5):
undefined reference to `rtlsdr_set_tuner_gain_mode'
libconvenience_static.a(convenience.c.o):convenience.c:(.text+0x1e5):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`rtlsdr_set_tuner_gain_mode'
libconvenience_static.a(convenience.c.o):convenience.c:(.text+0x1fb):
undefined reference to `rtlsdr_get_tuner_gains'
libconvenience_static.a(convenience.c.o):convenience.c:(.text+0x1fb):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`rtlsdr_get_tuner_gains'

and so on....

I was able to build rtl-sdr using the attached patch. I exchange the order
of linking libraries.

1: http://lists.osmocom.org/pipermail/osmocom-sdr/2015-April/000048.html

Greetings,
Momchil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtl-sdr.patch
Type: application/octet-stream
Size: 1628 bytes
Desc: not available
URL: <http://lists.osmocom.org/pipermail/osmocom-sdr/attachments/20160221/2bce7583/attachment.obj>


More information about the osmocom-sdr mailing list