From: Gareth Pye <garethp@gpsatsys.com.au>
To: buildroot@busybox.net
Subject: [Buildroot] CMake can't find Boost
Date: Thu, 28 Apr 2016 16:16:05 +1000 [thread overview]
Message-ID: <5721AAA5.40208@gpsatsys.com.au> (raw)
Hi,
I've had a lot trouble convincing cmake that boost is available. I'm
trying to add the UHD drivers to buildroot. We need it to connect up the
USR B200 to our Odroid C1s.
My uhd.mk looks like:
################################################################################
#
# UHD driver for USRP hardware (ettus research)
#
################################################################################
UHD_VERSION = 003_009_001
UHD_SOURCE = /release_$(UHD_VERSION).tar.gz
UHD_SITE = https://github.com/EttusResearch/uhd/archive
UHD_INSTALL_STAGING = YES
UHD_INSTALL_TARGET = YES
UHD_CONF_OPTS += -DENABLE_EXAMPLES=OFF
UHD_CONF_OPTS += -DENABLE_USB=ON
UHD_CONF_OPTS += -DENABLE_MANUAL=OFF
UHD_CONF_OPTS += -DENABLE_DOXYGEN=OFF
UHD_CONF_OPTS += -DENABLE_UTILS=OFF
UHD_CONF_OPTS += -DENABLE_TESTS=OFF
UHD_CONF_OPTS +=
-Dtarget_link_libraries=/data/Build/buildroot/output/target/usr/lib/
UHD_CONF_OPTS += -DBoost_INCLUDE_DIR=../../../../output/build/boost-1.60.0
UHD_CONF_OPTS +=
-DBoost_LIBRARY_DIR=../../../../output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/lib
UHD_CONF_OPTS += -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH
UHD_DEPENDENCIES = libglib2 host-pkgconf python-mako libusb boost
UHD_SUBDIR = host
UHD_SUPPORTS_IN_SOURCE_BUILD = NO
define UHD_PRE_CONFIGURE_FIXUP
cp -r output/target/usr/lib/python2.7/site-packages/mako
output/host/usr/lib/python2.7/site-packages/
endef
UHD_PRE_CONFIGURE_HOOKS += UHD_PRE_CONFIGURE_FIXUP
$(eval $(cmake-package))
And an attempt at building it looks like (full paste at:
http://pastebin.com/eQmf0YW8):
<snip>
-- Could NOT find Boost
CMake Warning (dev) at CMakeLists.txt:221 (LINK_DIRECTORIES):
This command specifies the relative path
../../../../output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/lib
as a link directory.
Policy CMP0015 is not set: link_directories() treats paths relative
to the
source dir. Run "cmake --help-policy CMP0015" for policy details.
Use the
cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Boost include directories: ../../../../output/build/boost-1.60.0
-- Boost library directories:
../../../../output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/lib
-- Boost libraries:
-- Looking for log2
-- Looking for log2 - found
<snip>
The uhd.mk file is similar to what worked several months ago, but it
appears I didn't event commit to my local repository correctly as trying
to make that doesn't work either.
Should a cmake project using boost 'just work' & I should be complaining
to the UHD guys or is there something I should be tweaking in buildroot?
next reply other threads:[~2016-04-28 6:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-28 6:16 Gareth Pye [this message]
2016-04-28 7:18 ` [Buildroot] CMake can't find Boost gwenhael.goavec
2016-04-28 12:15 ` Samuel Martin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5721AAA5.40208@gpsatsys.com.au \
--to=garethp@gpsatsys.com.au \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.