Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

link error undefined symbols for x86_64 #82

Open
bwang2453 opened this issue May 23, 2019 · 0 comments
Open

link error undefined symbols for x86_64 #82

bwang2453 opened this issue May 23, 2019 · 0 comments

Comments

@bwang2453
Copy link

Tried to compile it on Mojave. I have installed HDF5 from Homebrew and source. Both produced the same following error message.

[ 77%] Linking CXX shared library ../../lib/libcaffe.dylib
Undefined symbols for architecture x86_64:
"_H5LTfind_dataset", referenced from:
caffe::SGDSolver::RestoreSolverStateFromHDF5(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in solver.cpp.o
caffe::SGDSolver::RestoreSolverStateFromHDF5(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in solver.cpp.o
void caffe::hdf5_load_nd_dataset_helper(long long, char const*, int, int, caffe::Blob) in hdf5.cpp.o
void caffe::hdf5_load_nd_dataset_helper(long long, char const
, int, int, caffe::Blob) in hdf5.cpp.o
"_H5LTget_dataset_info", referenced from:
void caffe::hdf5_load_nd_dataset_helper(long long, char const
, int, int, caffe::Blob) in hdf5.cpp.o
void caffe::hdf5_load_nd_dataset_helper(long long, char const
, int, int, caffe::Blob) in hdf5.cpp.o
caffe::hdf5_load_string(long long, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in hdf5.cpp.o
"_H5LTget_dataset_ndims", referenced from:
void caffe::hdf5_load_nd_dataset_helper(long long, char const
, int, int, caffe::Blob) in hdf5.cpp.o
void caffe::hdf5_load_nd_dataset_helper(long long, char const
, int, int, caffe::Blob) in hdf5.cpp.o
"_H5LTmake_dataset_double", referenced from:
void caffe::hdf5_save_nd_dataset(long long, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, caffe::Blob const&, bool) in hdf5.cpp.o
"_H5LTmake_dataset_float", referenced from:
void caffe::hdf5_save_nd_dataset(long long, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, caffe::Blob const&, bool) in hdf5.cpp.o
"_H5LTmake_dataset_int", referenced from:
caffe::hdf5_save_int(long long, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int) in hdf5.cpp.o
"_H5LTmake_dataset_string", referenced from:
caffe::hdf5_save_string(long long, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in hdf5.cpp.o
"_H5LTread_dataset_double", referenced from:
void caffe::hdf5_load_nd_dataset(long long, char const
, int, int, caffe::Blob) in hdf5.cpp.o
"_H5LTread_dataset_float", referenced from:
void caffe::hdf5_load_nd_dataset(long long, char const
, int, int, caffe::Blob*) in hdf5.cpp.o
"_H5LTread_dataset_int", referenced from:
caffe::hdf5_load_int(long long, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in hdf5.cpp.o
"_H5LTread_dataset_string", referenced from:
caffe::hdf5_load_string(long long, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in hdf5.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libcaffe.dylib] Error 1
make[1]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2
make: *** [all] Error 2

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

No branches or pull requests

1 participant