Opendigitalradio/ODR-DabMod

OSX .configure error

dmitryelj opened this issue · 16 comments

Hi all,

I'm trying to build the stuff:

./bootstrap.sh - ok
./configure:
checking for SOAPYSDR... no
checking for main in -luhd... yes
checking for boostlib >= 1.54.0... yes
checking for main in -lboost_system... yes
checking for main in -lboost_thread... no
configure: error: library boost_thread is missing

Boost is installed.
Probably boost_thread check should be changed to boost_thread-mt?

I did apply the same changes to ODR-DabMod as I did to ODR-DabMux. Can you also check next ?

Hi. I have now errors in .configure:

checking for clock_gettime in -lrt... no
configure: error: library rt is missing

The same for AudioEnc, btw.

ODR-DabMod still uses clock_gettime which doesn't exist on OSX. I'm currently doing a rewrite of the SDR output code, and I will replace this by std::chrono which is portable. I'm afraid this will take some more time. However, this function is only used in the UHD output: you can remove the line containing clock_gettime from the configure.ac file, run the bootstrap, and configure without enabling UHD, and it should hopefully compile (unless the boost linking issue is still present...)

I was going to test it exactly with UHD :) So, I'll wait for the next version.

Thanks for help.

Does it compile with the line removed and configure --disable-output-uhd as suggested in my previous message?

If you have SoapySDR installed, you can still drive an SDR device using the soapy output. SoapySDR support is detected at ./configure time.

No, I am getting the error with librt yet:

checking for clock_gettime in -lrt... no
configure: error: library rt is missing

You need to remove the check, and bootstrap again.

ODR-DabMod uses memalign in several places, which is deprecated and apparently not existing in malloc.h on OSX. I think I should replace that by posix_memalign. Let me try this.

Can you try again? You should also not need to remove the librt check anymore.

I've added missing <string> includes in all the files that use to_string(), it should work now. Does it still fail?

Yes, I'll have to add support for UHD later. I'll close this for now.