-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when following installation procedure #13
Comments
I'm also receiving the same error message on Ubuntu 20.04 with GRC 3.10 |
Hi @hardcidr I was able to go around this problem at least and by building BladeRF from the source at this link https://github.com/Nuand/bladeRF. I previsouly uninstalled BladeRF cli. However now I get a different error. When building gr-bladeRF from the source: [ 16%] Built target doxygen_target MyComputer:~/gr-bladeRF/build$ sudo make install [ 5%] Building CXX object lib/CMakeFiles/gnuradio-bladeRF.dir/source_impl.cc.o MyComputer:~/gr-bladeRF/build$ make -j4 [ 16%] Built target doxygen_target So I figured I would build gr-osmosdr from source but I am also running into some errors: So I figured I would build gr-osmosdr from source but I am also running into some errors: I am using the following commands from the gr-osmosdr github "git clone git://git.osmocom.org/gr-osmosdr An this is what I get at the cmake part: CMake Error at /usr/lib/cmake/pybind11/pybind11Tools.cmake:165 (add_library): CMake Error at lib/CMakeLists.txt:51 (add_library): I am going to check for similar errors on the osmosdr git and post it here if I fix the issue ! Best, |
@hardcidr I fixed the issue ! I now have access the the bladeRF blocks in GnuRadio ! Please let me know if you need extra help ! Best, |
shouldn't CMake be configured to detect that header and bail out if it's not available? |
Hello I am trying to build gr-BladeRF for the source by following the procedure on the github:
git clone https://github.com/Nuand/gr-bladeRF.git
cd gr-bladeRF
mkdir build
cd build
cmake ..
make -j4
sudo make install
However I am running into some error and the overall blocks (Source and Sink from BladeRF are not existing in the grc files)
Here is what shows up in my terminal:
MyComputer:~$ git clone https://github.com/Nuand/gr-bladeRF.git
Cloning into 'gr-bladeRF'...
remote: Enumerating objects: 673, done.
remote: Counting objects: 100% (255/255), done.
remote: Compressing objects: 100% (93/93), done.
remote: Total 673 (delta 204), reused 199 (delta 162), pack-reused 418
Receiving objects: 100% (673/673), 245.17 KiB | 2.21 MiB/s, done.
Resolving deltas: 100% (432/432), done.
MyComputer:~$ cd gr-bladeRF/
MyComputer:~/gr-bladeRF$ mkdir build
MyComputer:~/gr-bladeRF$ cd build
MyComputer:~/gr-bladeRF/build$ cmake ..
-- The CXX compiler identification is GNU 11.3.0
-- The C compiler identification is GNU 11.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Checking for module 'gmp'
-- Found gmp, version 6.2.1
-- Found GMP: /usr/lib/x86_64-linux-gnu/libgmpxx.so
-- Using GMP.
-- Found MPLIB: /usr/lib/x86_64-linux-gnu/libgmpxx.so
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.74.0") found components: date_time program_options system regex thread unit_test_framework
-- Found Volk: Volk::volk
-- User set python executable /usr/bin/python3
-- Found PythonInterp: /usr/bin/python3 (found version "3.10.6")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.10.so (found suitable exact version "3.10.6")
-- Found Git: /usr/bin/git
-- Extracting version information from git describe...
-- The build system will automatically enable all components.
-- Use -DENABLE_DEFAULT=OFF to disable components by default.
-- Checking for module 'libbladeRF'
-- Found libbladeRF, version 2.4.1-git-unknown
-- Found libbladeRF: /usr/include, /usr/lib/x86_64-linux-gnu/libbladeRF.so
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.10.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Found pybind11: /usr/include (found version "2.9.1")
--
-- Configuring high resolution timing...
-- Performing Test HAVE_CLOCK_GETTIME
-- Performing Test HAVE_CLOCK_GETTIME - Success
-- Performing Test HAVE_MACH_ABSOLUTE_TIME
-- Performing Test HAVE_MACH_ABSOLUTE_TIME - Failed
-- Performing Test HAVE_QUERY_PERFORMANCE_COUNTER
-- Performing Test HAVE_QUERY_PERFORMANCE_COUNTER - Failed
-- High resolution timing supported through clock_gettime.
-- Configuring nuand bladeRF support...
-- Dependency LIBBLADERF_FOUND = TRUE
-- Enabling nuand bladeRF support.
-- Override with -DENABLE_BLADERF=ON/OFF
-- Using install prefix: /usr/local
-- Building for version: 92ecd5c / 1.0.0git
-- No C++ unit tests... skipping
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- PYTHON and GRC components are enabled
-- Python checking for pygccxml - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/MyName/gr-bladeRF/build
MyComputer:~/gr-bladeRF/build$ make -j4
[ 6%] Generating init.pyc
[ 12%] Building CXX object lib/CMakeFiles/gnuradio-bladeRF.dir/source_impl.cc.o
[ 12%] Built target pygen_apps_9a6dd
[ 18%] Copying bladeRF docstring templates as pybind headers ...
[ 25%] Generating bladeRF_source.block.yml
[ 31%] Generating init.pyo
[ 37%] Generating bladeRF_sink.block.yml
[ 37%] Built target pygen_python_464ee
copy docstrings to /home/MyName/gr-bladeRF/build/python/bindings/source_pydoc.h
copy docstrings to /home/MyName/gr-bladeRF/build/python/bindings/sink_pydoc.h
[ 43%] Building CXX object lib/CMakeFiles/gnuradio-bladeRF.dir/sink_impl.cc.o
[ 43%] Built target bladeRF_docstrings
[ 50%] Building CXX object lib/CMakeFiles/gnuradio-bladeRF.dir/ranges.cc.o
[ 50%] Built target bladeRF_grc_yaml_blocks
[ 56%] Building CXX object lib/CMakeFiles/gnuradio-bladeRF.dir/bladerf/bladerf_source_c.cc.o
[ 62%] Building CXX object lib/CMakeFiles/gnuradio-bladeRF.dir/bladerf/bladerf_sink_c.cc.o
In file included from /home/MyName/gr-bladeRF/lib/bladerf/common_sync_block.h:3,
from /home/MyName/gr-bladeRF/lib/bladerf/bladerf_source_c.h:24,
from /home/MyName/gr-bladeRF/lib/source_impl.h:12,
from /home/MyName/gr-bladeRF/lib/source_impl.cc:8:
/home/MyName/gr-bladeRF/lib/bladerf/bladerf_common.h:293:3: error: ‘bladerf_feature’ does not name a type; did you mean ‘bladerf_sptr’?
293 | bladerf_feature _feature;
| ^~~~~~~~~~~~~~~
| bladerf_sptr
In file included from /home/MyName/gr-bladeRF/lib/bladerf/common_sync_block.h:3,
from /home/MyName/gr-bladeRF/lib/bladerf/bladerf_sink_c.h:24,
from /home/MyName/gr-bladeRF/lib/sink_impl.h:5,
from /home/MyName/gr-bladeRF/lib/sink_impl.cc:8:
/home/MyName/gr-bladeRF/lib/bladerf/bladerf_common.h:293:3: error: ‘bladerf_feature’ does not name a type; did you mean ‘bladerf_sptr’?
293 | bladerf_feature _feature;
| ^~~~~~~~~~~~~~~
| bladerf_sptr
In file included from /home/MyName/gr-bladeRF/lib/bladerf/common_sync_block.h:3,
from /home/MyName/gr-bladeRF/lib/bladerf/bladerf_source_c.h:24,
from /home/MyName/gr-bladeRF/lib/bladerf/bladerf_source_c.cc:42:
/home/MyName/gr-bladeRF/lib/bladerf/bladerf_common.h:293:3: error: ‘bladerf_feature’ does not name a type; did you mean ‘bladerf_sptr’?
293 | bladerf_feature _feature;
| ^~~~~~~~~~~~~~~
| bladerf_sptr
/home/MyName/gr-bladeRF/lib/bladerf/bladerf_source_c.cc: In member function ‘virtual int bladerf_source_c::work(int, gr_vector_const_void_star&, gr_vector_void_star&)’:
/home/MyName/gr-bladeRF/lib/bladerf/bladerf_source_c.cc:286:18: error: ‘BLADERF_FORMAT_SC8_Q7’ was not declared in this scope; did you mean ‘BLADERF_FORMAT_SC16_Q11’?
286 | if (_format == BLADERF_FORMAT_SC8_Q7 || _format == BLADERF_FORMAT_SC8_Q7_META) {
| ^~~~~~~~~~~~~~~~~~~~~
| BLADERF_FORMAT_SC16_Q11
/home/MyName/gr-bladeRF/lib/bladerf/bladerf_source_c.cc:286:54: error: ‘BLADERF_FORMAT_SC8_Q7_META’ was not declared in this scope; did you mean ‘BLADERF_FORMAT_SC16_Q11_META’?
286 | if (_format == BLADERF_FORMAT_SC8_Q7 || _format == BLADERF_FORMAT_SC8_Q7_META) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| BLADERF_FORMAT_SC16_Q11_META
make[2]: *** [lib/CMakeFiles/gnuradio-bladeRF.dir/build.make:76: lib/CMakeFiles/gnuradio-bladeRF.dir/source_impl.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [lib/CMakeFiles/gnuradio-bladeRF.dir/build.make:90: lib/CMakeFiles/gnuradio-bladeRF.dir/sink_impl.cc.o] Error 1
make[2]: *** [lib/CMakeFiles/gnuradio-bladeRF.dir/build.make:118: lib/CMakeFiles/gnuradio-bladeRF.dir/bladerf/bladerf_source_c.cc.o] Error 1
In file included from /home/MyName/gr-bladeRF/lib/bladerf/common_sync_block.h:3,
from /home/MyName/gr-bladeRF/lib/bladerf/bladerf_sink_c.h:24,
from /home/MyName/gr-bladeRF/lib/bladerf/bladerf_sink_c.cc:42:
/home/MyName/gr-bladeRF/lib/bladerf/bladerf_common.h:293:3: error: ‘bladerf_feature’ does not name a type; did you mean ‘bladerf_sptr’?
293 | bladerf_feature _feature;
| ^~~~~~~~~~~~~~~
| bladerf_sptr
/home/MyName/gr-bladeRF/lib/bladerf/bladerf_sink_c.cc: In member function ‘virtual int bladerf_sink_c::work(int, gr_vector_const_void_star&, gr_vector_void_star&)’:
/home/MyName/gr-bladeRF/lib/bladerf/bladerf_sink_c.cc:259:18: error: ‘BLADERF_FORMAT_SC8_Q7’ was not declared in this scope; did you mean ‘BLADERF_FORMAT_SC16_Q11’?
259 | if (_format == BLADERF_FORMAT_SC8_Q7) {
| ^~~~~~~~~~~~~~~~~~~~~
| BLADERF_FORMAT_SC16_Q11
/home/MyName/gr-bladeRF/lib/bladerf/bladerf_sink_c.cc:269:61: error: ‘BLADERF_FORMAT_SC8_Q7_META’ was not declared in this scope; did you mean ‘BLADERF_FORMAT_SC16_Q11_META’?
269 | if (BLADERF_FORMAT_SC16_Q11_META == _format || _format == BLADERF_FORMAT_SC8_Q7_META) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| BLADERF_FORMAT_SC16_Q11_META
/home/MyName/gr-bladeRF/lib/bladerf/bladerf_sink_c.cc: In member function ‘int bladerf_sink_c::transmit_with_tags(const void*, int)’:
/home/MyName/gr-bladeRF/lib/bladerf/bladerf_sink_c.cc:380:12: error: ‘BLADERF_FORMAT_SC8_Q7’ was not declared in this scope; did you mean ‘BLADERF_FORMAT_SC16_Q11’?
380 | case BLADERF_FORMAT_SC8_Q7:
| ^~~~~~~~~~~~~~~~~~~~~
| BLADERF_FORMAT_SC16_Q11
/home/MyName/gr-bladeRF/lib/bladerf/bladerf_sink_c.cc:381:12: error: ‘BLADERF_FORMAT_SC8_Q7_META’ was not declared in this scope; did you mean ‘BLADERF_FORMAT_SC16_Q11_META’?
381 | case BLADERF_FORMAT_SC8_Q7_META:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| BLADERF_FORMAT_SC16_Q11_META
/home/MyName/gr-bladeRF/lib/bladerf/bladerf_sink_c.cc:434:20: error: ‘BLADERF_FORMAT_SC8_Q7’ was not declared in this scope; did you mean ‘BLADERF_FORMAT_SC16_Q11’?
434 | if (_format == BLADERF_FORMAT_SC8_Q7 || _format == BLADERF_FORMAT_SC8_Q7_META) {
| ^~~~~~~~~~~~~~~~~~~~~
| BLADERF_FORMAT_SC16_Q11
/home/MyName/gr-bladeRF/lib/bladerf/bladerf_sink_c.cc:434:56: error: ‘BLADERF_FORMAT_SC8_Q7_META’ was not declared in this scope; did you mean ‘BLADERF_FORMAT_SC16_Q11_META’?
434 | if (_format == BLADERF_FORMAT_SC8_Q7 || _format == BLADERF_FORMAT_SC8_Q7_META) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| BLADERF_FORMAT_SC16_Q11_META
make[2]: *** [lib/CMakeFiles/gnuradio-bladeRF.dir/build.make:132: lib/CMakeFiles/gnuradio-bladeRF.dir/bladerf/bladerf_sink_c.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:251: lib/CMakeFiles/gnuradio-bladeRF.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
MyComputer:~/gr-bladeRF/build$ sudo make install
[sudo] password for MyName:
Consolidate compiler generated dependencies of target gnuradio-bladeRF
[ 6%] Building CXX object lib/CMakeFiles/gnuradio-bladeRF.dir/source_impl.cc.o
In file included from /home/MyName/gr-bladeRF/lib/bladerf/common_sync_block.h:3,
from /home/MyName/gr-bladeRF/lib/bladerf/bladerf_source_c.h:24,
from /home/MyName/gr-bladeRF/lib/source_impl.h:12,
from /home/MyName/gr-bladeRF/lib/source_impl.cc:8:
/home/MyName/gr-bladeRF/lib/bladerf/bladerf_common.h:293:3: error: ‘bladerf_feature’ does not name a type; did you mean ‘bladerf_sptr’?
293 | bladerf_feature _feature;
| ^~~~~~~~~~~~~~~
| bladerf_sptr
make[2]: *** [lib/CMakeFiles/gnuradio-bladeRF.dir/build.make:76: lib/CMakeFiles/gnuradio-bladeRF.dir/source_impl.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:251: lib/CMakeFiles/gnuradio-bladeRF.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
Any idea of what I could be doing wrong ? I am quite new to these kind of problems. Thanks ! Best, Max
The text was updated successfully, but these errors were encountered: