-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libprotobuff error #12
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Report
What did you do?
Added Podfile:
` Uncomment the next line to define a global platform for your project
platform :ios, '10.3'
target 'meh' do
/# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
/# Pods for meh
pod 'Caffe2Kit', :git => 'git://github.com/RobertBiehl/caffe2-ios'
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end
target 'mehTests' do
inherit! :search_paths
/# Pods for testing
end
target 'mehUITests' do
inherit! :search_paths
/# Pods for testing
end
end
`
installed pod.
changed bitcode to no
added libstdc++
added other linker flags of:
-force_load
"$(PODS_ROOT)/Caffe2Kit/install/lib/libCaffe2_CPU.a"
My view controller is same as yours:
`
class ViewController: UIViewController {
}
`
I copied all the sources like lion.png etc from your git.
What did you expect to happen?
The project should run. Giving me the output just like in tutorial
What happened instead?
Instead I ended up with
[libprotobuf ERROR /Users/Robert/Documents/Workspace/caffe2-swift/lib/caffe2/third_party/protobuf/src/google/protobuf/descriptor_database.cc:57] File already exists in database: caffe/proto/caffe.proto [libprotobuf FATAL /Users/Robert/Documents/Workspace/caffe2-swift/lib/caffe2/third_party/protobuf/src/google/protobuf/descriptor.cc:1272] CHECK failed: generated_database_->Add(encoded_file_descriptor, size): libc++abi.dylib: terminating with uncaught exception of type google::protobuf::FatalException: CHECK failed: generated_database_->Add(encoded_file_descriptor, size):
Project that demonstrates the issue
libsystem_kernel.dylib
__pthread_kill:0x185709330 <+0>: mov x16, #0x148
0x185709334 <+4>: svc #0x80
-> 0x185709338 <+8>: b.lo 0x185709350 ; <+32>
0x18570933c <+12>: stp x29, x30, [sp, #-0x10]!
0x185709340 <+16>: mov x29, sp
0x185709344 <+20>: bl 0x1856ea098 ; cerror_nocancel
0x185709348 <+24>: mov sp, x29
0x18570934c <+28>: ldp x29, x30, [sp], #0x10
0x185709350 <+32>: ret
`
It happens before the UI even loads.
I have used both simulator and device along with xcode 8 and 9. Although I do realize it is not a problem related to that but still for sanity purposes did that.
ℹ Please link to a project we can download that reproduces the issue.
https://github.com/Quisher/caffe2-ios-exp
The text was updated successfully, but these errors were encountered: