Gnuradio and log4cpp
I'm trying to build gnuradio-3.8 on current. One of the dependencies is log4cpp. I've built and installed log4cpp-1.1.3, but gnuradio still complains it can't find it.
Googling for this throws up a lot of people with the same problem, but no apparent solutions! I know there's a few people on here using gnuradio, so how have you got around this? Or didn't you have the problem? TIA, -- Pete |
Fast check, without building. Cmake form gnuradio 3.8 finds log4cpp 1.0 from SBo and also 1.1.3 from modified SBo on my "almost current".
Check "/CMakeFiles/CMakeError.log" for errors on your system. Edit: Tested on second "little older almost current" and also gunradio cmake finds log4cpp. |
2 Attachment(s)
Thanks for the quick reply! My system is 64 bit -current (up to date). I'm running cmake without any options at the moment, just to check what is required. The only slackbuild I've been able to find is well out of date, so I will probably need to write my own at some point. But first, I have to get it to compile!
Running cmake goes fine until: Code:
-- Configuring volk support... I've tried both log4cpp-1.0 and 1.1.3. As I say, it seems to be a not uncommon problem, but I haven't seen a solution anywhere. Thanks for your help! -- Pete |
As everything works at my computers, I have only one idea. Try add in "/cmake/Modules/FindLOG4CPP.cmake" /usr/lib64 path
Code:
set(LOG4CPP_NAMES log4cpp) BTW. On my system compilation fails due to boost problem. |
I think I might have cracked it! I rebooted the machine, cleared the cache (ccache -C) and suddenly its found log4cpp! I did do a ldconfig and updatedb after installing log4cpp, but whether it was rebooting or clearing the cache, I don't know.
I did run in to the cache problem building Kodi, when the build kept failing until I cleared it! Regarding boost, have you tried Eric's (AlienBob) boost-compat libraries? http://slackware.uk/people/alien/sla.../boost-compat/ I still have a few other dependencies missing in order to build things like the companion, but I know what those are! Onwards and upwards! :) Thanks again for your help! I may be back again, but I think I have a handle on it now! -- Pete |
Quote:
Gnuradio 3.7.13.2 work for me good enough, and I have no need to compile new version now. I wrote about boost only for your information. |
OK, I'll let you know how I get on! Just sorting out the remaining dependencies....
-- Pete |
Gnuradio-3.8 compiled without problems, once I'd got the dependencies sorted out. But I'm having an issue with gqrx - or rather, its dependencies, gr-osmosdr and gr-iqbal, neither of which seem to like boost-1.70.
Work continues... -- Pete |
Although gnuradio-3.8 compiled fine, I'm having major problems with gqrx - or rather its dependencies. Both gr-iqbal and gr-osmosdr complained about boost-1.70.
I got round this by adding: Code:
-DBoost_NO_BOOST_CMAKE=ON I had to fiddle around a bit with the -DCMAKE_PREFIX_PATH, as gnuradio-3.8 installs some of the config files in different directories than were being searched. But then I hit a brick wall! Neither gr-osmosdr nor gr-iqbal recognise the gnuradio runtime! They haven't been updated in years (!), and rely on gnuradio-3.7.x OK, so go back to gnuradio-3.7.13.2. This refuses to recognise the wxGTK3 install. It wants 2.7! (gnuradio-2.8 was quite happy with wxGTK3). So, lets try to get the qt interface to build instead. This involves installing qwt. So, compile and install qwt-6.1.4. Still doesn't recognise it! I can only assume that gnuradio-3.7 is so old that it will only work with the obsolete qwt5. At this point I'm losing the will to live! -- Pete |
Quote:
This is the reason that I didn't submit an update for so long in SBo... Last update for gr-iqbal was 5 years ago and its API is still on gnuradio 3.7 and the boost requirement stops to 1.69 I will try to fork and update gr-iqbal to be compatible with gnuradio 3.8 gqrx is still in 2.11.5 although there's some small changes in current maybe I need to reconsider for some of the required dependencies in order to successfully build in current... |
Thanks for that information! One of the perils of life on the bleeding edge, I guess!
gr-osmosdr doesn't seem to have been upgraded in ages either. Setting the boost requirement as I outlined above does get it to compile - seemingly with boost - but then I ran into the other issues! In the meantime, I'm having a look at CubicSDR, which seems to do everything I need, with far fewer dependencies (I hope!). Cheers, -- Pete |
Quote:
Quote:
|
Not at all! Its the new Nooelec R820T2. I'm not a Ham radio person, but I do design and build my own radio control equipment, so any form of spectrum analyzer is very useful! ;-)
-- Pete |
Quote:
|
Quote:
Found out be SOLUTION: just comment out line 449 and don’t bother looking for log4cpp. Seems to cmake and make/compile just fine. What could possibly go wrong😉 |
All times are GMT -5. The time now is 03:49 PM. |