[mlpack-svn] [MLPACK] #287: Build error during linking mlpack
MLPACK Trac
trac at coffeetalk-1.cc.gatech.edu
Fri May 10 12:05:39 EDT 2013
#287: Build error during linking mlpack
----------------------------+-----------------------------------------------
Reporter: shyi | Owner: rcurtin
Type: defect | Status: accepted
Priority: major | Milestone: mlpack 1.0.6
Component: build system | Resolution:
Keywords: boost, linker | Blocking:
Blocked By: |
----------------------------+-----------------------------------------------
Comment (by rcurtin):
Actually, looking at this a bit further, I think I have found the
inconsistency. From CMakeCache.txt:
{{{
Boost_INCLUDE_DIR:PATH=/usr/local/include
...
Boost_LIBRARY_DIRS:FILEPATH=/usr/lib
}}}
So, it is linking against whatever Boost version is in /usr/lib/ but the
include files it is using are in /usr/local/include. My guess is that the
system has a version (probably an older version) of Boost in /usr/lib/ and
/usr/include/, but you have also built a copy locally and installed it to
/usr/local/.
Do Boost libraries exist in /usr/local/lib/? If so, try specifying
BOOST_ROOT as a CMake configuration option: -DBOOST_ROOT=/usr/local/ and
see if that works.
Also, do Boost header files exist in /usr/include/? It may be that you
have installed through your package manager the Boost runtime libraries
but not the development headers (on Debian, this package is libboost-all-
dev; it probably has the same name on Ubuntu and other Debian derivatives
but I am not certain).
--
Ticket URL: <http://trac.research.cc.gatech.edu/fastlab/ticket/287#comment:4>
MLPACK <www.fast-lab.org>
MLPACK is an intuitive, fast, and scalable C++ machine learning library developed by the FASTLAB at Georgia Tech under Dr. Alex Gray.
More information about the mlpack-svn
mailing list