New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rtlsdr_set_tuner_bandwidth #14
Comments
Frustrating; the last official release was something like two years ago and that function was added about nine months ago... I'm not sure what the best approach is to fix this but we could A) wrap a rtlsdr_set_tuner_bandwidth function (would always return an error) behind a pre-compile switch in the go code but it would require the user to explicitly pass the flag when building gortlsdr, e.g. after go get fails due to the missing function, or B) provide two versions of gortlsdr but that would require using either Go 1.5 with the versioning environment flag set or Go 1.6, not sure if it would work with gccgo though. What are your thoughts and/or suggestions? I'll also submit a request to release a new version at https://lists.osmocom.org/mailman/listinfo/osmocom-sdr done: http://lists.osmocom.org/pipermail/osmocom-sdr/2016-February/001373.html edited |
A project I've been using this package in simply requires users to build rtlsdr from source. The official git repo at least has the necessary commits. |
On Sun, Feb 28, 2016 at 3:40 PM, Douglas Hall notifications@github.com
-joe |
Assuming that upstream are slow in creating a new release and distros even slower in adopting it... From my package (which imports gortlsdr) how would I specify the location of rtlsdr at build time? |
Go's cgo tool is expecting librtlsdr to be in your default library path It may be easiest to just modify the gortlsdr package in your GOPATH. E.g. either clone gortlsdr in to your GOPATH yourself or just "go get -d On Wed, Mar 2, 2016 at 4:46 PM, Ian Bishop notifications@github.com wrote:
|
Thanks for the pointers. I ended up compiling against the latest rtl-sdr source as follows:
$ CGO_LDFLAGS="-lrtlsdr -L/usr/local/rtl-sdr/lib" \
CGO_CPPFLAGS="-I/usr/local/rtl-sdr/include" \
go build |
fyi - doing the last two build commands (from the readme) "sudo make On Thu, Mar 3, 2016 at 9:50 PM, Ian Bishop notifications@github.com wrote:
|
Good news - librtlsdr 0.5.4 was cut back in May. Fedora has already incorporated it into 27 + 28. It looks like the upcoming Ubuntu 19.04 will include it too. |
That is good news! Glad to see the code getting fixes and updates. edit - spelling |
function
rtlsdr_set_tuner_bandwidth()
is not present in Linux distro releases of rtl-sdr package. Go packages that have gortlsdr as a depencency will fail to compile when using distro packaged librtlsdr.I've confirmed this on Fedora 23 and Ubuntu 14.04.
Could
SetTunerBw()
be modified to return an error ifrtlsdr_set_tuner_bandwidth()
can't be found?The text was updated successfully, but these errors were encountered: