[mlpack-svn] [MLPACK] #203: Building on OSX Lion
MLPACK Trac
trac at coffeetalk-1.cc.gatech.edu
Fri Feb 24 15:23:58 EST 2012
#203: Building on OSX Lion
---------------------+------------------------------------------------------
Reporter: jcline3 | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: mlpack | Keywords:
Blocking: | Blocked By:
---------------------+------------------------------------------------------
Tried to build on roommate's macbook, didn't go particularly well.
He has boost installed through mac ports:
{{{
The following ports are currently installed:
boost @1.47.0_0
boost @1.48.0_4 (active)
}}}
And it appears as though CMake detected everything fine:
{{{
Kevin-Hamptons-MacBook-Pro:bin kevoham$ cmake ../
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Found Pthreads: /usr/lib/libpthread.dylib
-- Found components for Armadillo 2.4.3
-- ARMADILLO_INCLUDES = /usr/include/armadillo_bits;/usr/include
-- ARMADILLO_LIBRARIES = /usr/lib/libarmadillo.dylib
-- Found LibXml2: /opt/local/lib/libxml2.dylib
-- Boost version: 1.48.0
-- Found the following Boost libraries:
-- math_c99
-- program_options
-- unit_test_framework
-- Boost version: 1.48.0
-- Found the following Boost libraries:
-- random
-- Found Doxygen: /opt/local/bin/doxygen
CMake Warning at CMakeLists.txt:143 (message):
txt2man not found; man pages will not be generated.
-- Configuring done
-- Generating done
-- Build files have been written to:
/Users/kevoham/Projects/mlpack/trunk/bin
}}}
However, it looks like, when actually compiling it, it doesn't know where
boost is. Perhaps we aren't passing the right location to GCC after
detecting where boost is?
{{{
Kevin-Hamptons-MacBook-Pro:bin kevoham$ make
Scanning dependencies of target mlpack
[ 1%] Building CXX object
src/mlpack/CMakeFiles/mlpack.dir/core/dists/discrete_distribution.cpp.o
In file included from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/log.hpp:10,
from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core.hpp:132,
from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/core/dists/discrete_distribution.hpp:11,
from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/core/dists/discrete_distribution.cpp:7:
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/prefixedoutstream.hpp:16:34:
error: boost/lexical_cast.hpp: No such file or directory
In file included from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core.hpp:133,
from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/core/dists/discrete_distribution.hpp:11,
from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/core/dists/discrete_distribution.cpp:7:
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli.hpp:17:25:
error: boost/any.hpp: No such file or directory
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli.hpp:18:37:
error: boost/program_options.hpp: No such file or directory
In file included from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core.hpp:137,
from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/core/dists/discrete_distribution.hpp:11,
from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/core/dists/discrete_distribution.cpp:7:
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:13:28:
error: boost/random.hpp: No such file or directory
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:19:29:
error: boost/version.hpp: No such file or directory
In file included from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core.hpp:139,
from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/core/dists/discrete_distribution.hpp:11,
from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/core/dists/discrete_distribution.cpp:7:
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/save_restore_utility.hpp:21:31:
error: boost/tokenizer.hpp: No such file or directory
In file included from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core.hpp:133,
from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/core/dists/discrete_distribution.hpp:11,
from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/core/dists/discrete_distribution.cpp:7:
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli.hpp:356:
error: ‘boost’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli.hpp:356:
error: ‘program_options’ is not a namespace-name
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli.hpp:356:
error: expected namespace-name before ‘;’ token
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli.hpp:381:
error: ‘boost’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli.hpp:381:
error: ISO C++ forbids declaration of ‘any’ with no type
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli.hpp:381:
error: expected ‘;’ before ‘value’
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli.hpp:661:
error: ‘po’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli.hpp:661:
error: ISO C++ forbids declaration of ‘options_description’ with no type
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli.hpp:661:
error: expected ‘;’ before ‘desc’
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli.hpp:664:
error: ‘po’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli.hpp:664:
error: ISO C++ forbids declaration of ‘variables_map’ with no type
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli.hpp:664:
error: expected ‘;’ before ‘vmap’
In file included from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli.hpp:760,
from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core.hpp:133,
from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/core/dists/discrete_distribution.hpp:11,
from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/core/dists/discrete_distribution.cpp:7:
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:
In static member function ‘static void mlpack::CLI::Add(const char*, const
char*, const char*, bool)’:
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:37:
error: ‘po’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:37:
error: ‘desc’ was not declared in this scope
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:37:
error: ‘class mlpack::CLI’ has no member named ‘desc’
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:48:
error: ‘po’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:48:
error: expected primary-expression before ‘>’ token
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:48:
error: expected primary-expression before ‘)’ token
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:59:
error: ‘struct mlpack::ParamData’ has no member named ‘value’
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:59:
error: ‘boost’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:
In static member function ‘static T& mlpack::CLI::GetParam(const char*)’:
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:100:
error: ‘struct mlpack::ParamData’ has no member named ‘value’
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:100:
error: ‘boost’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:101:
error: ‘boost’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:101:
error: expected primary-expression before ‘>’ token
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:101:
error: ‘struct mlpack::ParamData’ has no member named ‘value’
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:105:
error: ‘boost’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:105:
error: expected `;' before ‘val’
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:106:
error: ‘val’ was not declared in this scope
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:107:
error: ‘struct mlpack::ParamData’ has no member named ‘value’
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:107:
error: ‘boost’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:109:
error: ‘boost’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:109:
error: expected primary-expression before ‘>’ token
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/cli_impl.hpp:109:
error: ‘struct mlpack::ParamData’ has no member named ‘value’
In file included from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core.hpp:137,
from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/core/dists/discrete_distribution.hpp:11,
from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/core/dists/discrete_distribution.cpp:7:
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:
At global scope:
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:30:
error: ‘boost’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:30:
error: expected initializer before ‘randGen’
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:32:
error: ‘boost’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:32:
error: expected initializer before ‘<’ token
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:34:
error: ‘boost’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:34:
error: expected initializer before ‘<’ token
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:
In function ‘void mlpack::math::RandomSeed(size_t)’:
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:46:
error: ‘randGen’ was not declared in this scope
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:
In function ‘double mlpack::math::Random()’:
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:55:
error: ‘randGen’ was not declared in this scope
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:55:
error: ‘randUniformDist’ was not declared in this scope
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:
In function ‘double mlpack::math::Random(double, double)’:
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:66:
error: ‘boost’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:66:
error: expected primary-expression before ‘>’ token
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:66:
error: ‘dist’ was not declared in this scope
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:69:
error: ‘randGen’ was not declared in this scope
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:
In function ‘int mlpack::math::RandInt(int)’:
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:80:
error: ‘boost’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:80:
error: expected primary-expression before ‘>’ token
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:80:
error: ‘dist’ was not declared in this scope
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:83:
error: ‘randGen’ was not declared in this scope
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:
In function ‘int mlpack::math::RandInt(int, int)’:
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:94:
error: ‘boost’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:94:
error: expected primary-expression before ‘>’ token
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:94:
error: ‘dist’ was not declared in this scope
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:97:
error: ‘randGen’ was not declared in this scope
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:
In function ‘double mlpack::math::RandNormal()’:
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:105:
error: ‘randGen’ was not declared in this scope
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:105:
error: ‘randNormalDist’ was not declared in this scope
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:
In function ‘double mlpack::math::RandNormal(double, double)’:
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:117:
error: ‘randGen’ was not declared in this scope
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/math/random.hpp:117:
error: ‘randNormalDist’ was not declared in this scope
In file included from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/save_restore_utility.hpp:119,
from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core.hpp:139,
from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/core/dists/discrete_distribution.hpp:11,
from
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/core/dists/discrete_distribution.cpp:7:
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/save_restore_utility_impl.hpp:
In member function ‘std::vector<eT, std::allocator<_CharT> >&
mlpack::utilities::SaveRestoreUtility::LoadParameter(std::vector<eT,
std::allocator<_CharT> >&, const std::string&)’:
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/save_restore_utility_impl.hpp:44:
error: ‘boost’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/save_restore_utility_impl.hpp:44:
error: expected primary-expression before ‘char’
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/save_restore_utility_impl.hpp:44:
error: expected `;' before ‘char’
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/save_restore_utility_impl.hpp:45:
error: ‘boost’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/save_restore_utility_impl.hpp:45:
error: ‘boost’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/save_restore_utility_impl.hpp:45:
error: expected primary-expression before ‘char’
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/save_restore_utility_impl.hpp:45:
error: expected `;' before ‘char’
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/save_restore_utility_impl.hpp:47:
error: ‘boost’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/save_restore_utility_impl.hpp:47:
error: ‘boost’ has not been declared
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/save_restore_utility_impl.hpp:47:
error: expected primary-expression before ‘char’
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/save_restore_utility_impl.hpp:47:
error: expected `;' before ‘char’
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/save_restore_utility_impl.hpp:49:
error: ‘tokIt’ was not declared in this scope
/Users/kevoham/Projects/mlpack/trunk/src/mlpack/../mlpack/core/util/save_restore_utility_impl.hpp:49:
error: ‘tok’ was not declared in this scope
make[2]: ***
[src/mlpack/CMakeFiles/mlpack.dir/core/dists/discrete_distribution.cpp.o]
Error 1
make[1]: *** [src/mlpack/CMakeFiles/mlpack.dir/all] Error 2
make: *** [all] Error 2
}}}
--
Ticket URL: <http://trac.research.cc.gatech.edu/fastlab/ticket/203>
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