ofxMSATensorFlow icon indicating copy to clipboard operation
ofxMSATensorFlow copied to clipboard

Compiling issue with QtCreator

Open jeppius opened this issue 6 years ago • 1 comments

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::TensorShapeBasetensorflow::TensorShape::TensorShapeBase(tensorflow::gtl::ArraySlice)", referenced from: __ZN10tensorflow11TensorShapeCI2NS_15TensorShapeBaseIS0_EEENS_3gtl10ArraySliceIxEE in ofxMSATFImageClassifier.cpp.o __ZN10tensorflow11TensorShapeCI2NS_15TensorShapeBaseIS0_EEENS_3gtl10ArraySliceIxEE in ofxMSATFSimpleModel.cpp.o "tensorflow::TensorShapeBasetensorflow::TensorShape::TensorShapeBase()", referenced from: tensorflow::TensorShape::TensorShape() in ofxMSATFImageClassifier.cpp.o tensorflow::TensorShape::TensorShape() in example-basic.cpp.o "tensorflow::TensorShapeBasetensorflow::TensorShape::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::TensorShapeBasetensorflow::TensorShape::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"

jeppius avatar May 10 '18 21:05 jeppius