solrex / caffe-mobile

Optimized (for size and speed) Caffe lib for iOS and Android with out-of-the-box demo APP.
Other
317 stars 121 forks source link

Runtime [ERROR] (registry.count(type)) == (1)Unknown layer type: Input (known types: ) #2

Closed weixingsun closed 7 years ago

weixingsun commented 7 years ago

Hi

I got a run-time error when using this as a static lib, and not compile as dynamic lib. static_runtime.log.txt

I know this error may be related to linking settings, like this wiki said: https://github.com/happynear/caffe-windows/blob/master/FAQ.md

Tried following steps:

  1. set: "Other Linker Flags" = "-Wl,-force_load,$(SRCROOT/lib/libcaffe.a", "Mach-O Type" = "Static Library", "Library Search Path"="$(SRCROOT/lib", "Link Binary with Libraries"="lib*.a" ---- no luck, still runtime error
  2. set: "Mach-O Type" = "Dynamic Library", got compile error "Undefined symbols for architecture arm64" dynamic_library_compile.log.txt

Thanks very much

weixingsun commented 7 years ago

a full clean & rebuild did the trick, sorry man