mhostetter / gr-adsb

GNU Radio OOT module for demodulating and decoding ADS-B packets
GNU General Public License v3.0
143 stars 43 forks source link

Setting PKG_CONFIG_PATH for cppunit doesn't work. #11

Closed romeojulietthotel closed 7 years ago

romeojulietthotel commented 7 years ago

The cmake stage fails because cmake does not find cppunit include files even with PKG_CONFIG_PATH set properly. The cppunit is in a non-standard location. I worked around it by adding the paths to cmake/Modules/FindCppUnit.cmake.

If I run PKG_CONFIG_PATH=/here/is/cppunit/lib/pkgconfig pkg-config --cflags cppunit

or

PKG_CONFIG_PATH=/here/is/cppunit/lib/pkgconfig pkg-config --libs cppunit I get correct results.

mhostetter commented 7 years ago

Thanks for the feedback. What is your system configuration? I'm using the default cmake file from GNU Radio's gr_modtool. Do you have GNU Radio already installed?

romeojulietthotel commented 7 years ago

I guess gnuradio is forcing cppunit on modules but it does not use it.

mhostetter commented 7 years ago

Do you have a suggestion for what I should do? I think the CMake will work fine if GNU Radio is installed with PyBOMBS. I think it covers all the dependencies.

romeojulietthotel commented 7 years ago

Ok, then I think this is a documentation bug or I missed that PyBOMBS was a req.

mhostetter commented 7 years ago

Well, PyBOMBS isn't a requirement necessarily. But PyBOMBS is a nice way to install GNU Radio, ensuring all dependencies are satisfied.

Are you still having trouble with this? Does it prevent the module from building?