Package Details: gr-osmosdr-git 0-18

Package Base: gr-osmosdr-git
Description: GNU Radio source block for OsmoSDR, which is a 100% Free Software based small form-factor inexpensive SDR (Software Defined Radio) project.
Upstream URL: http://sdr.osmocom.org/trac/
Category: multimedia
Licenses: GPL
Submitter: 0xfc
Maintainer: None
Last Packager: None
Votes: 28
First Submitted: 2012-04-24 04:44
Last Updated: 2013-11-02 03:17

Latest Comments

Comment by edward_81

2015-06-24 17:53

Compilation fail. This package now need airspy-git

Comment by swiftgeek

2014-08-03 18:08

works on stable gnuradio so if anything PKGBUILD could detect installed version if that's helps at all (compiling gr takes way too much time)
@Zygote: logs… Most probably missed (indirect) dependency of this package is causing this

Comment by 0xfc

2014-08-03 14:25

Sorry I've switched to Ubuntu and no longer using Arch, so I don't know if it will work.
Long ago there was someone who requested to switch to gnuradio-git, but other people complained about broken boost dependency.
So if you made it work, please tell me, and I'll update the dependency. Also, I can abandon this package if someone wants to maintance it.

Comment by Zygote

2014-08-03 01:58

Is it possible to make this work with the gnuradio-git package at all? Currently it doesnt seem to be due to osmosdr looking for older .so files than what the gnuradio-git package generates.

Comment by 0xfc

2014-03-11 00:11

Sorry I currently don't have a computer in hand, so I'll check it on Saturday.

Comment by rek2gnulinux

2014-03-10 23:19

add to the CNAME line in the pkgbuild before installing -DENABLE_BLADERF:BOOL=OFF
this will let you install the rest of the modules.. just not BLADERF that is the one giving the problem..
hispagatos.org

Comment by 0xfc

2014-01-13 03:18

Seems an upstream bug. Did this happen before?

Comment by test0

2014-01-13 00:53

lib/CMakeFiles/gnuradio-osmosdr.dir/build.make:356: recipe for target 'lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/bladerf_source_c.cc.o' failed
make[2]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/bladerf_source_c.cc.o] Error 1
CMakeFiles/Makefile2:124: recipe for target 'lib/CMakeFiles/gnuradio-osmosdr.dir/all' failed
make[1]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error 2
Makefile:126: recipe for target 'all' failed


I installed bladerf directly but the error persists.

Comment by 0xfc

2013-11-02 03:17

Added python2-cheetah to makedepends.

Comment by gog

2013-11-02 03:00

Build depends on python2-cheetah. I don't know about runtime. You should add it.

Comment by swiftgeek

2013-08-01 02:39

yes

Comment by 0xfc

2013-08-01 02:36

Modified the git command. Is it working now?

Comment by swiftgeek

2013-08-01 02:31

But what about that first letter v? writing 'version' word or v in pkgver doesn't make any sense

Comment by 0xfc

2013-08-01 02:28

Sorry forgot the "cd $_gitname" line. Reverted now.

Comment by swiftgeek

2013-08-01 02:26

but somehow 0 > v so local is always outdated… and v comes from version…

(in previous comment i forgot about that 'v' might be included in ¿short hash)
git describe --always | sed 's|-|.|g; s|^.||'

---
Also `cd $_gitname` has to be uncommented
fatal: Not a git repository

Comment by 0xfc

2013-08-01 02:14

Reverted commented git command line in pkgver().

Comment by 0xfc

2013-07-28 04:23

Set pkgver to constant value 0.

Comment by 0xfc

2013-07-23 10:39

Changed dependency back to gnuradio.

Comment by asdil12

2013-07-22 19:01

@0xfc:
please change the dependency back to gnuradio, as gnuradio-3-7-0 is now available, and depending on gnuradio-git breaks the non-git version of gqrx.

Comment by 0xfc

2013-07-02 12:28

Updated dependency 'gnuradio' to 'gnuradio-git'.

Comment by asdil12

