Loading ...
Sorry, an error occurred while loading the content.

Building MacVim in 10.6

Expand Messages
  • Jjgod Jiang
    Hi, I am trying to build MacVim under 10.6. I already pulled the most recent version from git (4e4be050dd9a399590232327800a663f08103d3d), I already cleaned up
    Message 1 of 2 , Sep 6 1:16 AM
    • 0 Attachment
      Hi,

      I am trying to build MacVim under 10.6. I already pulled the most
      recent version from git (4e4be050dd9a399590232327800a663f08103d3d),
      I already cleaned up everything with xcodebuild clean and make clean
      under icons/, but I'm still getting this error:

      make -C makeicns
      cc -fpascal-strings -O2 -c -o IconFamily.o IconFamily.m
      IconFamily.m: In function ‘-[IconFamily
      setAsCustomIconForFile:withCompatibility:]’:
      IconFamily.m:677: warning: ‘fileAttributesAtPath:traverseLink:’ is
      deprecated (declared at
      /System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:162)
      IconFamily.m:792: warning: ‘changeFileAttributes:atPath:’ is
      deprecated (declared at
      /System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:163)
      IconFamily.m: In function ‘-[IconFamily
      setAsCustomIconForDirectory:withCompatibility:]’:
      IconFamily.m:895: warning: ‘removeFileAtPath:handler:’ is deprecated
      (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:174)
      IconFamily.m: In function ‘+[IconFamily(Internals)
      resampleImage:toIconWidth:usingImageInterpolation:]’:
      IconFamily.m:1069: warning: ‘bestRepresentationForDevice:’ is
      deprecated (declared at
      /System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:128)
      g++ -o makeicns makeicns.o IconFamily.o NSString+CarbonFSRefCreation.o -O2 \
      -framework Foundation -framework AppKit -framework Carbon
      /usr/bin/python make_icons.py .
      MacVim-cpp
      Traceback (most recent call last):
      File "make_icons.py", line 198, in <module>
      main()
      File "make_icons.py", line 190, in main
      textrenderer=SmallTextRenderer, backgroundrenderer=NoIconRenderer)
      File "/Users/jjgod/Codes/objc/MacVim/src/MacVim/icons/docerator.py",
      line 561, in makedocicon
      makedocicon_opts(optsFromDict(**kwargs))
      File "/Users/jjgod/Codes/objc/MacVim/src/MacVim/icons/docerator.py",
      line 537, in makedocicon_opts
      icons = dict([(s, renderer.createIconAtSize(s)) for s in sizes])
      File "/Users/jjgod/Codes/objc/MacVim/src/MacVim/icons/docerator.py",
      line 516, in createIconAtSize
      return createIcon(s, self.bgRenderer, self.textRenderer, self.testtext)
      File "/Users/jjgod/Codes/objc/MacVim/src/MacVim/icons/docerator.py",
      line 365, in createIcon
      output = bg.backgroundAtSize(s).copy()
      File "/Users/jjgod/Codes/objc/MacVim/src/MacVim/icons/docerator.py",
      line 204, in backgroundAtSize
      self.drawAtSize(s)
      File "/Users/jjgod/Codes/objc/MacVim/src/MacVim/icons/docerator.py",
      line 194, in drawAtSize
      self.bgRenderer.groundAtSize(s).draw()
      File "/Users/jjgod/Codes/objc/MacVim/src/MacVim/icons/docerator.py",
      line 147, in groundAtSize
      self._performSplit(s)
      File "/Users/jjgod/Codes/objc/MacVim/src/MacVim/icons/docerator.py",
      line 161, in _performSplit
      ground, shadow = splitGenericDocumentIcon(self.unsplitted, s)
      File "/Users/jjgod/Codes/objc/MacVim/src/MacVim/icons/docerator.py",
      line 218, in splitGenericDocumentIcon
      data = r.data()
      File "/Users/jjgod/Codes/objc/MacVim/src/MacVim/icons/docerator.py",
      line 57, in data
      raise Exception("Unsupported image format")
      Exception: Unsupported image format
      make: *** [MacVim-generic.icns] Error 1

      BTW, Do we really have to regenerate that every time we build?

      - Jiang

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_mac" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • björn
      ... This is the same error as discussed in the previous thread Snow Leopard drops MacOSX10.4u.sdk SDK -- MacVim won t build on 10.6 with two workarounds
      Message 2 of 2 , Sep 6 7:05 AM
      • 0 Attachment
        2009/9/6 Jjgod Jiang:
        > Hi,
        >
        > I am trying to build MacVim under 10.6. I already pulled the most
        > recent version from git (4e4be050dd9a399590232327800a663f08103d3d),
        > I already cleaned up everything with xcodebuild clean and make clean
        > under icons/, but I'm still getting this error:
        > - snip -
        >  File "/Users/jjgod/Codes/objc/MacVim/src/MacVim/icons/docerator.py",
        > line 57, in data
        >    raise Exception("Unsupported image format")
        > Exception: Unsupported image format
        > make: *** [MacVim-generic.icns] Error 1

        This is the same error as discussed in the previous thread "Snow
        Leopard drops MacOSX10.4u.sdk SDK -- MacVim won't build on 10.6" with
        two workarounds detailed there.


        > BTW, Do we really have to regenerate that every time we build?

        Good question -- I was thinking this myself. I think it would be
        better to generate the icons into the icons/ folder and if they
        already exist, simply copy them into the app bundle. This way
        problems such as this would be much easier to work around (just copy
        the icons from somewhere else into the icons/ folder and build...I
        could for instance put them up for download on the Google code page).

        Would anybody be willing to help out by fixing the makefile to accomplish this?

        Björn

        --~--~---------~--~----~------------~-------~--~----~
        You received this message from the "vim_mac" maillist.
        For more information, visit http://www.vim.org/maillist.php
        -~----------~----~----~----~------~----~------~--~---
      Your message has been successfully submitted and would be delivered to recipients shortly.