RobertBiehl / caffe2-ios

☕️ Caffe2Kit. A simple one step integration of Caffe2 for iOS.
Apache License 2.0
71 stars 13 forks source link

Error: Linker command failed with exit code1 #7

Closed suxiaoxinxin closed 7 years ago

suxiaoxinxin commented 7 years ago

When build the project always has a issue: Linker command failed with exit code 1. I really do not know how to figure out it. Thanks a lot!!!

RobertBiehl commented 7 years ago

@suxiaoxinxin Hi, can you please post the whole build log?

suxiaoxinxin commented 7 years ago
2017-05-07 9 28 59

Do you mean this?

RobertBiehl commented 7 years ago

Can you check if you did the "Additional steps:" in README.md Unfortunately I did not yet get the pod configured correctly to not need additional configuration

suxiaoxinxin commented 7 years ago

I remove '-framework' from other linker flags, the error is gone but turn up some warnings:

19408e66cf7b34ae2370332e9809bc4 47d722c1c355a82bd0a4ea291bc4e58

Output of iphone6 like this:

cea85e8333ba554a2d94aaeb7b3503a

Did I make something wrong?

RobertBiehl commented 7 years ago

Hi, it looks like you need to replace let caffe = with self.caffe =. You assign to a local variable, and not the instance property.

Rob

On 8. May 2017, at 14:26, suxiaoxinxin notifications@github.com wrote:

I remove '-framework' from other linker flags, the error is gone but turn up some warnings: https://cloud.githubusercontent.com/assets/28506781/25803986/2cf31068-342c-11e7-9e34-6acd8f66ff55.png https://cloud.githubusercontent.com/assets/28506781/25804027/55504b66-342c-11e7-8110-8b5344ab7859.png Output of iphone6 like this:

https://cloud.githubusercontent.com/assets/28506781/25804068/80f33e18-342c-11e7-8fe8-c3a47205766f.png Did I make something wrong?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/RobertBiehl/caffe2-ios/issues/7#issuecomment-299852850, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbQm7qtcA4_uqzPMAj5CHC7103vMUWrks5r3wnmgaJpZM4NTJMT.

suxiaoxinxin commented 7 years ago

Wow! It worked! Thank you! You're so cool!

raininglixinyu commented 7 years ago

@suxiaoxinxin Hi, how is the performance on your iphone6? My iphone6 costs 30ms to do a single predict step which is far from @RobertBiehl 's 6ms.

RobertBiehl commented 7 years ago

@raininglixinyu Make sure you benchmark the correct part. Currently the pod ensures BGR color layout. This could cost some performance. I better remove the benchmark metrics from the README ;)

I think this pod should be easy to use first, then worry about performance. We're still a bit off the first goal.