Package Details: gr-osmosdr-git d77577-1

Git Clone URL: (read-only, click to copy)
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:
Licenses: GPL
Provides: gnuradio-osmosdr, gr-osmosdr
Submitter: 0xfc
Maintainer: cwill747
Last Packager: cwill747
Votes: 31
Popularity: 0.189978
First Submitted: 2012-04-24 04:44 (UTC)
Last Updated: 2020-11-17 19:09 (UTC)

Required by (18)

Sources (1)

Pinned Comments

Latest Comments

AkechiShiro commented on 2022-03-19 21:25 (UTC)

Hey the build is currently failing :

-- ######################################################
-- # Gnuradio enabled components                         
-- ######################################################
--   * Python support
--   * IQ File Source & Sink
--   * Osmocom RTLSDR
--   * RTLSDR TCP Client
--   * Ettus USRP Devices
--   * RFSPACE Receivers
--   * AIRSPY Receiver
--   * SoapySDR support
--   * Red Pitaya SDR
-- ######################################################
-- # Gnuradio disabled components                        
-- ######################################################
--   * Osmocom IQ Imbalance Correction
--   * FUNcube Dongle
--   * HackRF & rad1o Badge
--   * nuand bladeRF
--   * AIRSPY HF+ Receiver
--   * FreeSRP support
--   * XTRX SDR
-- Building for version: / 0.2.0
-- Using install prefix: /usr
-- Configuring done
CMake Error in python/bindings/CMakeLists.txt:
  Imported target "pybind11::module" includes non-existent path


  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
==> ERROR: A failure occurred in build().
error: failed to build 'gr-osmosdr-git-d77577-1': 
error: packages failed to build: gr-osmosdr-git-d77577-1

dreieck commented on 2021-09-30 14:33 (UTC) (edited on 2021-09-30 14:35 (UTC) by dreieck)

Please add conflicts=('gnuradio-osmosdr' 'gr-osmosdr').

Thanks for maintaining!

dreieck commented on 2021-09-30 14:30 (UTC)

$pkgver is not monotoneously increading, but this is required. It currently uses git commit has, which is erratic with respect to version number ordering.

Please, use a strictly monotonic increasing versioning scheme.

Best, try to figure out if there is some official upstream version. Then use it as the first part of the version number.

Then, or if the former is not available only, use e.g. git commit count, optionally for information's sake latest commit date and latest git commit hash.

And don't forget to increment $epoch if you change the versioning scheme.

Thanks for maintaining!

maximevince commented on 2020-09-28 09:50 (UTC)

It seems the git repo does not exist anymore...

bidi commented on 2020-04-15 08:10 (UTC)

The build part appears to be wrong:

... cmake -DPYTHON_EXECUTABLE=$(which python2) \ -DPYTHON_INCLUDE_DIR=$(echo /usr/include/python2) \ -DPYTHON_LIBRARY=$(echo /usr/lib/ \ ...

doesn't work, as is looking for Pythonlibs 3. Changing from 2 to 3 make it working. Don't know the impact of it at runtime yet.

deadite66 commented on 2019-09-28 08:55 (UTC)

the call is out for a new maintainer for gr-osmosdr.

jdsnape commented on 2019-09-03 14:42 (UTC)

This fails for me with the error -- Checking for module 'gnuradio-fcd' -- Package 'gnuradio-fcd', required by 'virtual:world', not found

vnuke commented on 2019-05-05 23:38 (UTC)

it seems that gr-osmosdr won't build with gnuradio-git (version 3.8) because of a change in cmake usage in gnuradio. ref:

maximevince commented on 2019-02-27 17:38 (UTC)

I had to add: -DCMAKE_EXE_LINKER_FLAGS=-llog4cpp -DCMAKE_MODULE_LINKER_FLAGS=-llog4cpp -DCMAKE_SHARED_LINKER_FLAGS=-llog4cpp to the cmake arguments to get it to compile.

Otherwise I'd get errors related to: log4cpp AppenderMapStorageInitializer

bastla commented on 2019-01-25 13:26 (UTC)

The libbladerf-git is needed within the current compiler config and should be added as a dependency.

maximevince commented on 2018-06-10 10:23 (UTC)

This should fix boost-1.6.7 compatibility:

diff -ura gr-osmosdr.orig/lib/CMakeLists.txt gr-osmosdr/lib/CMakeLists.txt --- gr-osmosdr.orig/lib/CMakeLists.txt 2018-06-10 12:06:35.662484236 +0200 +++ gr-osmosdr/lib/CMakeLists.txt 2018-06-10 12:06:51.886207437 +0200 @@ -43,6 +43,8 @@ )


