Mupdf compilation on iOS platform

Source: Internet
Author: User
Although the iOS platform provides a convenient PDF rendering interface, the support for simplified Chinese fonts is incomplete and garbled. Even though there are some improvements in IOS 5.0, there are still garbled issues. Mupdf is an open-source pdf reader with relatively high rendering efficiency and good support for simplified Chinese fonts. Official Website: Workshop. Simulator i386 rules: CC =/developer/platforms/iphonesimulator. platform/developer/usr/bin/gcc-4.2AR =/developer/platforms/iphonesimulator. platform/developer/usr/bin/arcpp =/developer/platforms/iphonesimulator. platform/developer/usr/bin/cppcflags + =-arch i386-M32-pipe-mdynamic-no-pic-STD = c99-wno-trigraphs-fpascal-strings-FASM-Blocks -O0-wreturn-type-wunused-variable-fmessage-length = 0-fvisibility = hidden-mmacosx-version-min = 10.5-I/developer/platforms/iphonesimulator. platform/developer/sdks/iphonesimulator4.2.sdk/usr/include/
-Isysroot/developer/platforms/iphonesimulator. platform/developer/sdks/iphonesimulator4.2.sdkldflags + =-arch i386-M32-isysroot/developer/platforms/iphonesimulator. platform/developer/sdks/iphonesimulator4.2.sdk-wl,-dead_strip-mmacosx-version-min = 10.5 crosscompile = yesnox11 = Yes real machine armv6 rule: CC =/developer/platforms/iphoneos. platform/developer/usr/bin/gcc-4.2AR =/developer/platforms/iphoneos. platform/developer/usr/bin/arcpp =/developer/platforms/iphoneos. platform/developer/usr/bin/cppcflags + =-arch armv6-pipe-mdynamic-no-pic-STD = gnu99-wno-trigraphs-fpascal-strings-O2-wreturn-type -wunused-variable-fmessage-length = 0-fvisibility = hidden-miphoneos-version-min = 4.2-I/developer/platforms/iphoneos. platform/developer/sdks/iphoneos4.2.sdk/usr/include/libxml2
-Isysroot/developer/platforms/iphoneos. platform/developer/sdks/iphoneos4.2.sdkldflags + =-arch armv6-isysroot/developer/platforms/iphoneos. platform/developer/sdks/iphoneos4.2.sdk-miphoneos-version-min = 4.2 crosscompile = yesnox11 = Yes real machine armv7 rules: CC =/developer/platforms/iphoneos. platform/developer/usr/bin/gcc-4.2AR =/developer/platforms/iphoneos. platform/developer/usr/bin/arcpp =/developer/platforms/iphoneos. platform/developer/usr/bin/cppcflags + =-arch armv7-pipe-mdynamic-no-pic-STD = gnu99-wno-trigraphs-fpascal-strings-O2-wreturn-type -wunused-variable-fmessage-length = 0-fvisibility = hidden-miphoneos-version-min = 4.2-I/developer/platforms/iphoneos. platform/developer/sdks/iphoneos4.2.sdk/usr/include/libxml2
-Isysroot/developer/platforms/iphoneos. platform/developer/sdks/iphoneos4.2.sdkldflags + =-arch armv7-isysroot/developer/platforms/iphoneos. platform/developer/sdks/iphoneos4.2.sdk-miphoneos-version-min = 4.2 crosscompile = yesnox11 = Yes run the make libs command to generate * in the directory *. library. Some problems encountered during the process: after the library file is generated, the related interface is called in the project, and the following error occurs: LD: symbol (s) not found. After troubleshooting, a small error has been made: mupdf is compiled using the C compiler, but the project is compiled using C ++. Therefore, you need to add extern "C" {# include <Fitz. h> # include <mupdf. h >} when compiling the library file of the real machine version, the following error occurs: 'asm 'undeclared (first use in this function) has been checked. The compilation parameter settings are incorrect, replace-STD = c99 with-STD = gnu99. For details, see: What's the difference between gnu99 and c99 (clang )?

Http://stackoverflow.com/questions/5313536/whats-the-difference-between-gnu99-and-c99-clang

Finally there is garbled code:
Related Article

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.