2013-06-29 12:22

@masutu: append "#branch=gr3.6" to the git:// url

Comment by masutu

2013-06-29 12:20

Hi,
won't build atm:

"
CMake Warning at CMakeLists.txt:147 (find_package):
Could not find a configuration file for package "Gnuradio" that is
compatible with requested version "3.7.0".

The following configuration files were considered but not accepted:

/usr/lib/cmake/gnuradio/GnuradioConfig.cmake, version: 3.6.5.0
/lib/cmake/gnuradio/GnuradioConfig.cmake, version: 3.6.5.0
...
"

I think solution would either be make it depend on gnuradio-git, which already is 3.7 series, or to do "git checkout gr3.6" before building (see http://sdr.osmocom.org/trac/wiki/GrOsmoSDR#Buildprocess).

Comment by 0xfc

2013-06-26 05:01

Corrected this typo.
Sorry for the late, but the end-term exams are coming, I'm busy on it. *O.O*

Comment by qs9rx

2013-06-23 18:06

You have a typo, it is "source" not "sources" for the git repository. ;)

Comment by 0xfc

2013-06-23 08:11

Updated PKGBUILD with VCS guidelines.

Comment by asdil12

2013-06-23 05:40

Please swtch to the new vcs source as described in here:
https://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines

When you have a git:// url you can simply write
sources=('git://...')
md5sums=('SKIP')

You can select the branch by apppending #branch=gr3.6 to the url.

Comment by DL0

2013-06-23 01:38

Thanks swiftgeek for the info on the gr3.6 branch. After updating everything to gnuradio 3.7 I found none of my GRC radios worked although I could build new ones. This small PKGBUILD change will save me a lot of trouble!

Comment by 0xfc

2013-06-17 06:17

Added pkgver.

Comment by swiftgeek

2013-06-15 21:19

please add pkgver with date flavor ;)

pkgver() {
date +%Y%m%d
}

Also for 3.6.x use gr3.6 branch, to do so change:
git clone "$_gitroot" "$_gitname"
to
git clone -b gr3.6 "$_gitroot" "$_gitname"

Comment by asdil12

2013-06-13 06:38

Just reinstall the gnuradio-git pkg - it still points to tbe latest gnuradio git version.

Comment by DL0

2013-06-12 22:44

The version of gr-osmosdr in git now requires gnuradio >= 3.7 to compile. The gnuradio and gnuradio-git packages in AUR are 3.6.

Comment by 0xfc

2013-05-24 07:17

Added boost to makedepends.

Comment by Nidhogg

2013-05-23 12:49

I had to include boost in 'makedepends' before I could successfully build the package. Without boost, I got this error message:

-- Configuring Boost C++ Libraries...
-- Could NOT find Boost
CMake Error at CMakeLists.txt:119 (message):
Boost required to build gr-osmosdr


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
Aborting...

Comment by ackalker

2013-04-05 20:53

You're welcome :-)

Comment by 0xfc

2013-04-05 01:40

Oh I saw the missing "-" in the cmake command line...
I've added it and updated the PKGBUILD.
Thanks again for your efforts!

Comment by 0xfc

2013-04-05 01:36

Got up just half an hour ago... a rainy and windy morning...
Due to some reasons, I cannot get access to pastie.org; and after I used a proxy, the #731750 seems not a PKGBUILD but a ruby script created in 2009. I'm not sure if it was a proxy issue, so please change to pastebin.com or post the fix here.
Thanks for your efforts!

Comment by ackalker

2013-04-04 18:06

And all trouble came down to just a missing '-'...
Here's my fixed PKGBUILD: http://pastie.org/731750
Feel free to use it if you like, I changed the layout of the cmake command a little (one line per variable), so gotchas like this will be easier to catch in the future. I will also post a fixed PKGBUILD to gnuradio-git package.

Comment by ackalker

2013-04-04 15:52

The really weird thing is that I can build and execute simple diagrams using gnuradio-companion just fine, and `$ python2 -c 'from gnuradio import gr'` works just fine, although strace clearly shows the python3*.so is being used.