deadite66 commented on 2018-06-08 14:54 (UTC)

seems the latest updates have broken gr-osmosdr.

[ 92%] Linking CXX shared library CMakeFiles/gnuradio-osmosdr.dir/osmosdr/ In function boost::condition_variable::condition_variable()':[_ZN5boost18condition_variableC5Ev]+0xa9): undefined reference topthread_condattr_setclock'

akhenakh commented on 2018-05-01 22:23 (UTC)

failed to compile because of rtlsdr_set_bias_tee not found

changed deps to rtlsdr-git solved it

qwattash commented on 2017-10-24 22:58 (UTC)

In order to avoid a compile-time error: error: ‘rtlsdr_set_bias_tee’ was not declared in this scope Use rtl-sdr-git instead of the version from community.

plushvoxel commented on 2016-08-11 02:54 (UTC)

When I install this package and use a oscmocom source in gnuradio-companion, I get an "ImportError: No module named _osmosdr_swig". When I use the nonfree version instead, it works properly.

danmc commented on 2016-07-01 17:36 (UTC)

A while ago, I put together a PKGBUILD for gr-osmosdr-nonfree-git for enabling nonfree components, but I suppose there's no need for them to be separate. I combined the PKGBUILDs at I made quite a few of the dependencies optional as well, since I think they're only required if you have those devices. Thoughts?

pablo1 commented on 2016-02-28 21:29 (UTC)

