Hi List, I'm trying to check the example howto_square_ff with gr_modtool.I work with ubuntu10.04,gnuradio 3.6.1 and cmake2.8.1.When I excute 'cmake ../' in /gnuradio3.6.1/build.I got the following: -- Configuring gr-wxgui support... -- Dependency ENABLE_GR_CORE = ON -- Dependency ENABLE_PYTHON = ON -- Dependency NUMPY_FOUND = TRUE -- Dependency WX_FOUND = TRUE -- Enabling gr-wxgui support. -- Override with -DENABLE_GR_WXGUI=ON/OFF CMake Warning at gr-howto/CMakeLists.txt:85 (find_package): Could not find module FindGruel.cmake or a configuration file for package Gruel. Adjust CMAKE_MODULE_PATH to find FindGruel.cmake or set Gruel_DIR to the directory containing a CMake configuration file for Gruel. The file will have one of the following names: GruelConfig.cmake gruel-config.cmake CMake Warning at gr-howto/CMakeLists.txt:86 (find_package): Could not find module FindGnuradioCore.cmake or a configuration file for package GnuradioCore. Adjust CMAKE_MODULE_PATH to find FindGnuradioCore.cmake or set GnuradioCore_DIR to the directory containing a CMake configuration file for GnuradioCore. The file will have one of the following names: GnuradioCoreConfig.cmake gnuradiocore-config.cmake CMake Error at gr-howto/CMakeLists.txt:90 (message): Gruel required to compile howto Thanks.
on 2012-11-06 14:41
on 2012-11-06 16:24
On Tue, Nov 6, 2012 at 8:39 AM, Gong Zhang <zhangnow@gmail.com> wrote: > -- Override with -DENABLE_GR_WXGUI=ON/OFF > > > CMake Error at gr-howto/CMakeLists.txt:90 (message): > Gruel required to compile howto > Thanks. I assume you have an installed and working copy of GNU Radio on your system? Did you happen to change the install prefix when building? Usually, you just have to add the path to the gruel.pc file to PKG_CONFIG_PATH. You'll find it in $prefix/lib/pkgconfig. If pkg-config can't find GRULE, it won't know how to find the headers or link to the libs. You can test with: pkg-config --modversion gruel If that gives you a response like '3.6.3git' (or whatever version you have installed), things are working. Tom
on 2012-11-07 02:47
Tom Rondeau wrote: > have installed), things are working. > > Tom > I test with 'pkg-config --modversion gruel'.It seems my version is 3.6.1. But the problem remains.
on 2012-11-07 17:23
On Tue, Nov 6, 2012 at 8:46 PM, Gong Zhang <zhangnow@gmail.com> wrote: >> >> If that gives you a response like '3.6.3git' (or whatever version you >> have installed), things are working. >> >> Tom >> > > I test with 'pkg-config --modversion gruel'.It seems my version is 3.6.1. > But the problem remains. Oh, I see what's happening; I didn't look closely enough at your first message. You don't really want to use gr_modtool to add new components to GNU Radio. It's meant to be used to build separate projects that will work with and installed GNU Radio. See, gr_modtool creates a project with cmake files that look for installed GNU Radio libs and headers, including gruel, so it has it's own FindGruel.cmake module that GNU Radio does not have (because Gruel is part of GNU Radio). What you want to do is install GNU Radio first. Then use gr_modtool to build an out-of-tree project; that is, not inside of the GNU Radio source code. Use "gr_modtool.py newmod" and then in gr-<your new module> use "gr_modtool.py add" to add howto_ff. You should see that gr-<yours>/cmake/Modules has a file "FindGruel.cmake" that the component will use to find the installed GNU Radio packages and build against them. Tom
on 2012-11-08 10:14
Tom Rondeau wrote: > build an out-of-tree project; that is, not inside of the GNU Radio > source code. Use "gr_modtool.py newmod" and then in gr-<your new > module> use "gr_modtool.py add" to add howto_ff. You should see that > gr-<yours>/cmake/Modules has a file "FindGruel.cmake" that the > component will use to find the installed GNU Radio packages and build > against them. > > Tom > I'm quite sorry that I failed to explain my question clearly.what I wanna is add the 'howto' module to gnuradio so I can use it in grc.As you seen I excute cmake in ~/gnuradio.3.6.1/build but not ~/gnuradio/gr-howto/build.Thank you for your patience.
on 2012-11-09 15:11
On Thu, 08 Nov 2012 17:13:54 +0800, Gong Zhang wrote: >> What you want to do is install GNU Radio first. Then use gr_modtool to > wanna is add the 'howto' module to gnuradio so I can use it in grc.As > you seen I excute cmake in ~/gnuradio.3.6.1/build but not > ~/gnuradio/gr-howto/build.Thank you for your patience. > You do not need to add a module into gnuradio tree to make it usable in grc. In a out-of-tree project, you just need to edit the module's xml file properly(gr_modtool can take care of the CMakeFiles.txt) and then install it to proper directory by `make install`. Then in grc you should be able to see your out-of-tree module in the list. -- alick Fedora 16 (Verne) user https://fedoraproject.org/wiki/User:Alick
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.