discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] build-gnuradio did not install gnuradio-runtime


From: Nick Foster
Subject: Re: [Discuss-gnuradio] build-gnuradio did not install gnuradio-runtime
Date: Mon, 16 Sep 2013 09:09:06 -0700

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:

Hello,

 

i have downloaded the Gnuradio repository with the script build-gnuradiohttp://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
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



reply via email to

[Prev in Thread] Current Thread [Next in Thread]