Comment by ackalker

2013-04-04 15:43

You're welcome :-)
I've found that gnuradio-git has the same problem: libraries linked to /usr/lib/libpython3.3m.so.1.0). It uses basically the same CMake modules, so I'm afraid this is an upstream problem.
Haven't found much in the way of a solution, except that -DPYTHON_LIBRARY should probably be -DPYTHON_LIBRARIES (for both gnuradio-git and gr-osmodir-git), but setting it appears to have no effect either way.

Comment by 0xfc

2013-04-04 12:59

Thanks for your encouragement.
So does it works actually? I've switched to Ubuntu long before, so I don't know whether it works. if it doesn't work correctly, please post here, and I'll try to fix it.
Thanks again for your attention.

Comment by ackalker

2013-04-04 12:13

Ah, just read about asdil12's fix, which you implemented. Sadly, it appears not to work (at least in my case).

Comment by ackalker

2013-04-04 12:04

(10 votes, keep up the good work :-) )
namcap found a sneaky gotcha:

gr-osmosdr-git E: Dependency python detected and not included (libraries ['usr/lib/libpython3.3m.so.1.0'] needed in files ['usr/lib/python2.7/site-packages/osmosdr/_osmosdr_swig.so'])
$ pacman -Qo /usr/lib/libpython3.3m.so
/usr/lib/libpython3.3m.so is owned by python 3.3.0-3

The obvious: need to depend on Python..but wait, that's Python 3!
It appears that the build system grabs the wrong Python version. Haven't tested if this actually breaks anything, but just FYI.

Anyway, thanks for the package!

Comment by 0xfc

2013-03-07 11:07

Modified dependency 'gnuradio-git' to 'gnuradio'.
The notify email wasn't pushed to me, so I didn't see it until today when I check my mailbox. Sorry for the delay.

Comment by ivanovp

2013-03-05 20:11

Unfortunately gnuradio-git needs boost-libs>=1.53, but 1.53 has not available yet. Could you change back the dependency to gnuradio?

Comment by 0xfc

2013-02-18 09:08

Changed dependency 'rtl-sdr-git' to 'rtl-sdr'.

Comment by asdil12

2013-02-18 09:05

There is a binary package for rtl-sdr in [community].
Please change the dependency rtl-sdr-git to rtl-sdr

Comment by 0xfc

2013-02-17 07:41

Added rtl-sdr-git and libuhd to dependencies.

Comment by asdil12

2013-02-16 21:26

please add
rtl-sdr-git and libuhd
to dependencies, (at least to makedepends)
to enable rtl_sdr and USPR support.

Comment by 0xfc

2013-01-30 03:17

Modified PKGBUILD.

Comment by asdil12

2013-01-29 14:34

the python bindings are currently broken as cmake tries to link python2 libs against python3

fix:
cmake -DPYTHON_EXECUTABLE=$(which python2) -DPYTHON_INCLUDE_DIR=$(echo /usr/include/python2*) DPYTHON_LIBRARY=$(echo /usr/lib/libpython2.*.so) -DCMAKE_INSTALL_PREFIX=/usr .
http://upload.kruton.de/files/1359469986/PKGBUILD

Comment by 0xfc

2012-11-30 14:25

Added 'swig' to dependencies.

Comment by freaknils

2012-11-30 14:08

Should add "swig" to depencies array

Comment by ivanovp

2012-07-01 07:13

Thanks!

Comment by 0xfc

2012-07-01 05:33

modified dependency to gnuradio-git.

Comment by ivanovp

2012-07-01 05:24

I want to use this package in gqrx-git package. However I need gnuradio-git instead of gnuradio. Could you change the dependency of your package? I want to avoid to fork your package.

Comment by 0xfc

2012-05-05 05:19

updated PKGBUILD.

Comment by keenerd

2012-05-04 16:45

cmake -DPYTHON_EXECUTABLE=$(which python2) -DCMAKE_INSTALL_PREFIX=/usr ../