[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Trying to build gr-fcdproplus for GR 3.8
From: |
Volker Schroer |
Subject: |
Re: [Discuss-gnuradio] Trying to build gr-fcdproplus for GR 3.8 |
Date: |
Fri, 16 Aug 2019 08:13:26 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
Hi,
there was an error in the cmake script. As in the summary noted, the
bundled hidapi should be used.
Just fixed it in the git repositry. This should compile .
But I'd prefer, to use the latest hidapi.
You have to install something like libhidapi-dev and lib-hidapiusb0.
I'm not familiar with pip, But I think you installed the python bindings
of hidapi that are not used.
I hope, it works.
Am 16.08.19 um 03:31 schrieb Barry Duggan:
Hi,
I'm trying to build gr-fcdproplus for GR 3.8
since 'libusb-1.0' was missing, I did:
"sudo apt-get install libusb-1.0"
to load hidapi, I did 'sudo pip3 install hidapi'
the cmake summary is:
-- ================ Build Summary =========================
-- Building gr-fcdproplus : .. for Linux
-- Building for gnuradio : 3.8.0.0
-- Using CMAKE Module path :
/home/pi/gr-fcdproplus/cmake/Modules;/usr/local/lib/cmake/gnuradio
-- CMake Modules Dir : lib/cmake
-- fcdproplus INCLUDES : include/fcdproplus
-- Using install prefix : /usr/local
-- Installing grc files to : /usr/local/share/gnuradio/grc/blocks
-- Bundled hidapi is used
-- ========================================================
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/gr-fcdproplus/build
the make produced (second try):
pi@raspberrypi:~/gr-fcdproplus/build $ make -j3
[ 11%] Built target _fcdproplus_swig_doc_tag
[ 23%] Built target pygen_python_34b56
[ 29%] Building CXX object
lib/CMakeFiles/gnuradio-fcdproplus.dir/fcdpp_control_impl.cc.o
[ 41%] Building CXX object
lib/CMakeFiles/gnuradio-fcdproplus.dir/fcd_control_impl.cc.o
[ 41%] Building CXX object
lib/CMakeFiles/gnuradio-fcdproplus.dir/fcd_impl.cc.o
In file included from /home/pi/gr-fcdproplus/lib/fcd_control_impl.cc:26:
/home/pi/gr-fcdproplus/lib/fcd_control_impl.h:29:10: fatal error:
hidapi.h: No such file or directory
#include "hidapi.h"
^~~~~~~~~~
compilation terminated.
make[2]: *** [lib/CMakeFiles/gnuradio-fcdproplus.dir/build.make:89:
lib/CMakeFiles/gnuradio-fcdproplus.dir/fcd_control_impl.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/pi/gr-fcdproplus/lib/fcdpp_control_impl.cc:23:
/home/pi/gr-fcdproplus/lib/fcdpp_control_impl.h:29:10: fatal error:
hidapi.h: No such file or directory
#include "hidapi.h"
^~~~~~~~~~
compilation terminated.
[ 47%] Built target doxygen_target
make[2]: *** [lib/CMakeFiles/gnuradio-fcdproplus.dir/build.make:76:
lib/CMakeFiles/gnuradio-fcdproplus.dir/fcdpp_control_impl.cc.o] Error 1
[ 58%] Built target fcdproplus_swig_swig_doc
[ 64%] Built target fcdproplus_swig_swig_compilation
make[1]: *** [CMakeFiles/Makefile2:141:
lib/CMakeFiles/gnuradio-fcdproplus.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
What do I need to do to resolve the missing "hidapi.h"? I found a HIDAPI
package on Git. Is is better / different?
Thanks for your help.