[mlpack-svn] [MLPACK] #307: Linking problem with boost during build
MLPACK Trac
trac at coffeetalk-1.cc.gatech.edu
Sat Nov 2 06:07:15 EDT 2013
#307: Linking problem with boost during build
---------------------------+------------------------------------------------
Reporter: Madda | Owner: rcurtin
Type: defect | Status: accepted
Priority: major | Milestone:
Component: build system | Resolution:
Keywords: | Blocking:
Blocked By: |
---------------------------+------------------------------------------------
Comment (by Madda):
Hi,
I manages to solve the problem, but in a very unclean way.
The file /usr/lib/libboost_program_options-mt.so is existing.
What I did is to remove the boost installed with the ubuntu packages, and
to install from scratch boost-1.54. I installed them in /usr/local/boost/
, so in /usr/local/include/boost/ I have the headers and in /usr/local/lib
the .so files.
I tried to compile the mlpack with: ccmake -D BOOST_ROOT=/ust/local/boost
,but I still had the same problems.
So I went into CMakeCache.txt and saw that:
Boost_LIBRARY_DIRS:FILEPATH=/usr/lib
Boost_PROGRAM_OPTIONS_LIBRARY:FILEPATH=/usr/lib/libboost_program_options-
mt.so
Boost_PROGRAM_OPTIONS_LIBRARY_DEBUG:FILEPATH=/usr/lib
/libboost_program_options-mt.so
Boost_PROGRAM_OPTIONS_LIBRARY_RELEASE:FILEPATH=/usr/lib
/libboost_program_options-mt.so
I modified these lines:
Boost_LIBRARY_DIRS:FILEPATH=/usr/local/lib
Boost_PROGRAM_OPTIONS_LIBRARY:FILEPATH=/usr/local/lib/libboost_program_options.so
Boost_PROGRAM_OPTIONS_LIBRARY_DEBUG:FILEPATH=/usr/local/lib/libboost_program_options.so
Boost_PROGRAM_OPTIONS_LIBRARY_RELEASE:FILEPATH=/usr/local/lib/libboost_program_options.so
(In /usr/local/lib/ there is no libboost_program_options-mt.so but only
libboost_program_options.so)
And then it compiles without errors. I think this is not the appropriate
way!!!!
Do you have any suggestion on how to do it in the correct way?
Thanks a lot!
Madda
--
Ticket URL: <http://trac.research.cc.gatech.edu/fastlab/ticket/307#comment:4>
MLPACK <www.fast-lab.org>
MLPACK is an intuitive, fast, and scalable C++ machine learning library developed at Georgia Tech.
More information about the mlpack-svn
mailing list