[ 41%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/ /tmp/yaourt-tmp-binaryplease/aur-gr-osmosdr-git/src/gr-osmosdr/lib/bladerf/ In member function ‘void bladerf_common::set_clock_source(const string&, size_t)’: /tmp/yaourt-tmp-binaryplease/aur-gr-osmosdr-git/src/gr-osmosdr/lib/bladerf/ error: ‘bladerf_vctcxo_tamer_mode’ was not declared in this scope bladerf_vctcxo_tamer_mode tamer_mode = BLADERF_VCTCXO_TAMER_DISABLED; ^ /tmp/yaourt-tmp-binaryplease/aur-gr-osmosdr-git/src/gr-osmosdr/lib/bladerf/ error: ‘tamer_mode’ was not declared in this scope tamer_mode = static_cast<bladerf_vctcxo_tamer_mode>(index); ^ /tmp/yaourt-tmp-binaryplease/aur-gr-osmosdr-git/src/gr-osmosdr/lib/bladerf/ error: ‘bladerf_vctcxo_tamer_mode’ does not name a type tamer_mode = static_cast<bladerf_vctcxo_tamer_mode>(index); ^ /tmp/yaourt-tmp-binaryplease/aur-gr-osmosdr-git/src/gr-osmosdr/lib/bladerf/ error: ‘tamer_mode’ was not declared in this scope int status = bladerf_set_vctcxo_tamer_mode( _dev.get(), tamer_mode ); ^ /tmp/yaourt-tmp-binaryplease/aur-gr-osmosdr-git/src/gr-osmosdr/lib/bladerf/ error: ‘bladerf_set_vctcxo_tamer_mode’ was not declared in this scope int status = bladerf_set_vctcxo_tamer_mode( _dev.get(), tamer_mode ); ^ /tmp/yaourt-tmp-binaryplease/aur-gr-osmosdr-git/src/gr-osmosdr/lib/bladerf/ In member function ‘std::__cxx11::string bladerf_common::get_clock_source(size_t)’: /tmp/yaourt-tmp-binaryplease/aur-gr-osmosdr-git/src/gr-osmosdr/lib/bladerf/ error: ‘bladerf_vctcxo_tamer_mode’ was not declared in this scope bladerf_vctcxo_tamer_mode tamer_mode = BLADERF_VCTCXO_TAMER_INVALID; ^ /tmp/yaourt-tmp-binaryplease/aur-gr-osmosdr-git/src/gr-osmosdr/lib/bladerf/ error: ‘tamer_mode’ was not declared in this scope int status = bladerf_get_vctcxo_tamer_mode( _dev.get(), &tamer_mode ); ^ /tmp/yaourt-tmp-binaryplease/aur-gr-osmosdr-git/src/gr-osmosdr/lib/bladerf/ error: ‘bladerf_get_vctcxo_tamer_mode’ was not declared in this scope int status = bladerf_get_vctcxo_tamer_mode( _dev.get(), &tamer_mode ); ^ /tmp/yaourt-tmp-binaryplease/aur-gr-osmosdr-git/src/gr-osmosdr/lib/bladerf/ In member function ‘void bladerf_common::set_smb_frequency(double)’: /tmp/yaourt-tmp-binaryplease/aur-gr-osmosdr-git/src/gr-osmosdr/lib/bladerf/ error: ‘bladerf_set_smb_frequency’ was not declared in this scope int status = bladerf_set_smb_frequency( _dev.get(), uint32_t(frequency), &actual_frequency ); ^ /tmp/yaourt-tmp-binaryplease/aur-gr-osmosdr-git/src/gr-osmosdr/lib/bladerf/ In member function ‘double bladerf_common::get_smb_frequency()’: /tmp/yaourt-tmp-binaryplease/aur-gr-osmosdr-git/src/gr-osmosdr/lib/bladerf/ error: ‘bladerf_get_smb_frequency’ was not declared in this scope int status = bladerf_get_smb_frequency( _dev.get(), &actual_frequency ); ^ lib/CMakeFiles/gnuradio-osmosdr.dir/build.make:518: recipe for target 'lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/' failed make[2]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/] Error 1 CMakeFiles/Makefile2:135: recipe for target 'lib/CMakeFiles/gnuradio-osmosdr.dir/all' failed make[1]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Makepkg was unable to build . ==> Restart building gr-osmosdr-git ? [y/N] ==> --------------------------------------- ==>

yhfudev commented on 2015-10-07 17:50 (UTC)

Add MiriSDR and OSMOSDR support. @unforgiven512: thanks, I added it to provides @hergenroder and @ajs124: I added the airspy-git as dependence.

unforgiven512 commented on 2015-10-01 20:52 (UTC)

Any chance you could update the "provides" to the following: provides=('gr-osmosdr' 'gnuradio-osmosdr') It would fix some compatibility issues with a few packages (gqrx, gr-air-modes-git, sdrangelove-git, etc.) Thanks!

hergenroder commented on 2015-09-12 08:31 (UTC)

I was also unable to compile this package with airspy installed but after removing it and installing airspy-git, this package compiled fine.

commented on 2015-08-12 16:35 (UTC)

I'm unable to compile this package if I have [community]/airspy installed.

swiftgeek commented on 2014-08-03 18:08 (UTC)

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

0xfc commented on 2014-08-03 14:25 (UTC)

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.

ardevd commented on 2014-08-03 01:58 (UTC)

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.

0xfc commented on 2014-03-11 00:11 (UTC)

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

rek2gnulinux commented on 2014-03-10 23:19 (UTC)

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..

0xfc commented on 2014-01-13 03:18 (UTC)

Seems an upstream bug. Did this happen before?

test0 commented on 2014-01-13 00:53 (UTC)

lib/CMakeFiles/gnuradio-osmosdr.dir/build.make:356: recipe for target 'lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/' failed make[2]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/] 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.

0xfc commented on 2013-11-02 03:17 (UTC)

Added python2-cheetah to makedepends.

gog commented on 2013-11-02 03:00 (UTC)

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

swiftgeek commented on 2013-08-01 02:39 (UTC)


0xfc commented on 2013-08-01 02:36 (UTC)

Modified the git command. Is it working now?

swiftgeek commented on 2013-08-01 02:31 (UTC)

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

