Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to cmake #1

Closed
darkstar007 opened this issue Sep 24, 2013 · 3 comments
Closed

Fails to cmake #1

darkstar007 opened this issue Sep 24, 2013 · 3 comments

Comments

@darkstar007
Copy link

Hi,

When I try to cmake your program, it fails with:

-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") 
-- checking for module 'gnuradio-runtime'
--   found gnuradio-runtime, version 3.7.1
-- Could NOT find GNURADIO_RUNTIME (missing:  GNURADIO_RUNTIME_INCLUDE_DIRS) 
CMake Error at CMakeLists.txt:88 (message):
  GnuRadio Runtime required to compile afsk

This is because of a bug in the FindGnuradioRuntime.cmake file which was fixed in version 3.7.1 of gnuradio.

Thanks,

Matt

@dl1ksv
Copy link
Owner

dl1ksv commented Sep 25, 2013

Thanks for the hint.

I checked against 3.7.0, 3.7.1 and some versions from git and it worked every time.
Where is you install location of gnuradio ? I always use -DCMAKE_INSTALL_PREFIX=/usr/local/gnuradio .

I would like to experience the problem on my system to be sure to fix it.

--Volker

@darkstar007
Copy link
Author

I'm using the default packages for Debian (unstable). This means that its installed in /usr (and not /usr/local). This location means that pkg returns nothing when asked for what include flags are needed (which is its specified behaviour) which then triggers the issue in the CMakefile system.

If you create a new module (say in /tmp) with 'gr_modtool newmod testissue', then look in cmake/Modules and compare the .cmake files it now generates you can see the change that have been done to get around this issue.

@dl1ksv
Copy link
Owner

dl1ksv commented Sep 25, 2013

Thanks for the clarification. I took the FindGnuradioRuntime.cmake from gnuradio-3.7.1 which should fix this bug.

@dl1ksv dl1ksv closed this as completed Sep 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants