|
From: | Dincer Beken |
Subject: | Re: [Discuss-gnuradio] build-gnuradio did not install gnuradio-runtime |
Date: | Tue, 17 Sep 2013 08:19:36 +0000 |
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.
address@hidden:/home/openwns/GnuRadioBastian/gr-foo/build# make 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:address@hidden
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 <address@hidden> wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |