cyoung / stratux

Aviation weather and traffic receiver based on RTL-SDR.
BSD 3-Clause "New" or "Revised" License
1.06k stars 363 forks source link

could not determine kind of name for C.rtlsdr_set_bias_tee #628

Open garyemiller opened 7 years ago

garyemiller commented 7 years ago
  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 commented 7 years ago

Log of my running make.

build.txt

cyoung commented 7 years ago

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

jpoirier commented 7 years ago

@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 git@github.com: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

garyemiller commented 7 years ago

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 commented 7 years ago

Thanks!

garyemiller commented 7 years ago

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

Any way to get Stratux to work with either librtlsdr?

jpoirier commented 7 years ago

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

cyoung commented 7 years ago

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

jpoirier commented 7 years ago

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

On Mon, Jun 26, 2017 at 11:04 PM, cyoung notifications@github.com 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 .

jovrstra commented 6 years ago

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

git clone git@github.com: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!

garyemiller commented 6 years ago

Your URLgit clone git@github.com:jpoirier/librtlsdr.git needs a password. It is the URL for developers. Use the public URL: git clone http@github.com:jpoirier/librtlsdr.git

jovrstra commented 6 years ago

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 :))

scottbyrns commented 6 years ago

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.

cyoung commented 5 years ago

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