codebutler / firesheep

A Firefox extension that demonstrates HTTP session hijacking attacks.
http://codebutler.github.com/firesheep
GNU General Public License v3.0
2.34k stars 635 forks source link

Problem building CAFFE in Matlab 2014b under MAC OSX #223

Open AlamiMejjati opened 9 years ago

AlamiMejjati commented 9 years ago

Hi guys, i downloaded the caffe library and installed all the pre-requirements. I have a mac OSX Yosemite 10.10.4 and i'm trying to build caffe on a MAtlab R2014b. When i execute make clean; make matcaffe; i have this error right here:

PROTOC src/caffe/proto/caffe.proto CXX .build_release/src/caffe/proto/caffe.pb.cc CXX src/caffe/blob.cpp CXX src/caffe/common.cpp src/caffe/common.cpp:28:10: warning: absolute value function 'abs' given an argument of type 'long long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] seed = abs(((s * 181) * ((pid - 83) * 359)) % 104729); ^ src/caffe/common.cpp:28:10: note: use function 'std::abs' instead seed = abs(((s * 181) * ((pid - 83) * 359)) % 104729); ^~~ std::abs 1 warning generated. CXX src/caffe/data_transformer.cpp CXX src/caffe/internal_thread.cpp CXX src/caffe/layer_factory.cpp CXX src/caffe/layers/absval_layer.cpp CXX src/caffe/layers/accuracy_layer.cpp CXX src/caffe/layers/argmax_layer.cpp CXX src/caffe/layers/base_conv_layer.cpp CXX src/caffe/layers/base_data_layer.cpp CXX src/caffe/layers/bnll_layer.cpp CXX src/caffe/layers/concat_layer.cpp CXX src/caffe/layers/contrastive_loss_layer.cpp CXX src/caffe/layers/conv_layer.cpp CXX src/caffe/layers/cudnn_conv_layer.cpp CXX src/caffe/layers/cudnn_pooling_layer.cpp CXX src/caffe/layers/cudnn_relu_layer.cpp CXX src/caffe/layers/cudnn_sigmoid_layer.cpp CXX src/caffe/layers/cudnn_softmax_layer.cpp CXX src/caffe/layers/cudnn_tanh_layer.cpp CXX src/caffe/layers/data_layer.cpp CXX src/caffe/layers/deconv_layer.cpp CXX src/caffe/layers/dropout_layer.cpp CXX src/caffe/layers/dummy_data_layer.cpp CXX src/caffe/layers/eltwise_layer.cpp CXX src/caffe/layers/euclidean_loss_layer.cpp CXX src/caffe/layers/exp_layer.cpp CXX src/caffe/layers/filter_layer.cpp CXX src/caffe/layers/flatten_layer.cpp CXX src/caffe/layers/hdf5_data_layer.cpp CXX src/caffe/layers/hdf5_output_layer.cpp CXX src/caffe/layers/hinge_loss_layer.cpp CXX src/caffe/layers/im2col_layer.cpp CXX src/caffe/layers/image_data_layer.cpp CXX src/caffe/layers/infogain_loss_layer.cpp CXX src/caffe/layers/inner_product_layer.cpp CXX src/caffe/layers/log_layer.cpp CXX src/caffe/layers/loss_layer.cpp CXX src/caffe/layers/lrn_layer.cpp CXX src/caffe/layers/memory_data_layer.cpp CXX src/caffe/layers/multinomial_logistic_loss_layer.cpp CXX src/caffe/layers/mvn_layer.cpp CXX src/caffe/layers/neuron_layer.cpp CXX src/caffe/layers/pooling_layer.cpp CXX src/caffe/layers/power_layer.cpp CXX src/caffe/layers/prelu_layer.cpp CXX src/caffe/layers/reduction_layer.cpp CXX src/caffe/layers/relu_layer.cpp CXX src/caffe/layers/reshape_layer.cpp CXX src/caffe/layers/sigmoid_cross_entropy_loss_layer.cpp CXX src/caffe/layers/sigmoid_layer.cpp CXX src/caffe/layers/silence_layer.cpp CXX src/caffe/layers/slice_layer.cpp CXX src/caffe/layers/softmax_layer.cpp CXX src/caffe/layers/softmax_loss_layer.cpp CXX src/caffe/layers/split_layer.cpp CXX src/caffe/layers/spp_layer.cpp CXX src/caffe/layers/tanh_layer.cpp CXX src/caffe/layers/threshold_layer.cpp CXX src/caffe/layers/window_data_layer.cpp CXX src/caffe/net.cpp CXX src/caffe/solver.cpp CXX src/caffe/syncedmem.cpp CXX src/caffe/util/benchmark.cpp CXX src/caffe/util/cudnn.cpp CXX src/caffe/util/db.cpp CXX src/caffe/util/db_leveldb.cpp CXX src/caffe/util/db_lmdb.cpp CXX src/caffe/util/im2col.cpp CXX src/caffe/util/insert_splits.cpp CXX src/caffe/util/io.cpp CXX src/caffe/util/math_functions.cpp CXX src/caffe/util/upgrade_proto.cpp AR -o .build_release/lib/libcaffe.a /Library/Developer/CommandLineTools/usr/bin/ranlib: file: .build_release/lib/libcaffe.a(cudnn_conv_layer.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: .build_release/lib/libcaffe.a(cudnn_pooling_layer.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: .build_release/lib/libcaffe.a(cudnn_relu_layer.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: .build_release/lib/libcaffe.a(cudnn_sigmoid_layer.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: .build_release/lib/libcaffe.a(cudnn_softmax_layer.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: .build_release/lib/libcaffe.a(cudnn_tanh_layer.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: .buildrelease/lib/libcaffe.a(cudnn.o) has no symbols MEX matlab/+caffe/private/caffe.cpp Warning: Legacy MEX infrastructure is provided for compatibility; it will be removed in a future version of MATLAB. For more information, consult the MEX release notes http://www.mathworks.com/help/matlab/release-notes.html. clang: warning: no such sysroot directory: '-mmacosx-version-min=10.9' In file included from matlab/+caffe/private/caffe_.cpp:12: In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/sstream:174: In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/ostream:131: In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/ios:215: In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iosfwd:90: In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/wchar.h:70: /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/_types.h:27:10: fatal error: 'sys/_types.h' file not found

include <sys/_types.h>

     ^

1 error generated.

mex: compile of ' "matlab/+caffe/private/caffe_.cpp"' failed.

make: *\ [matlab/+caffe/private/caffe_.mexmaci64] Error 255

Apparently it has something to do with the mex, but i don't really know what is it. I did all the solutions that i found on the different forums and yet nothing works. :(

junesg commented 9 years ago

I have the same problem and it has been bugging me. I think it is only a problem with MATLAB2014b. It used to work with MATLAB2013b on my macOS10.10 and it was fine.