Protobuf in iOS compilation

Source: Internet
Author: User

The original idea is to compile protobuf on the Mac to generate PROTOC tools first,

Then compile with different CPUs, and finally build the fat a file with Lipo

CPU sequence is i386, armv7 ...

Generate ARMV7 time always inexplicably reported different CPU types of errors, errors in the. Libs folder on the total O file

Try calling find before each call to a different CPU. -name. Libs | Xargs RM-RF

Results even the i386 are compiled to get to the conclusion, the first step to generate the Protoc tool is not only required PROTOC This tool also included in the Libs some intermediate files are also useful

All right, long winded, and finally found out.

The process for the build tool is./configure; Make Make install

The process for generating different CPUs is./configure; Make Copy Make clean

Revert the previously changed things, then add a make at the end of the build tool flow.

Well, inexplicable mistake, somehow solved, recorded

Protobuf in iOS compilation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.