Hi vany,

the script assumes that /System/Library/CoreServices/CoreTypes.bundle/ 
ContResources/GenericDocumentIcon.icns is a grey-scale image (which it  
is on Leopard). Did you install some theme that replaces system icons  
or are you running 10.6 or similar? Can you perhaps attach your / 
System/Library/CoreServices/CoreTypes.bundle/ContResources/ 
GenericDocumentIcon.icns and tell me where you got it from?

Thanks,
Nico

On 20.06.2009, at 05:14, vany wrote:

>
> I have followed instructions in "How to build MacVim."(http://
> code.google.com/p/macvim/wiki/Building)
> $ git clone git://repo.or.cz/MacVim.git vim7
> $ cd vim7/src; ./configure --enable-gui=macvim --with-features=huge;
> make
> $ Build MacVim.app: cd MacVim; xcodebuild
>
> And I have encountered "build failed" messages like this:
> ---------------------------------------------------
> ...
> PhaseScriptExecution /Users/vanity/tmp/vim7/src/MacVim/build/
> MacVim.build/Release/MacVim.build/Script-1D1C31F00EFFBFD6003FE9A5.sh
>    cd /Users/vanity/tmp/vim7/src/MacVim
>    /bin/sh -c /Users/vanity/tmp/vim7/src/MacVim/build/MacVim.build/
> Release/MacVim.build/Script-1D1C31F00EFFBFD6003FE9A5.sh
> /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.5-i386-2.5
> gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-
> madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -
> DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc - 
> pipe -
> I/System/Library/Frameworks/Python.framework/Versions/2.5/include/
> python2.5 -c loadfont.c -o build/temp.macosx-10.5-i386-2.5/loadfont.o
> creating build/lib.macosx-10.5-i386-2.5
> gcc -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc
> build/temp.macosx-10.5-i386-2.5/loadfont.o -o build/lib.macosx-10.5-
> i386-2.5/loadfont.so
> running install_lib
> copying build/lib.macosx-10.5-i386-2.5/loadfont.so -> .
> running install_egg_info
> Removing ./loadfont-1.0-py2.5.egg-info
> Writing ./loadfont-1.0-py2.5.egg-info
> curl http://download.damieng.com/latest/EnvyCodeR --location -o
> EnvyCodeR.zip
> 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
> cc -fpascal-strings -O2   -c -o NSString+CarbonFSRefCreation.o  
> NSString
> +CarbonFSRefCreation.m
> g++ -o makeicns makeicns.o IconFamily.o NSString+CarbonFSRefCreation.o
> -O2 \
>         -framework Foundation -framework AppKit -framework Carbon
> /usr/bin/python make_icons.py /Users/vanity/tmp/vim7/src/MacVim/build/
> Release/MacVim.app/Contents/Resources
> MacVim-cpp
> ** BUILD FAILED **
> ---------------------------------------------------
>
> So I checked what happens with make_icons.py step.
> $ cd icons; make
>
> Now "make_icons.py" produces "AssertionError" like this:
> ---------------------------------------------------
> make -C makeicns
> make[1]: `makeicns' is up to date.
> /usr/bin/python make_icons.py .
> MacVim-cpp
> Traceback (most recent call last):
>  File "make_icons.py", line 197, in <module>
>    main()
>  File "make_icons.py", line 189, in main
>    textrenderer=SmallTextRenderer, backgroundrenderer=NoIconRenderer)
>  File "/Users/vanity/tmp/vim7/src/MacVim/icons/docerator.py", line
> 561, in makedocicon
>    makedocicon_opts(optsFromDict(**kwargs))
>  File "/Users/vanity/tmp/vim7/src/MacVim/icons/docerator.py", line
> 537, in makedocicon_opts
>    icons = dict([(s, renderer.createIconAtSize(s)) for s in sizes])
>  File "/Users/vanity/tmp/vim7/src/MacVim/icons/docerator.py", line
> 516, in createIconAtSize
>    return createIcon(s, self.bgRenderer, self.textRenderer,
> self.testtext)
>  File "/Users/vanity/tmp/vim7/src/MacVim/icons/docerator.py", line
> 365, in createIcon
>    output = bg.backgroundAtSize(s).copy()
>  File "/Users/vanity/tmp/vim7/src/MacVim/icons/docerator.py", line
> 204, in backgroundAtSize
>    self.drawAtSize(s)
>  File "/Users/vanity/tmp/vim7/src/MacVim/icons/docerator.py", line
> 194, in drawAtSize
>    self.bgRenderer.groundAtSize(s).draw()
>  File "/Users/vanity/tmp/vim7/src/MacVim/icons/docerator.py", line
> 147, in groundAtSize
>    self._performSplit(s)
>  File "/Users/vanity/tmp/vim7/src/MacVim/icons/docerator.py", line
> 161, in _performSplit
>    ground, shadow = splitGenericDocumentIcon(self.unsplitted, s)
>  File "/Users/vanity/tmp/vim7/src/MacVim/icons/docerator.py", line
> 242, in splitGenericDocumentIcon
>    assert ir == ig == ib
> AssertionError
> make: *** [MacVim-generic.icns] Error 1
> ---------------------------------------------------
>
> How can I solve this build problem?
>
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to