stratux icon indicating copy to clipboard operation
stratux copied to clipboard

could not determine kind of name for C.rtlsdr_set_bias_tee

Open garyemiller opened this issue 7 years ago • 14 comments

  1. Stratux version:

Today's git head

  1. Stratux config:

None, can't get past make.

  1. Description of your issue:
spidey stratux # git clone https://github.com/cyoung/stratux.git
spidey stratux # cd stratux
spidey stratux # make
[...]

github.com/ziutek/mymysql (download)
go build -ldflags "-X main.stratuxVersion=`git describe --tags --abbrev=0` -X main.stratuxBuild=`git log -n 1 --pretty=%H`" -p 4 main/gen_gdl90.go main/traffic.go main/gps.go main/network.go main/managementinterface.go main/sdr.go main/ping.go main/uibroadcast.go main/monotonic.go main/datalog.go main/equations.go main/cputemp.go
# github.com/jpoirier/gortlsdr
could not determine kind of name for C.rtlsdr_set_bias_tee
make[1]: *** [Makefile:18: xgen_gdl90] Error 2
make[1]: Leaving directory '/u1/src/rtl-sdr/stratux'
make: *** [Makefile:14: all] Error 2
spidey stratux #

garyemiller avatar Jun 27 '17 02:06 garyemiller

Log of my running make.

build.txt

garyemiller avatar Jun 27 '17 02:06 garyemiller

Hm, looks like recent changes on github.com/jpoirier/gortlsdr may not compile. Will take a look later. @jpoirier ?

cyoung avatar Jun 27 '17 02:06 cyoung

@cyoung note that librtlsdr needs to be updated prior to go getting gortlsdr because bias tee support was added.

I just double checked and get a successful build via :

cd ~/tmp git clone [email protected]:jpoirier/librtlsdr.git cd librtlsdr mkdir build; cd build cmake ../ sudo make install sudo ldconfig rm -rf $GOPATH/github.com/jpoirier/gortlsdr go get github.com/jpoirier/gortlsdr

jpoirier avatar Jun 27 '17 03:06 jpoirier

Hmm. I was using package net-wireless/rtl-sdr-0.5.3_p20150730 on gentoo. When I remove that and pull from the librtlsdr git it works for me.

So that solves my problem. I'll create a Gentoo bug for this.

garyemiller avatar Jun 27 '17 03:06 garyemiller

Thanks!

garyemiller avatar Jun 27 '17 03:06 garyemiller

Hmm, gentoo installs steve-m/librtlsdr, but you had me install jpoirier/librtlsdr.git

Any way to get Stratux to work with either librtlsdr?

garyemiller avatar Jun 27 '17 03:06 garyemiller

bias tee is in latest master branch at steve-m/librtlsdr.git so gortlsdr should compile without error provided it (steve-m/librtlsdr.git) was installed from source but for stratux you should be using jpoirier/librtlsdr.git

jpoirier avatar Jun 27 '17 03:06 jpoirier

I'll leave this open - we should probably add something to the build scripts or Makefile that checks the base librtlsdr version.

cyoung avatar Jun 27 '17 04:06 cyoung

fyi, latest releases: jpoirier/librtlsdr v0.5.5 <---> jpoirier/gortlsdr 2.10.0

On Mon, Jun 26, 2017 at 11:04 PM, cyoung [email protected] wrote:

I'll leave this open - we should probably add something to the build scripts or Makefile that checks the base librtlsdr version.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cyoung/stratux/issues/628#issuecomment-311247165, or mute the thread https://github.com/notifications/unsubscribe-auth/AAd7bvDWDS3MSouWQ-TJuuUhEbgPyMcMks5sIH9ZgaJpZM4OGECc .

jpoirier avatar Jun 27 '17 14:06 jpoirier

I am trying to compile Stratux and am running into this issue... Checking out the jpoirier git does not seem to work:

git clone [email protected]:jpoirier/librtlsdr.git
Cloning into 'librtlsdr'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

Any way around this? (I'm building on a Raspbian Stretch) Thanks!

jovrstra avatar Apr 22 '18 16:04 jovrstra

Your URLgit clone [email protected]:jpoirier/librtlsdr.git needs a password. It is the URL for developers. Use the public URL: git clone [email protected]:jpoirier/librtlsdr.git

garyemiller avatar Apr 22 '18 22:04 garyemiller

Thanks! I overlooked that... The git-command that worked is: git clone https://github.com/jpoirier/librtlsdr.git (still did not finish it all as there were other issues, on my side, so they don't belong in this thread :))

jovrstra avatar Apr 25 '18 06:04 jovrstra

I ended up having to pull from source after removing using sudo apt-get purge librtlsdr0 librtlsdr-dev gr-osmosdr and building as described here above by @jpoirier

Took some effort to clean up existing elements of SDR installs, it seemed like these instructions didn't work but after some effort, these solutions are correct.

Ran sudo apt-get install gqrx-sdr then sudo apt-get purge librtlsdr0 librtlsdr-dev gr-osmosdr and finally sudo make install for librtlsdr which enabled rm -rf $GOPATH/github.com/jpoirier/gortlsdr go get github.com/jpoirier/gortlsdr to succeed.

scottbyrns avatar Jun 25 '18 06:06 scottbyrns

We should have a config script to deal with these issues.

cyoung avatar Oct 10 '18 13:10 cyoung