docerator.py:
def data(self):
"""Returns data in ARGB order (on intel, at least)."""
r = self.bitmapRep
print r
if r.bitmapFormat() != (NSAlphaNonpremultipliedBitmapFormat |
NSAlphaFirstBitmapFormat) or \
r.bitsPerPixel() != 32 or \
r.isPlanar() or \
r.samplesPerPixel() != 4:
raise Exception("Unsupported image format")
return self.bitmapRep.bitmapData()
make output:
/usr/bin/python setup.py install --install-lib .
running install
running build
running build_ext
building 'loadfont' extension
creating build
creating build/temp.macosx-10.6-universal-2.6
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -
Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -
arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/
Versions/2.6/include/python2.6 -c loadfont.c -o build/temp.macosx-10.6-
universal-2.6/loadfont.o
creating build/lib.macosx-10.6-universal-2.6
gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc
-arch x86_64 build/temp.macosx-10.6-universal-2.6/loadfont.o -o build/
lib.macosx-10.6-universal-2.6/loadfont.so
running install_lib
copying build/lib.macosx-10.6-universal-2.6/loadfont.so -> .
running install_egg_info
Removing ./loadfont-1.0-py2.6.egg-info
Writing ./loadfont-1.0-py2.6.egg-info
curl http://download.damieng.com/latest/EnvyCodeR --location -o
EnvyCodeR.zip
% Total % Received % Xferd Average Speed Time Time
Time Current
Dload Upload Total Spent
Left Speed
100 168k 100 168k 0 0 150k 0 0:00:01 0:00:01
--:--:-- 516k
unzip -jo EnvyCodeR.zip
Archive: EnvyCodeR.zip
inflating: Envy Code R Bold.ttf
inflating: Envy Code R Command Prompt.reg
inflating: Envy Code R Italic.ttf
inflating: Envy Code R.ttf
inflating: Read Me.txt
inflating: Envy Code R VS Italic-as-bold.ttf
inflating: Envy Code R VS.ttf
# unzip uses the file date from the zip file. Change the file date to
# "now", so that the zip is not unzipped in every `make` run.`
touch Envy\ Code\ R\ Bold.ttf
make -C makeicns
cc -fpascal-strings -O2 -c -o makeicns.o makeicns.m
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)
cc -fpascal-strings -O2 -c -o NSString+CarbonFSRefCreation.o NSString
+CarbonFSRefCreation.m
NSString+CarbonFSRefCreation.m: In function ‘-[NSString
(CarbonFSRefCreation) getFSRef:createFileIfNecessary:]’:
NSString+CarbonFSRefCreation.m:26: warning: ‘writeToFile:atomically:’
is deprecated (declared at /System/Library/Frameworks/
Foundation.framework/Headers/NSString.h:374)
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
NSBitmapImageRep 0x104a210a0 Size={128, 128} ColorSpace=(not yet
loaded) BPS=8 BPP=(not yet loaded) Pixels=128x128 Alpha=YES Planar=NO
Format=(not yet loaded) CurrentBacking=nil (faulting)
CGImageSource=0x104a14680
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 "/usr/local/src/MacVim/src/MacVim/icons/docerator.py", line
562, in makedocicon
makedocicon_opts(optsFromDict(**kwargs))
File "/usr/local/src/MacVim/src/MacVim/icons/docerator.py", line
538, in makedocicon_opts
icons = dict([(s, renderer.createIconAtSize(s)) for s in sizes])
File "/usr/local/src/MacVim/src/MacVim/icons/docerator.py", line
517, in createIconAtSize
return createIcon(s, self.bgRenderer, self.textRenderer,
self.testtext)
File "/usr/local/src/MacVim/src/MacVim/icons/docerator.py", line
366, in createIcon
output = bg.backgroundAtSize(s).copy()
File "/usr/local/src/MacVim/src/MacVim/icons/docerator.py", line
205, in backgroundAtSize
self.drawAtSize(s)
File "/usr/local/src/MacVim/src/MacVim/icons/docerator.py", line
195, in drawAtSize
self.bgRenderer.groundAtSize(s).draw()
File "/usr/local/src/MacVim/src/MacVim/icons/docerator.py", line
148, in groundAtSize
self._performSplit(s)
File "/usr/local/src/MacVim/src/MacVim/icons/docerator.py", line
162, in _performSplit
ground, shadow = splitGenericDocumentIcon(self.unsplitted, s)
File "/usr/local/src/MacVim/src/MacVim/icons/docerator.py", line
219, in splitGenericDocumentIcon
data = r.data()
File "/usr/local/src/MacVim/src/MacVim/icons/docerator.py", line
58, in data
raise Exception("Unsupported image format")
Exception: Unsupported image format
make: *** [MacVim-generic.icns] Error 1
On Aug 31, 2009, at 10:18 PM, Nico Weber wrote:
>
>> Not to be a "me, too" poster, but I get the exact same error.
>
> Can one of you add
>
> print r
>
> as line 52 in src/vim/src/MacVim/icons/docerator.py (above the `if`
> line) and rerun this again, and then send the output to this list?
>
> Thanks,
> Nico
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---