Skip to content
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

error #29

Open
ghost opened this issue Jul 14, 2018 · 2 comments
Open

error #29

ghost opened this issue Jul 14, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 14, 2018

when i run "go get -u github.com/jpoirier/gortlsdr" i get this error does anyone know how to fix it?

# github.com/jpoirier/gortlsdr /tmp/go-build505426775/github.com/jpoirier/gortlsdr/_obj/rtlsdr.cgo2.o: In function _cgo_1debe9789e24_Cfunc_rtlsdr_set_bias_tee':
go/src/github.com/jpoirier/gortlsdr/rtlsdr.go:355: undefined reference to rtlsdr_set_bias_tee' /tmp/go-build505426775/github.com/jpoirier/gortlsdr/_obj/rtlsdr.cgo2.o: In function _cgo_1debe9789e24_Cfunc_rtlsdr_set_tuner_bandwidth':
go/src/github.com/jpoirier/gortlsdr/rtlsdr.go:446: undefined reference to rtlsdr_set_tuner_bandwidth' collect2: error: ld returned 1 exit status

@ghost
Copy link
Author

ghost commented Jul 14, 2018

i followed the instructions here and now the error is

https://github.com/csete/gqrx/issues/555

github.com/jpoirier/gortlsdr
github.com/jpoirier/gortlsdr
38: error: 'rtlsdr_set_bias_tee' undeclared (first use in this function)
38: error: 'rtlsdr_set_tuner_bandwidth' undeclared (first use in this function)

@jpoirier
Copy link
Owner

Your system probably has an older version of librtlsdr.

Assuming you're running linux you should be able to install a newer version via your package manager. E.g. using apt I can run "sudo apt-get install librtlsdr-dev" to get with the missing functions, or you can clone, build, and install the version at https://github.com/jpoirier/librtlsdr, which I know works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant