Re: [Discuss-gnuradio] complaints about missing volk.h

2019-05-29 Thread TPCgr
Thanks for that tip.  I am trying to build gnuradio under 
Slackware64-current and got further than I had previously using the git 
sources with its own Volk version.

However my build fails at,

[ 24%] Linking CXX executable volk_profile
/usr/bin/ld: CMakeFiles/volk_profile.dir/volk_profile.cc.o: in function 
`write_results(std::vector > const*, bool, 
std::__cxx11::basic_string, std::allocator 
>)':
volk_profile.cc:(.text+0x104d): undefined reference to 
`boost::filesystem::path::parent_path() const'
/usr/bin/ld: volk_profile.cc:(.text+0x105c): undefined reference to 
`boost::filesystem::detail::status(boost::filesystem::path const&, 
boost::system::error_code*)'
/usr/bin/ld: volk_profile.cc:(.text+0x109c): undefined reference to 
`boost::filesystem::path::parent_path() const'
/usr/bin/ld: volk_profile.cc:(.text+0x1237): undefined reference to 
`boost::filesystem::path::parent_path() const'
/usr/bin/ld: volk_profile.cc:(.text+0x1241): undefined reference to 
`boost::filesystem::detail::create_directories(boost::filesystem::path const&, 
boost::system::error_code*)'
[ 24%] Building CXX object 
gnuradio-runtime/lib/CMakeFiles/gnuradio-runtime.dir/buffer.cc.o
collect2: error: ld returned 1 exit status

My distro has boost-1.70.0 which is a quite recent version.  Checking in 
gnuradio/volk/cmake/Modules/VolkBoost.cmake I see,

find_package(Boost "1.35" COMPONENTS ${BOOST_REQUIRED_COMPONENTS})

# This does not allow us to disable specific versions. It is used
# internally by cmake to know the formation newer versions. As newer
# Boost version beyond what is shown here are produced, we must extend
# this list. To disable Boost versions, see below.
set(Boost_ADDITIONAL_VERSIONS
"1.35.0" "1.35" "1.36.0" "1.36" "1.37.0" "1.37" "1.38.0" "1.38" "1.39.0" 
"1.39"
"1.40.0" "1.40" "1.41.0" "1.41" "1.42.0" "1.42" "1.43.0" "1.43" "1.44.0" 
"1.44"
"1.45.0" "1.45" "1.46.0" "1.46" "1.47.0" "1.47" "1.48.0" "1.48" "1.49.0" 
"1.49"
"1.50.0" "1.50" "1.51.0" "1.51" "1.52.0" "1.52" "1.53.0" "1.53" "1.54.0" 
"1.54"
"1.55.0" "1.55" "1.56.0" "1.56" "1.57.0" "1.57" "1.58.0" "1.58" "1.59.0" 
"1.59"
"1.60.0" "1.60" "1.61.0" "1.61" "1.62.0" "1.62" "1.63.0" "1.63" "1.64.0" 
"1.64"
"1.65.0" "1.65" "1.66.0" "1.66" "1.67.0" "1.67" "1.68.0" "1.68" "1.69.0" 
"1.69"
)

ie. highest version listed is 1.69.  Am I basically stuck?

Thanks
Tom Crane

-- 
Tom Crane, Dept. Physics, Royal Holloway, University of London, Egham Hill,
Egham, Surrey, TW20 0EX, England.
Email:  t.cr...@rhul.ac.uk
Fax:+44 (0) 1784 472794

On Tue, 28 May 2019, Müller, Marcus (CEL) wrote:

> Seems you didn't quite install things into a place CMake looks into by
> default; quite possibly, there will be needs to tell CMake about
> /usr/local/include/volk (which is what I guess is the default
> installation prefix if you build from source manually).
>
> Anyway, this wouldn't have helped you! Please don't install a random
> VOLK, that doesn't work; instead, uninstall what you've installed now,
> and
>
> git clone --recursive https://github.com/gnuradio/gnuradio 
> /home/xroot/GNUradio2/
> cd /home/xroot/GNUradio2/
> mkdir build
> cd build
> cmake ..
>
> Due to the recursive clone, you get an in-tree copy of VOLK that matches 
> exactly your GNU Radio version.
> CMake will recognize the presence of that, and then build VOLK alongside with 
> GNU Radio.
>
> Again, I've said this multiple times: going for the source build on CentOS 7 
> is not what I'd like to recommend. That's why I have the repo with an RPM 
> package that I referred you to before.
>
> Best regards,
> Marcus
>
> On Tue, 2019-05-28 at 17:27 +, Chesir, Aaron M. wrote:
>> Folks,
>>
>> I am trying to install GNUradio from source:
>> I downloaded a copy of the gnuradio master repository into my local folder 
>> /home/xroot/GNUradio2/,
>> I created a subdirectory called "build",
>> within that sub-directory, I can execute "cmake ../".
>>
>> When I execute "make", I keep getting the (attached) error about missing 
>> "volk.h"
>>
>> I then installed VOLK from source (cmake, make, sudo make install), and then 
>> went back to my attempt at building GNUradio:
>> I went back to the "build" directory,
>> I ran "make clean",
>> I ran "cmake ../"
>> I ran "make"
>>
>> ?and I keep getting the very same error message.
>>
>> Help.
>>
>> Thanks,
>>
>> Aaron
>>
>>
>> When I execute
>> ___
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Unable to build on 32-bit Slackware-Current (cmake configuration problems)

