Hi Marslo,

2014/10/17 Fri 19:10:18 UTC+9 Marslo Jiao wrote:
> On Wednesday, 15 October 2014 18:07:31 UTC+8, Bram Moolenaar  wrote:
> > Patch 7.4.476
> > 
> > Problem:    MingW: compiling with "XPM=no" doesn't work.
> > 
> > Solution:   Check for the "no" value. (KF Leong)  Also for Cygwin. (Ken
> > 
> >         Takata)
> > 
> > Files:          src/Make_ming.mak, src/Make_cyg.mak
> > 
> > 
> > 
> > 
> > 
> > *** ../vim-7.4.475/src/Make_ming.mak        2014-08-10 16:31:47.376709213 
> > +0200
> > 
> > --- src/Make_ming.mak       2014-10-15 12:00:35.986008598 +0200
> > 
> > ***************
> > 
> > *** 22,28 ****
> > 
> >   #     http://www.matcode.com/mpress.htm
> > 
> >   #
> > 
> >   # Maintained by Ron Aaron <[email protected]> et al.
> > 
> > ! # Updated 2012 Sep 5.
> > 
> >   
> > 
> >   #>>>>> choose options:
> > 
> >   # set to yes for a debug build
> > 
> > --- 22,28 ----
> > 
> >   #     http://www.matcode.com/mpress.htm
> > 
> >   #
> > 
> >   # Maintained by Ron Aaron <[email protected]> et al.
> > 
> > ! # Updated 2014 Oct 13.
> > 
> >   
> > 
> >   #>>>>> choose options:
> > 
> >   # set to yes for a debug build
> > 
> > ***************
> > 
> > *** 613,619 ****
> > 
> >   USE_STDCPLUS = yes
> > 
> >   endif
> > 
> >   endif
> > 
> > ! ifdef XPM
> > 
> >   # Only allow XPM for a GUI build.
> > 
> >   ifeq (yes, $(GUI))
> > 
> >   OBJ += $(OUTDIR)/xpm_w32.o
> > 
> > --- 613,619 ----
> > 
> >   USE_STDCPLUS = yes
> > 
> >   endif
> > 
> >   endif
> > 
> > ! ifneq ($(XPM),no)
> > 
> >   # Only allow XPM for a GUI build.
> > 
> >   ifeq (yes, $(GUI))
> > 
> >   OBJ += $(OUTDIR)/xpm_w32.o
> > 
> > *** ../vim-7.4.475/src/Make_cyg.mak 2014-08-10 16:31:47.372709213 +0200
> > 
> > --- src/Make_cyg.mak        2014-10-15 12:06:01.170009309 +0200
> > 
> > ***************
> > 
> > *** 485,491 ****
> > 
> >   endif
> > 
> >   
> > 
> >   ##############################
> > 
> > ! ifdef XPM
> > 
> >   # Only allow XPM for a GUI build.
> > 
> >   DEFINES += -DFEAT_XPM_W32
> > 
> >   INCLUDES += -I$(XPM)/include
> > 
> > --- 485,491 ----
> > 
> >   endif
> > 
> >   
> > 
> >   ##############################
> > 
> > ! ifneq ($(XPM),no)
> > 
> >   # Only allow XPM for a GUI build.
> > 
> >   DEFINES += -DFEAT_XPM_W32
> > 
> >   INCLUDES += -I$(XPM)/include
> > 
> > *** ../vim-7.4.475/src/version.c    2014-10-11 14:47:22.833275547 +0200
> > 
> > --- src/version.c   2014-10-15 12:03:39.186008999 +0200
> > 
> > ***************
> > 
> > *** 743,744 ****
> > 
> > --- 743,746 ----
> > 
> >   {   /* Add new patch number below this line */
> > 
> > + /**/
> > 
> > +     476,
> > 
> >   /**/
> > 
> > 
> > 
> > -- 
> > 
> > Women are probably the main cause of free software starvation.
> > 
> > 
> > 
> >  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
> > 
> > ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
> > 
> > \\\  an exciting new programming language -- http://www.Zimbu.org        ///
> > 
> >  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
> 
> 
> Error shows while using "GUI=yes" parameter, details as below:
> 
> xpm_w32.c:31:17: fatal error: xpm.h: No such file or directory
> compilation terminated.
> Make_cyg.mak:657: recipe for target 'gobj/xpm_w32.o' failed
> make: *** [gobj/xpm_w32.o] Error 1
> 
> "GUI=no" can be built successfully.
> 
> ------
> 
> My environment:
> - Windows 7 64bit
> - Using Cygwin
> - Command: 
>   make -B -f Make_cyg.mak PYTHON=/cygdrive/c/Marslo/MyProgramFiles/Python27 
> DYNAMIC_PYTHON=yes PYTHON_VER=27 
> PYTHON3=/cygdrive/c/Marslo/MyProgramFiles/Python34 DYNAMIC_PYTHON3=yes 
> PYTHON3_VER=34 FEATURES=huge IME=yes GIME=yes MBYTE=yes CSCOPE=yes 
> USERNAME=Marslo.Jiao USERDOMAIN=China GUI=no

Sorry, it's my mistake.
Could you try the attached patch?

Some part is copied from Make_ming.mak (7.3.653).
The patch 7.3.653 should also have updated Make_cyg.mak.

Regards,
Ken Takata

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
# HG changeset patch
# Parent f76f3d19a3291dbb7a3e163e990053b48d6f6455

diff --git a/src/Make_cyg.mak b/src/Make_cyg.mak
--- a/src/Make_cyg.mak
+++ b/src/Make_cyg.mak
@@ -485,13 +485,32 @@ USE_STDCPLUS = yes
 endif
 
 ##############################
+ifndef XPM
+ifeq ($(ARCH),i386)
+XPM = xpm/x86
+endif
+ifeq ($(ARCH),i486)
+XPM = xpm/x86
+endif
+ifeq ($(ARCH),i586)
+XPM = xpm/x86
+endif
+ifeq ($(ARCH),i686)
+XPM = xpm/x86
+endif
+ifeq ($(ARCH),x86-64)
+XPM = xpm/x64
+endif
+endif
+ifdef XPM
 ifneq ($(XPM),no)
 # Only allow XPM for a GUI build.
 DEFINES += -DFEAT_XPM_W32
-INCLUDES += -I$(XPM)/include
+INCLUDES += -I$(XPM)/include -I$(XPM)/../include
 EXTRA_OBJS += $(OUTDIR)/xpm_w32.o
 EXTRA_LIBS += -L$(XPM)/lib -lXpm
 endif
+endif
 
 ##############################
 EXE = gvim$(DEBUG_SUFFIX).exe

Raspunde prin e-mail lui