memo / ofxMSATensorFlow

C++ openframeworks addon and examples integrating Google's TensorFlow numerical computation and machine learning library
Apache License 2.0
456 stars 87 forks source link

Compiling issue with QtCreator #38

Open jeppius opened 6 years ago

jeppius commented 6 years ago

I can't successfuly compile ofxMSATensorFlow, even with a freshly recompiled TensorFlow library. Any help would be appreciated. Using Qt Creator 4.1.0 - Based on Qt 5.7.0 (Clang 7.0 (Apple), 64 bit) - Built on Aug 24 2016 15:09:37 on a 10.13 High Sierra I get the following linker errors with the provided examples:

Undefined symbols for architecture x86_64: "tensorflow::TensorShapeRep::SlowCopyFrom(tensorflow::TensorShapeRep const&)", referenced from: tensorflow::TensorShapeRep::TensorShapeRep(tensorflow::TensorShapeRep const&) in ofxMSATFImageClassifier.cpp.o tensorflow::TensorShapeRep::TensorShapeRep(tensorflow::TensorShapeRep const&) in ofxMSATFSimpleModel.cpp.o tensorflow::TensorShapeRep::TensorShapeRep(tensorflow::TensorShapeRep const&) in example-basic.cpp.o "tensorflow::TensorShapeRep::DestructorOutOfLine()", referenced from: tensorflow::TensorShapeRep::operator=(tensorflow::TensorShapeRep&&) in ofxMSATFImageClassifier.cpp.o tensorflow::TensorShapeRep::~TensorShapeRep() in ofxMSATFImageClassifier.cpp.o tensorflow::TensorShapeRep::operator=(tensorflow::TensorShapeRep&&) in ofxMSATFSimpleModel.cpp.o tensorflow::TensorShapeRep::~TensorShapeRep() in ofxMSATFSimpleModel.cpp.o tensorflow::TensorShapeRep::~TensorShapeRep() in example-basic.cpp.o "tensorflow::TensorShapeBase::TensorShapeBase(tensorflow::gtl::ArraySlice)", referenced from: ZN10tensorflow11TensorShapeCI2NS_15TensorShapeBaseIS0_EEENS_3gtl10ArraySliceIxEE in ofxMSATFImageClassifier.cpp.o ZN10tensorflow11TensorShapeCI2NS_15TensorShapeBaseIS0_EEENS_3gtl10ArraySliceIxEE in ofxMSATFSimpleModel.cpp.o "tensorflow::TensorShapeBase::TensorShapeBase()", referenced from: tensorflow::TensorShape::TensorShape() in ofxMSATFImageClassifier.cpp.o tensorflow::TensorShape::TensorShape() in example-basic.cpp.o "tensorflow::TensorShapeBase::dims() const", referenced from: msa::tf::tensor_to_pixel_dims(tensorflow::Tensor const&, std::1::basic_string<char, std::1::char_traits, std::__1::allocator >) in ofxMSATFUtils.cpp.o "tensorflow::TensorShapeBase::dim_size(int) const", referenced from: tensorflow::Tensor::dim_size(int) const in ofxMSATFUtils.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) Process failed with exit code 1. The following products could not be built for configuration qtc_Desktop_df5bff5f-debug: example-basic Error while building/deploying project example-basic (kit: Desktop) When executing step "Qbs Build"

kauecosta commented 6 years ago

I stuck at the same point :/