[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Problem with cmake not finding includes
From: |
Tom Rondeau |
Subject: |
Re: [Discuss-gnuradio] Problem with cmake not finding includes |
Date: |
Fri, 23 Aug 2013 13:05:25 -0400 |
On Fri, Aug 23, 2013 at 10:51 AM, <address@hidden> wrote:
> Tom Rondeau writes:
> > On Fri, Aug 23, 2013 at 6:11 AM, <address@hidden> wrote:
> > >
> > > Hi,
> > >
> > > I'm porting my real time Doppler correction block from 3.6 to 3.7 but
> > > have come across an issue that when I try to cmake it, I get an error
> > > saying it cannot find the runtime includes. To replicate this I
> > > created a new block ('howto') and tried to cmake that and got the same
> > > error:
> > >
> > > # gr_modtool newmod howto
> > > Creating out-of-tree module in ./gr-howto... Done.
> > > Use 'gr_modtool add' to add a new block to this currently empty module.
> > >
> > > # cd gr-howto
> > >
> > > # ls
> > > apps cmake CMakeLists.txt docs grc include lib python swig
> > >
> > > # mkdir build
> > > # cd build/
> > > # cmake ../
> > > -- The CXX compiler identification is GNU 4.8.1
> > > -- The C compiler identification is GNU 4.8.1
> > > -- Check for working CXX compiler: /usr/bin/c++
> > > -- Check for working CXX compiler: /usr/bin/c++ -- works
> > > -- Detecting CXX compiler ABI info
> > > -- Detecting CXX compiler ABI info - done
> > > -- Check for working C compiler: /usr/bin/cc
> > > -- Check for working C compiler: /usr/bin/cc -- works
> > > -- Detecting C compiler ABI info
> > > -- Detecting C compiler ABI info - done
> > > -- Build type not specified: defaulting to release.
> > > -- Boost version: 1.54.0
> > > -- Found the following Boost libraries:
> > > -- filesystem
> > > -- system
> > > -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
> > > -- checking for module 'gnuradio-runtime'
> > > -- found gnuradio-runtime, version 3.7.0
> > > -- Could NOT find GNURADIO_RUNTIME (missing:
> GNURADIO_RUNTIME_INCLUDE_DIRS)
> > > -- checking for module 'cppunit'
> > > -- found cppunit, version 1.13.1
> > > -- Found CPPUNIT: /usr/lib/x86_64-linux-gnu/libcppunit.so;dl
> > > CMake Error at CMakeLists.txt:98 (message):
> > > GnuRadio Runtime required to compile howto
> > >
> > >
> > > -- Configuring incomplete, errors occurred!
> > >
> > >
> > > I've tried to figure out what cmake is actually looking for, but
> > > quickly ran out of enthusiasm for trying to debug cmake
> > > (--debug-output is of very limited help, and my usual method of
> > > 'strace' to see what files a process is actually looking for is
> > > thwarted due to the use of pipes/subprocesses). If I look in
> > > /usr/lib/cmake/gnuradio/GnuradioConfig.cmake I see that there is a
> > > line:
> > > GR_MODULE(RUNTIME gnuradio-runtime gnuradio/top_block.h gnuradio-runtime)
> > > which to me implies that it might be looking for top_block.h to check
> > > that runtime include are installed. If I do:
> > >
> > > # ls -l /usr/include/gnuradio/top_block.h
> > >
> > > -rw-r--r-- 1 root root 4822 Jun 9 20:44
> /usr/include/gnuradio/top_block.h
> > >
> > >
> > > I'm running debian unstable on amd64 with gnuradio-dev (3.7.0-5)
> > > installed.
> > >
> > > Any suggestions as to how to fix or debug this issue would be
> > > gratefully received!
> > >
> > > Thanks,
> > >
> > > Matt
> >
> >
> > Matt,
> >
> > If you run 'pkg-config --modversion gnuradio-runtime' does it return
> > the correct version number? If pkg-config can't find it, something
> > either didn't get installed correctly or pkg-config is misconfigured
> > (because it looks like you've installed into /usr, and pkg-config
> > should look in /usr/lib/pkgconfig by default).
> >
> > --
> > Tom
> > Visit us at GRCon13 Oct. 1 - 4
> > http://www.trondeau.com/grcon13
>
> Tom,
>
> 'pkg-config --modversion gnuradio-runtime' returns '3.7.0'.
>
> These are the debian (unstable) packages, I'm not sure how they were
> configured. If its only me that has this problem, I'll raise a bug
> against the debian packages.
>
> Thanks,
>
> Matt
You have to have the dev packages installed as well or you don't have
any of the header files. Make sure you have /usr/include/gnuradio.
--
Tom
Visit us at GRCon13 Oct. 1 - 4
http://www.trondeau.com/grcon13
- [Discuss-gnuradio] Problem with cmake not finding includes, matt . nottingham, 2013/08/23
- Re: [Discuss-gnuradio] Problem with cmake not finding includes, Andrew Davis, 2013/08/23
- Message not available
- Message not available
- Re: [Discuss-gnuradio] Problem with cmake not finding includes,
Tom Rondeau <=
- Re: [Discuss-gnuradio] Problem with cmake not finding includes, matt . nottingham, 2013/08/24
- Re: [Discuss-gnuradio] Problem with cmake not finding includes, Andrew Davis, 2013/08/24
- Re: [Discuss-gnuradio] Problem with cmake not finding includes, Andrew Davis, 2013/08/24
- Re: [Discuss-gnuradio] Problem with cmake not finding includes, Marcus Müller, 2013/08/24
- Re: [Discuss-gnuradio] Problem with cmake not finding includes, Andrew Davis, 2013/08/24
- Re: [Discuss-gnuradio] Problem with cmake not finding includes, Andrew Davis, 2013/08/24
- Re: [Discuss-gnuradio] Problem with cmake not finding includes, Tom Rondeau, 2013/08/24
- Re: [Discuss-gnuradio] Problem with cmake not finding includes, Tom McDermott, 2013/08/24
- Re: [Discuss-gnuradio] Problem with cmake not finding includes, Johnathan Corgan, 2013/08/24
- Re: [Discuss-gnuradio] Problem with cmake not finding includes, matt . nottingham, 2013/08/27