0xfc commented on 2013-08-01 02:28 (UTC)

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

swiftgeek commented on 2013-08-01 02:26 (UTC)

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

0xfc commented on 2013-08-01 02:14 (UTC)

Reverted commented git command line in pkgver().

0xfc commented on 2013-07-28 04:23 (UTC)

Set pkgver to constant value 0.

0xfc commented on 2013-07-23 10:39 (UTC)

Changed dependency back to gnuradio.

asdil12 commented on 2013-07-22 19:01 (UTC)

@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.

0xfc commented on 2013-07-02 12:28 (UTC)

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

asdil12 commented on 2013-06-29 12:22 (UTC)

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

masutu commented on 2013-06-29 12:20 (UTC)

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: /lib/cmake/gnuradio/GnuradioConfig.cmake, version: ... " 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

0xfc commented on 2013-06-26 05:01 (UTC)

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

qs9rx commented on 2013-06-23 18:06 (UTC)

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

0xfc commented on 2013-06-23 08:11 (UTC)

Updated PKGBUILD with VCS guidelines.

asdil12 commented on 2013-06-23 05:40 (UTC)

Please swtch to the new vcs source as described in here: 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.

DL0 commented on 2013-06-23 01:38 (UTC)

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!

0xfc commented on 2013-06-17 06:17 (UTC)

Added pkgver.

swiftgeek commented on 2013-06-15 21:19 (UTC)

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"

asdil12 commented on 2013-06-13 06:38 (UTC)

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

DL0 commented on 2013-06-12 22:44 (UTC)

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.

0xfc commented on 2013-05-24 07:17 (UTC)

Added boost to makedepends.

Nidhogg commented on 2013-05-23 12:49 (UTC)

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...

ackalker commented on 2013-04-05 20:53 (UTC)

You're welcome :-)

0xfc commented on 2013-04-05 01:40 (UTC)

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

0xfc commented on 2013-04-05 01:36 (UTC)

Got up just half an hour ago... a rainy and windy morning... Due to some reasons, I cannot get access to; 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 or post the fix here. Thanks for your efforts!

ackalker commented on 2013-04-04 18:06 (UTC)

And all trouble came down to just a missing '-'... Here's my fixed PKGBUILD: 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.

ackalker commented on 2013-04-04 15:52 (UTC)

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.

ackalker commented on 2013-04-04 15:43 (UTC)

You're welcome :-) I've found that gnuradio-git has the same problem: libraries linked to /usr/lib/ 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.

0xfc commented on 2013-04-04 12:59 (UTC)

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.

ackalker commented on 2013-04-04 12:13 (UTC)

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

ackalker commented on 2013-04-04 12:04 (UTC)

(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/'] needed in files ['usr/lib/python2.7/site-packages/osmosdr/']) $ pacman -Qo /usr/lib/ /usr/lib/ 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!

0xfc commented on 2013-03-07 11:07 (UTC)

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.

ivanovp commented on 2013-03-05 20:11 (UTC)

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

0xfc commented on 2013-02-18 09:08 (UTC)

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

asdil12 commented on 2013-02-18 09:05 (UTC)

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

0xfc commented on 2013-02-17 07:41 (UTC)

Added rtl-sdr-git and libuhd to dependencies.

asdil12 commented on 2013-02-16 21:26 (UTC)

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

0xfc commented on 2013-01-30 03:17 (UTC)

Modified PKGBUILD.

asdil12 commented on 2013-01-29 14:34 (UTC)

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 .

0xfc commented on 2012-11-30 14:25 (UTC)

Added 'swig' to dependencies.

freaknils commented on 2012-11-30 14:08 (UTC)

Should add "swig" to depencies array

ivanovp commented on 2012-07-01 07:13 (UTC)


0xfc commented on 2012-07-01 05:33 (UTC)

modified dependency to gnuradio-git.

ivanovp commented on 2012-07-01 05:24 (UTC)

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.

0xfc commented on 2012-05-05 05:19 (UTC)

updated PKGBUILD.

keenerd commented on 2012-05-04 16:45 (UTC)

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