Skip to content

Comments

Fix matcaffe build on OS X with XCode 6#1310

Closed
dgolden1 wants to merge 3 commits intoBVLC:devfrom
CellScope:matcaffe-xcode6
Closed

Fix matcaffe build on OS X with XCode 6#1310
dgolden1 wants to merge 3 commits intoBVLC:devfrom
CellScope:matcaffe-xcode6

Conversation

@dgolden1
Copy link
Contributor

Fixes vecLib and boost/string issues in #1212

The explicit reference to /usr/lib/libstdc++.dylib in the Makefile is potentially brittle if libstdc++.dylib is installed to a non-standard location; perhaps there's a more elegant way to make this change?

Tested on:

Mac

  • OS X 10.9.5
  • XCode 6.0.1
  • Matlab R2014a
$pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 6.0.0.0.1.1410400753
volume: /
location: /
install-time: 1412278538
groups: com.apple.FindSystemFiles.pkg-group com.apple.DevToolsBoth.pkg-group com.apple.DevToolsNonRelocatableShared.pkg-group

Ubuntu

  • Ubuntu 14.04
  • g++ 4.6
  • Matlab R2014a

Resolves matcaffe build errors like:

Undefined symbols for architecture x86_64:
  "std::string::find(char, unsigned long) const", referenced from:
      boost::basic_format<char, std::char_traits<char>, std::allocator<char> >::parse(std::string const&) in libcaffe.a(math_functions.o)
      int boost::io::detail::upper_bound_from_fstring<std::string, std::ctype<char> >(std::string const&, std::string::value_type, std::ctype<char> const&, unsigned char) in libcaffe.a(math_functions.o)
  "std::string::compare(char const*) const", referenced from:
      _mexFunction in matcaffe.o
      boost::shared_ptr<caffe::Dataset<std::string, std::string, caffe::dataset_internal::DefaultCoder<std::string>, caffe::dataset_internal::DefaultCoder<std::string> > > caffe::DatasetFactory<std::string, std::string>(std::string const&) in libcaffe.a(dataset_factory.o)
      boost::shared_ptr<caffe::Dataset<std::string, std::vector<char, std::allocator<char> >, caffe::dataset_internal::DefaultCoder<std::string>, caffe::dataset_internal::DefaultCoder<std::vector<char, std::allocator<char> > > > > caffe::DatasetFactory<std::string, std::vector<char, std::allocator<char> > >(std::string const&) in libcaffe.a(dataset_factory.o)
      boost::shared_ptr<caffe::Dataset<std::string, caffe::Datum, caffe::dataset_internal::DefaultCoder<std::string>, caffe::dataset_internal::DefaultCoder<caffe::Datum> > > caffe::DatasetFactory<std::string, caffe::Datum>(std::string const&) in libcaffe.a(dataset_factory.o)
      caffe::Filler<float>* caffe::GetFiller<float>(caffe::FillerParameter const&) in libcaffe.a(conv_layer.o)
      caffe::Filler<double>* caffe::GetFiller<double>(caffe::FillerParameter const&) in libcaffe.a(conv_layer.o)
      caffe::Filler<float>* caffe::GetFiller<float>(caffe::FillerParameter const&) in libcaffe.a(dummy_data_layer.o)
@dgolden1
Copy link
Contributor Author

Closing PR as it is a duplicate of #1237

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant