Dear All,
I am attempting to build Gnuradio on a 32-bit x86 Slackware-current system but without success. I have tried several approaches.
o Using the Slackbuilds scripts at https://slackbuilds.org/repository/14.1/development/gnuradio/ which builds gnuradio-3.7.8.1.
o Using the Slackbuilds scripts to build the current release gnuradio-3.7.9.1
o Unpacking gnuradio-3.7.9.1 and following the minimal instructions at http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide
o Downloading the default branch from git and following the minimal instructions at http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide
Firstly I found and fixed/worked-around 3 compiler problems encountered with gcc 5.3.0;
(1) -lpthread needed to be added to CMAKE_C_FLAGS and/or CMAKE_CXX_FLAGS. I added it to both.
(2) This fix "sed -i 's/(intrin.h/(x86intrin.h/g' ../volk/lib/CMakeLists.txt" gets around intrin.h not being present.
(3) This fix "sed -i 's/.\+Werror=unused\-command-line\-argument.\+//g' ../volk/lib/CMakeLists.txt" gets around this Warning option not being available.
Then I was able to start the cmake configuration process. However I get errors like this,
/usr/bin/python2: can't open file '/tmp/SBo/gnuradio-3.7.9.1/gen/volk_compile_utils.py': [Errno 2] No such file or directory
This script is present but in the volk sub-directory, ie. in /tmp/SBo/gnuradio-3.7.9.1/volk/gen/volk_compile_utils.py.
Checking the source tarball, eg.
$ tar -tzvf gnuradio-3.7.9.1.tar.gz | grep volk_compile_utils.py
-rw-rw-r-- root/root 2165 2016-02-07 17:09 gnuradio-3.7.9.1/volk/gen/volk_compile_utils.py
confirms this is where it gets unpacked.
I tried a couple of work-arounds,
(1) Symlinking the volk/* directories into the top-level directory before the cmake stage and then repeating this
symlinking in the build directory. Doing this got me some distance (23%) into the make procedure before it failed. See files gnuradio.SlackBuild.try6 &
gnuradio.SlackBuild.try6.log. Some of these directories already exist in the top level & build directories and so can't be symlinked from below.
I can't believe this should be necessary and I presume must be an artifact of something else being amiss...
(2) Editing the volk/lib/CMakeLists.txt list before running cmake and following the Wiki BuildGuide. The following edits/hacks allowed the cmake
to complete but the make failed soon after starting and I gave up at that stage.
sed -i 's/\${CMAKE_SOURCE_DIR}\/gen/${CMAKE_SOURCE_DIR}\/volk\/gen/g' ../volk/lib/CMakeLists.txt
sed -i 's/\${CMAKE_SOURCE_DIR}\/lib\/qa_utils\.cc/\${CMAKE_SOURCE_DIR}\/volk\/lib\/qa_utils.cc/g' ../volk/apps/CMakeLists.txt
See files tom_build.sh & tom_build.log. Again I can't believe this should be necessary.
Please see http://www.mklab.rhul.ac.uk/~tom/tmp-gnuradio.tar.bz2 for all the above mentioned files.
Please help/advise!
Thanks
Tom Crane
I have the following software packages installed,
cmake-3.5.0
boost-1.59.0
cppunit-1.13.2
fftw-3.3.4
python-2.7.11
swig-3.0.7
numpy-1.8.0
doxygen-1.8.9.1
tetex-3.0 (for Latex)
python-cheetah-2.4.4
pygtk-2.24.0
gsl-1.16
qt-4.8.7
qwt-6.1.2
PyQt-4.11.4
wxPython-2.8.12.1
lxml-3.5.0
alsa-lib-1.1.0
jack-audio-connection-kit-0.124.1
portaudio-V19
alsa-oss-1.0.28
sdl-1.2.15
gcc-5.3.0
gcc-g++-5.3.0
make-4.1
Build host CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz
--
Tom Crane, Dept. Physics, Royal Holloway, University of London, Egham Hill,
Egham, Surrey, TW20 0EX, England.
Email: T.Crane at rhul dot ac dot uk
Fax: +44 (0) 1784 472794
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
No comments:
Post a Comment