Hello Nick, Hello Bastian, I again have a question regarding the gr-ieee802-15-4 (gr-foo) project.
As I mentioned before, I downloaded the GnuRadio from Bastibl's Git and run a successful cmake and make (excluding some components with DENABLE like the fcd). Since I did not have the issue of the FindGnuradioRuntime.cmake while running the cmake in the gr-ieee802-15-4, I did not changed any .cmake files in the gr-ieee802-15-4 folder. When I am running the gr-foo make to build the files, I get the following error. Obviously it is a linking issue, but do I need to add a library or some other dependency? I already have all the dependencies from the Ubuntu 10.04 version and build the gnuradio successfully. What lib or file should I link? Should I use a specific compiler/linker? All the errors in the source file, give me the impression of a syntax error. root@openwns-desktop:/home/openwns/GnuRadioBastian/gr-foo/build# make [ 4%] Building CXX object lib/CMakeFiles/gnuradio-foo.dir/packet_dropper_impl.cc.o In file included from /home/openwns/GnuRadioBastian/gr-foo/lib/packet_dropper_impl.cc:18: /home/openwns/GnuRadioBastian/gr-foo/lib/packet_dropper_impl.h:28: error: 'default_random_engine' in namespace 'std' does not name a type /home/openwns/GnuRadioBastian/gr-foo/lib/packet_dropper_impl.h:29: error: ISO C++ forbids declaration of 'uniform_real_distribution' with no type /home/openwns/GnuRadioBastian/gr-foo/lib/packet_dropper_impl.h:29: error: invalid use of '::' /home/openwns/GnuRadioBastian/gr-foo/lib/packet_dropper_impl.h:29: error: expected ';' before '<' token /home/openwns/GnuRadioBastian/gr-foo/lib/packet_dropper_impl.cc: In constructor 'gr::foo::packet_dropper_impl::packet_dropper_impl(double, long unsigned int)': /home/openwns/GnuRadioBastian/gr-foo/lib/packet_dropper_impl.cc:28: error: class 'gr::foo::packet_dropper_impl' does not have any field named 'd_generator' /home/openwns/GnuRadioBastian/gr-foo/lib/packet_dropper_impl.cc:29: error: class 'gr::foo::packet_dropper_impl' does not have any field named 'd_distribution' /home/openwns/GnuRadioBastian/gr-foo/lib/packet_dropper_impl.cc: In member function 'void gr::foo::packet_dropper_impl::msg_handler(pmt::pmt_t)': /home/openwns/GnuRadioBastian/gr-foo/lib/packet_dropper_impl.cc:42: error: 'd_generator' was not declared in this scope /home/openwns/GnuRadioBastian/gr-foo/lib/packet_dropper_impl.cc:42: error: 'd_distribution' was not declared in this scope make[2]: *** [lib/CMakeFiles/gnuradio-foo.dir/packet_dropper_impl.cc.o] Fehler 1 make[1]: *** [lib/CMakeFiles/gnuradio-foo.dir/all] Fehler 2 make: *** [all] Fehler 2 The gr-ieee802-15-4 also gives errors at make, but before solving this, I don't want to bother myself with that. Thanks, Dincer Von: Nick Foster [mailto:bistrom...@gmail.com] Gesendet: Montag, 16. September 2013 18:09 An: Dincer Beken Cc: discuss-gnuradio@gnu.org; bastian.bloe...@uibk.ac.at Betreff: Re: [Discuss-gnuradio] build-gnuradio did not install gnuradio-runtime This has been coming up in many other out-of-tree projects. Tom has fixed it in master. To fix it for gr-ieee802-15-4, take the latest gnuradio/gr-utils/python/modtool/gr-newmod/cmake/Modules/FindGnuradioRuntime.cmake, and copy it into the cmake/Modules directory of the out-of-tree module you're trying to compile. I don't think Bastian's custom gnuradio repo has this patch yet, so use the latest master branch of the official git repo, or apply the attached patch. --n diff --git a/gr-utils/python/modtool/gr-newmod/cmake/Modules/FindGnuradioRuntime.cmake b/gr-utils/python/modtool/gr-newmod/cmake/Modules/FindGnuradioRuntime.cmake index 99a4a6d..2833fb1 100644 @@ -1,5 +1,34 @@ INCLUDE(FindPkgConfig) -PKG_CHECK_MODULES(GNURADIO_RUNTIME gnuradio-runtime) +PKG_CHECK_MODULES(PC_GNURADIO_RUNTIME gnuradio-runtime) + +if(PC_GNURADIO_RUNTIME_FOUND) + # look for include files + FIND_PATH( + GNURADIO_RUNTIME_INCLUDE_DIRS + NAMES gnuradio/top_block.h + HINTS $ENV{GNURADIO_RUNTIME_DIR}/include + ${PC_GNURADIO_RUNTIME_INCLUDE_DIRS} + ${CMAKE_INSTALL_PREFIX}/include + PATHS /usr/local/include + /usr/include + ) + + # look for libs + FIND_LIBRARY( + GNURADIO_RUNTIME_LIBRARIES + NAMES gnuradio-runtime + HINTS $ENV{GNURADIO_RUNTIME_DIR}/lib + ${PC_GNURADIO_RUNTIME_LIBDIR} + ${CMAKE_INSTALL_PREFIX}/lib/ + ${CMAKE_INSTALL_PREFIX}/lib64/ + PATHS /usr/local/lib + /usr/local/lib64 + /usr/lib + /usr/lib64 + ) + + set(GNURADIO_RUNTIME_FOUND ${PC_GNURADIO_RUNTIME_FOUND}) +endif(PC_GNURADIO_RUNTIME_FOUND) INCLUDE(FindPackageHandleStandardArgs) FIND_PACKAGE_HANDLE_STANDARD_ARGS(GNURADIO_RUNTIME DEFAULT_MSG GNURADIO_RUNTIME_LIBRARIES GNURADIO_RUNTIME_INCLUDE_DIRS) On Mon, Sep 16, 2013 at 7:58 AM, Dincer Beken <dbe...@blackned.de<mailto:dbe...@blackned.de>> wrote: Hello, i have downloaded the Gnuradio repository with the script build-gnuradio "http://www.sbrac.org/files/build-gnuradio" on to the Fedora 19 and it worked well. Know I am trying to get install the project "IEEE802.15.4 transceiver for GNU Radio v3.7" >From ccs-labs and I am getting the following Problem while running cmake on >the code. I am very new with Gnu-Radio USRP, and unfortunately Linux (Fedora). Problem: "CMake Error at CMakeLists.txt:99 (message): GnuRadio Runtime required to compile foo" As much as I can see, I do not have the following gnuradio-runtime component in my gnuradio folder that I installed with the build-gnuradio script. http://gnuradio.org/cgit/gnuradio.git/tree/gnuradio-runtime Can I add this component separately to my directory without throwing away my installation from the script? I am very eager for responses. Regards, Dincer _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org<mailto:Discuss-gnuradio@gnu.org> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio