discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Hello and help to get the tutorials


From: Estrada Lupianez, Jenniffer Marie
Subject: Re: [Discuss-gnuradio] Hello and help to get the tutorials
Date: Thu, 12 Oct 2017 23:04:01 +0000

Adrian,

If Boost is installed on the machine, and you are still getting that error, 
then the next thing to check is your environment variables. You may need to set 
BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to 
the location of Boost. BOOSTROOT (or BOOST_ROOT) must point to the location 
where Boost is.

Check these environment variables on your system:
BOOST_ROOT                 - Preferred installation prefix  (or BOOSTROOT)
BOOST_INCLUDEDIR       - Preferred include directory e.g. <prefix>/include
BOOST_LIBRARYDIR       - Preferred library directory e.g. <prefix>/lib

Seems like either Boost version should work.

....From within the CMakeList.txt file in the top directory of the git repo:

########################################################################
# Find boost
########################################################################
if(UNIX AND EXISTS "/usr/lib64")
    list(APPEND BOOST_LIBRARYDIR "/usr/lib64") #fedora 64-bit fix
endif(UNIX AND EXISTS "/usr/lib64")
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"
)
find_package(Boost "1.35" COMPONENTS filesystem system)

if(NOT Boost_FOUND)
    message(FATAL_ERROR "Boost required to compile tutorial")
endif()


A good reference: https://cmake.org/cmake/help/v3.0/module/FindBoost.html

Jenn

________________________________________
From: Discuss-gnuradio <address@hidden> on behalf of Adrian Hodgson 
<address@hidden>
Sent: Thursday, October 12, 2017 4:18 PM
To: address@hidden
Subject: Re: [Discuss-gnuradio] Hello and help to get the tutorials

Jenn

Is there any specific part of Boost I need as I seem to have loads of libboost
runtime libraries installed, granted 1_54_0 which seem to be within the
distro, but I could go up to 1_61 if required as they are available on suse.

Cheers

Adrian


On Thursday 12 Oct 2017 21:41:55 Estrada Lupianez, Jenniffer Marie wrote:
> Adrian,
>
> You are missing the Boost Libraries. Follow this for getting those
> installed:
> http://www.boost.org/doc/libs/1_61_0/more/getting_started/unix-variants.htm
> l
>
> Installation from Source Forge:
> http://www.boost.org/users/history/version_1_61_0.html
>
> Jenn
>
> ________________________________________
> From: Discuss-gnuradio <address@hidden> on
> behalf of Adrian Hodgson <address@hidden> Sent: Thursday,
> October 12, 2017 3:26 PM
> To: address@hidden
> Subject: [Discuss-gnuradio] Hello and help to get the tutorials
>
> Hello group, name is Adrian and I need your help.
>
> I have gnuradio-companion running at this end on two Suse Linux computers
> after some time and messing, have written a few flow charts and I am re-
> watching the hackrf videos over and over a few times.
>
> I have suse Leap42.3
>
> I thought I would try to follow the guided tutorials on mentioned on the
> internet but have fallen down in the early stages following the
> instructions.
>
>
>
> I am following this sequence:
>
> $ git clone https://github.com/gnuradio/gr-tutorial
>
> Managed that after installing git.
>
> Also checked I have cmake and gcc installed.
>
> mkdir build
> cd build
> cmake ..
> make -j8
> sudo make install
> sudo ldconfig
>
> But I fail at the cmake line I get the following errors about Boost!
>
> address@hidden:~/gnuradio/tutorials/solutions/gr-tutorial/build> cmake ..
> -- Build type not specified: defaulting to release.
> CMake Warning at /usr/share/cmake/Modules/FindBoost.cmake:725 (message):
>   Imported targets not available for Boost version
> Call Stack (most recent call first):
>   /usr/share/cmake/Modules/FindBoost.cmake:763
> (_Boost_COMPONENT_DEPENDENCIES)
> /usr/share/cmake/Modules/FindBoost.cmake:1315 (_Boost_MISSING_DEPENDENCIES)
> CMakeLists.txt:60 (find_package)
>
>
> CMake Warning at /usr/share/cmake/Modules/FindBoost.cmake:725 (message):
>   Imported targets not available for Boost version
> Call Stack (most recent call first):
>   /usr/share/cmake/Modules/FindBoost.cmake:763
> (_Boost_COMPONENT_DEPENDENCIES)
> /usr/share/cmake/Modules/FindBoost.cmake:1315 (_Boost_MISSING_DEPENDENCIES)
> CMakeLists.txt:60 (find_package)
>
>
> -- Could NOT find Boost
> CMake Error at CMakeLists.txt:63 (message):
>   Boost required to compile tutorial
>
>
> -- Configuring incomplete, errors occurred!
>
> I can only assume I am missing some packages or dependence, could anyone
> suggest where I am going wrong?
>
> I may be a bit old for new challenges, but would not like to give up just
> yet.
>
> Cheers
>
> Adrian
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


_______________________________________________
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]