2016-03-31 Thread TPCgr
Nathan, Fred,
Thanks very much for the follow-up.  I was able to build 
gnuradio-3.7.9.1 with cmake-3.4.3 without any hacking.  I also retried building 
the master & maint branches 
from git using cmake-3.5.0 but still got the,

/usr/bin/python2: can't open file 
'/tmp/gnuradio/junk/gnuradio/gen/volk_compile_utils.py': [Errno 2] No such file 
or directory

errors.  I'm new to gnuradio.  Could you point me in the direction of those sed 
scripts?

Cheers
Tom.

> Nathan,
> 
> I'll read a little more carefully next time.  My apologies.  I will try 
> the sed scripts with cmake 3.5.
> 
> Thank you again.
> 
> Cheers,
> 
> 
> Fred
> 
> On 03/30/2016 03:08 PM, West, Nathan wrote:
> > I'm in the habit of not downloading and extracting tarballs from 
> > strangers on the internet, so I don't know what Tom's latest issue is, 
> > but the problem you refer to is an issue revealed by the release of 
> > cmake 3.5.
> >
> > cmake 3.5 was released after the latest VOLK and GNU Radio release. 
> > That bug has since been fixed on the maint and master branches of git 
> > and will be available in the next release if you're the kind of person 
> > to like releases. One of the listed sed scripts would also work around 
> > this problem, so that's not the latest issue Tom is having.
> >
> > Cheers,
> > -nathan
> >
> > On Wed, Mar 30, 2016 at 3:43 PM, Frederick E. Stevens 
> > mailto:sk8tesgr...@gmail.com>> wrote:
> >
> > Hi,
> >
> > Just tried building on my machine.  Slackware64-14.1 with cmake
> > 3.5.1 built from Slackware64-current.  I would have tried this on
> > a 32 bit machine but I don't have any running any more.  What I
> > found is that cmake 3.5 fails with errors when configuring
> > gnuradio 3.7.9.1 build.  I modified the gnuradio.SlackBuild so
> > that ccmake is executed instead of cmake.  That way I could see
> > what was configured before trying to compile.  With cmake 3.5.1 on
> > the first configure pass I receive the following error messages:
> >
> > CMake Error at volk/lib/CMakeLists.txt:134 (list):
> >list sub-command REMOVE_ITEM requires list to be present.
> >  Call Stack (most recent call first):
> >volk/lib/CMakeLists.txt:159 (OVERRULE_ARCH)
> >
> >
> >
> >  CMake Error at volk/lib/CMakeLists.txt:134 (list):
> >list sub-command REMOVE_ITEM requires list to be present.
> >  Call Stack (most recent call first):
> >volk/lib/CMakeLists.txt:188 (OVERRULE_ARCH)
> >
> >
> >
> >  CMake Error at volk/lib/CMakeLists.txt:134 (list):
> >list sub-command REMOVE_ITEM requires list to be present.
> >  Call Stack (most recent call first):
> >volk/lib/CMakeLists.txt:258 (OVERRULE_ARCH)
> >
> > On the second pass:
> >
> > CMake Error at
> > /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:203
> > (CMAKE_PARSE_ARGUMENTS):
> >Unknown CMake command "CMAKE_PARSE_ARGUMENTS".
> >  Call Stack (most recent call first):
> >/usr/share/cmake-3.5/Modules/FindPythonLibs.cmake:265
> > (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
> >CMakeLists.txt:234 (find_package)
> >
> > Eventually, I went to cmake 3.4.3 and gnuradio is building right
> > now.  You might want to check your cmake and go to pre 3.5 to see
> > if that is the issue that you are having.
> >
> > Hope this helps,
> >
> > Cheers,
> >
> > Fred
> >
> >
> > On 03/30/2016 11:28 AM, tp...@mklab.ph.rhul.ac.uk
> >  wrote:
> >
> > 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

[Discuss-gnuradio] Unable to build on 32-bit Slackware-Current system (cmake configuration problems)

2016-03-30 Thread TPCgr
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