protobuf2.5 iphone5s中崩溃的问题
2013-12-11 10:54
225 查看
我们的游戏用到了protobuf2.5,在其他版本中都是好的,但iphone5s中崩溃,表现为针对DescriptorPool为空了。网上也找不到什么信息,xiaozhong同学各种尝试,都没有搞定,太TMD折腾了。后来从这里获取了解决方案:
http://stackoverflow.com/questions/19848118/weird-ios-libprotobuf-dylib-cause-crash/20406591#20406591
Yes, ImageLoader on the newer devices (iPhone 5S and apparently iPad air) has its own copy of Protocol Buffers which causes symbol collisions.
I hacked around this by editing my google/protobuf/stubs/common.h and inserting the following line near the top of the file:
Now, my copy of the Google protobuf implementation uses the namespace "myapp" instead of "google" and so the symbols don't collide with the system ones.
按照这个提示修改后,就可以了。我只是大致知道怎么回事,有时间再回来分析具体原因。
http://stackoverflow.com/questions/19848118/weird-ios-libprotobuf-dylib-cause-crash/20406591#20406591
Yes, ImageLoader on the newer devices (iPhone 5S and apparently iPad air) has its own copy of Protocol Buffers which causes symbol collisions.
I hacked around this by editing my google/protobuf/stubs/common.h and inserting the following line near the top of the file:
#define google myapp
Now, my copy of the Google protobuf implementation uses the namespace "myapp" instead of "google" and so the symbols don't collide with the system ones.
按照这个提示修改后,就可以了。我只是大致知道怎么回事,有时间再回来分析具体原因。
相关文章推荐
- protobuf2.5 iphone5s中崩溃的问题
- iphone5s上使用libprotobuf 崩溃的问题
- protobuf2.5在iOS上编译及cocos2dx混合使用的问题
- protobuf进行ParseFromString解包失败的一个常见问题
- paddlepaddle编译问题汇总:protobuf版本问题和WITH_SWIG_PY默认状态问题
- 关于Protobuf For Windows下编译问题以及方法
- Ubuntu下关于安装opencv3.x时一直downloading protobuf-cpp-3.1的问题
- Protobuf使用不当导致的程序内存上涨问题
- Protobuf的奇怪问题解决--Expected top - level statement (e.g "message")
- caffe和最新的tensorflow的依赖protobuf不兼容问题
- c++ 使用pbc 解决lua 解析protobuf 问题
- protobuf install安装过程中的一些问题
- protobuf编译问题
- Protobuf2.5.0在PowerLinux平台编译问题解决方法
- protobuf如何用proto文件导出C++代码文件及链接protobuf静态库问题
- protobuf问题总结
- caffe安装中protobuf的版本问题
- Protobuf使用不当导致的程序内存上涨问题
- caffe和caffe2编译无法加载protobuf相关问题解决办法
- c#networkcomms protobuf-net 文件加载出现问题