2

Not able to build mupdf. I am getting the following error: Generating cmap and font files Apple broke Xcode external targets yet again, and I can't be bothered to fix it. Run the 'make generate' command manually from now on! If you see an error while running GEN, you've forgotten. Building libraries for i386. GEN generated/cmap_cns.h /bin/sh: ./build/debug-ios-i386/cmapdump: No such file or directory make: * [generated/cmap_cns.h] Error 127

Jay Jay Jay
  • 1,970
  • 2
  • 25
  • 47
  • And did you what the error message suggests? – Matthias Mar 19 '13 at 07:20
  • Yes and the make generate runs fine. But when I open the project file in xcode I still get the error "/bin/sh: ./build/debug-ios-i386/cmapdump: No such file or directory" as mentioned above. – Jay Jay Jay Mar 19 '13 at 14:08

3 Answers3

1

Do what the error message tells you to do.

Open a terminal, cd to the mupdf directory, and run "make generate".

ccxvii
  • 1,873
  • 1
  • 13
  • 11
  • Yes and the make generate runs fine. But when I open the project file in xcode I still get the error "/bin/sh: ./build/debug-ios-i386/cmapdump: No such file or directory" as mentioned above. – Jay Jay Jay Mar 19 '13 at 14:08
  • I will pay 20$ to the paypal account of the person who figures out this before I do. – Jay Jay Jay Mar 20 '13 at 03:11
  • Are you sure the "make generate" runs fine? If you have "generated/*.h" files, the build/debug-ios-i326/cmapdump command shouldn't be invoked, so make sure the "generated" directory has been populated with both cmap_*.h and font_*.h files. I just did a clean checkout and build as per the instructions and all works fine. – ccxvii Mar 20 '13 at 11:40
  • These are the list of files in the generated directory. cmap_cns.h cmap_gb.h cmap_japan.h cmap_korea.h font_base14.h font_cjk.h font_cjk_full.h font_droid.h js_util.h Also note that I get the error I reported, when I open the project file for mupdf in xcode – Jay Jay Jay Mar 20 '13 at 16:50
  • That list of file looks good. I have no idea what could be going wrong then. Apple likes to break things every release, so I would make sure you use both the latest git checkout of mupdf and Xcode 4.6 as that's all I can test, and that works for me. – ccxvii Mar 21 '13 at 10:22
0

The same problem.After "make generate", I restarted Xcode, then build successfully.

ChenXin
  • 373
  • 5
  • 26
  • I got this after I "make generate" and run the project in Xcode "/bin/sh: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ar: No such file or directory" – Bagusflyer Jan 03 '14 at 07:52
0

I was able to generate the MuPDF library without using any make generate or shell script. I wrote a small step-by-step tutorial on this post.

Cheers

Community
  • 1
  • 1
Kevin Delord
  • 2,498
  • 24
  • 22