Compilation fail. This package now need airspy-git
Search Criteria
Package Details: gr-osmosdr-git 0-18
Package Actions
| 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: | |
| Submitter: | 0xfc |
| Maintainer: | None |
| Last Packager: | None |
| Votes: | 28 |
| First Submitted: | 2012-04-24 04:44 |
| Last Updated: | 2013-11-02 03:17 |
Required by (2)
Sources
Latest Comments
Comment by edward_81
Comment by swiftgeek
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
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
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
Sorry I currently don't have a computer in hand, so I'll check it on Saturday.
Comment by rek2gnulinux
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
Seems an upstream bug. Did this happen before?
Comment by test0
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
Added python2-cheetah to makedepends.
Comment by gog
Build depends on python2-cheetah. I don't know about runtime. You should add it.
Comment by swiftgeek
yes
Comment by 0xfc
Modified the git command. Is it working now?
Comment by swiftgeek
But what about that first letter v? writing 'version' word or v in pkgver doesn't make any sense
Comment by 0xfc
Sorry forgot the "cd $_gitname" line. Reverted now.
Comment by swiftgeek
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
Reverted commented git command line in pkgver().
Comment by 0xfc
Set pkgver to constant value 0.
Comment by 0xfc
Changed dependency back to gnuradio.
Comment by asdil12
@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
Updated dependency 'gnuradio' to 'gnuradio-git'.
Comment by asdil12
@masutu: append "#branch=gr3.6" to the git:// url
Comment by masutu
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
Corrected this typo.
Sorry for the late, but the end-term exams are coming, I'm busy on it. *O.O*
Comment by qs9rx
You have a typo, it is "source" not "sources" for the git repository. ;)
Comment by 0xfc
Updated PKGBUILD with VCS guidelines.
Comment by asdil12
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
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
Added pkgver.
Comment by swiftgeek
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
Just reinstall the gnuradio-git pkg - it still points to tbe latest gnuradio git version.
Comment by DL0
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
Added boost to makedepends.
Comment by Nidhogg
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
You're welcome :-)
Comment by 0xfc
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
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
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
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
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
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
Ah, just read about asdil12's fix, which you implemented. Sadly, it appears not to work (at least in my case).
Comment by ackalker
(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
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
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
Changed dependency 'rtl-sdr-git' to 'rtl-sdr'.
Comment by asdil12
There is a binary package for rtl-sdr in [community].
Please change the dependency rtl-sdr-git to rtl-sdr
Comment by 0xfc
Added rtl-sdr-git and libuhd to dependencies.
Comment by asdil12
please add
rtl-sdr-git and libuhd
to dependencies, (at least to makedepends)
to enable rtl_sdr and USPR support.
Comment by 0xfc
Modified PKGBUILD.
Comment by asdil12
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
Added 'swig' to dependencies.
Comment by freaknils
Should add "swig" to depencies array
Comment by ivanovp
Thanks!
Comment by 0xfc
modified dependency to gnuradio-git.
Comment by ivanovp
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
updated PKGBUILD.
Comment by keenerd
cmake -DPYTHON_EXECUTABLE=$(which python2) -DCMAKE_INSTALL_PREFIX=/usr ../