If building in a separate directory from the source (e.g. “mkdir
build; cd build; …/configure; make; make check”), then the QA for WAV
doesn’t work because the input file found on line 37 is hard-wired to
“./” … which of course won’t be the correct directory since the
build is done elsewhere. I don’t think ABS_TOP_SRCDIR is available in
python, and setting the PYTHONPATH won’t help because the
wavfile_source file stuff is in compiled C++. This could easily be
done by creating “qa_wavefile.py.in” with @ABS_TOP_SRCDIR@ and adding
this new file to the list dealt with in config/
grc_gnuradio_core.m4 … but maybe someone else knows of a better way?
On 2/28/08, Michael D. [email protected] wrote:
If building in a separate directory from the source (e.g. “mkdir
build; cd build; …/configure; make; make check”), then the QA for WAV
doesn’t work because the input file found on line 37 is hard-wired to
“./” … which of course won’t be the correct directory since the
build is done elsewhere. I don’t think ABS_TOP_SRCDIR is available in
python, and setting the PYTHONPATH won’t help because the
wavfile_source file stuff is in compiled C++. This could easily be
done by creating “qa_wavefile.py.in” with @ABS_TOP_SRCDIR@ and adding
this new file to the list dealt with in config/
grc_gnuradio_core.m4 … but maybe someone else knows of a better way?
Good catch. I recently merged this to the trunk and was afraid that
something like the above might happen.
I can’t think of a better way to fix this than what you’ve described.
–
Johnathan C.
Corgan Enterprises LLC
http://corganenterprises.com/