JieHe96 / iOS_Tensorflow_ObjectDetection_Example

An iOS application of Tensorflow Object Detection with different models: SSD with Mobilenet, SSD with InceptionV2, Faster-RCNN-resnet101
129 stars 28 forks source link

1 duplicate symbol for architecture arm64 #5

Closed Christ1992 closed 7 years ago

Christ1992 commented 7 years ago

I followed the instruction and build the 3 static libraries. But when building the app, this problem showed up.

image

duplicate symbol __ZN10tensorflow15CreateGPUTracerEv in: /Users/yingjie/tensorflow-master/tensorflow/contrib/makefile/gen/lib/libtensorflow-core.a(gpu_tracer.o) ld: 1 duplicate symbol for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Could you help me to solve it? Or could you share the final version of Makefile you used(the after modified) for building the ios tensorflow library? I have no idea why I got this problem with gpu_tracer.o.

Hope to hear the advice from you soon.

Christ1992 commented 7 years ago

I simply avoid the installation of gpu_tracker.cc by commenting the line TF_CC_SRCS += tensorflow/core/platform/default/gpu_tracer.cc in Makefile. Since the gpu on ios was helpless for computing, it seems not a problem to delete gpu setting. Although I encountered another issue related to "Conv2D", I could hopefully solve it by your code. Thank you so much for the tutorial. The Google's official example was really poor documented........