discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: TPCgr
Subject: Re: [Discuss-gnuradio] complaints about missing volk.h
Date: Thu, 30 May 2019 00:27:17 +0100 (BST)
User-agent: Alpine 2.21 (LNX 202 2017-01-01)

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<volk_test_results_t, 
std::allocator<volk_test_results_t> > const*, bool, 
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> 
>)':
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:  address@hidden
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 +0000, 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
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]