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
On Friday, 17 October 2014 19:25:29 UTC+8, Ken Takata wrote:
> Hi Marslo,
>
> 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
Your patch works. Thanks a lot!
Built files can be found at : https://sourceforge.net/projects/marslosvimgvim/files/7.4.476/
However, there something awkward... because the same error shows in v7-4-477, v7-4-478:
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
I'm maintenance a project for vim/gvim version for windows. What should I do by using Cygwin?
You can tell me how to make the patch, and I can do that by myself. :)
2014/10/20 Mon 12:50:31 UTC+9 Marslo Jiao wrote:
> Hi Ken,
>
> On Friday, 17 October 2014 19:25:29 UTC+8, Ken Takata wrote:
> > Hi Marslo,
> >
> > 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
>
> Your patch works. Thanks a lot!
> Built files can be found at : https://sourceforge.net/projects/marslosvimgvim/files/7.4.476/
>
> However, there something awkward... because the same error shows in v7-4-477, v7-4-478:
>
> 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
It's very strange. I couldn't reproduce it.
The patches from 7.4.477 to 7.4.481 didn't change anything related to xpm_w32.c.
So they should be compiled successfully if my patch is applied. (except
7.4.479)
> I'm maintenance a project for vim/gvim version for windows. What should I do by using Cygwin?
> You can tell me how to make the patch, and I can do that by myself. :)
I think there's nothing special to make a patch for Cygwin.
(Write a patch, do test, post the patch to vim_dev.)
This page might be a help? http://www.vim.org/develop.php
Regards,
Ken Takata
2014/10/18 Sat 3:21:55 UTC+9 Bram Moolenaar wrote:
> Merging Make_cyg.mak and Make_ming.mak might be a bit difficult, but
> perhaps we can at least move the parts that are the same to a common
> file and include it in both? We could gradually move more lines there.
I have made patches following your idea.
1. 01-rename-ming-mak.patch
* Rename the old Make_ming.mak to cyg_ming.mak.
2. 02-remove-old-cyg-mak.patch
* Remove the old Make_cyg.mak.
3. 03-merge-cyg-ming-mak.patch
* Make new Make_ming.mak/Make_cyg.mak which include cyg_ming.mak.
Common parts are left in cyg_ming.mak, and MinGW/Cygwin specific parts are
moved to the each file.
* Some comments and documents are also updated.
* The default Ruby version is changed from 1.6 to 1.8 since it is already 1.8
in Make_mvc.mak.
(I think the default Python version (2.2) and Perl version (5.8) are very
old, but I didn't change them at this time.)
Regards,
Ken Takata
Make_cyg.mak comments in lines 10, 12 and 44 still referring to cyg_ming.mak.
KF
Make_ming.mak comments in line 9 still referring cyg_ming.mak.
KF
On Monday, 20 October 2014 19:33:11 UTC+8, Ken Takata wrote:
> Hi Marslo,
> I think there's nothing special to make a patch for Cygwin.
> (Write a patch, do test, post the patch to vim_dev.)
> This page might be a help? http://www.vim.org/develop.php
>
> Regards,
> Ken Takata
Sorry for reply late.
I've tried patch fix-7.4.476-cygwin.patch to V7-4-477 (*patch -p1 < ../../fix-7.4.476-cygwin.patch*), and the error still shows in Cygwin:
$ 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=yes
...
i686-pc-mingw32-gcc -c -O3 -fomit-frame-pointer -freg-struct-return -fno-strength-reduce -DWIN32 -DHAVE_PATHDEF -DFEAT_huge -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -DFEAT_PYTHON -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python27.dll\" -DFEAT_PYTHON3 -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"python34.dll\" -DDYNAMIC_GETTEXT -DDYNAMIC_ICONV -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_XPM_W32 -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -march=i386 -Iproto -s -I/include xpm_w32.c -o gobj/xpm_w32.o
2014/10/24 Fri 12:48:09 UTC+9 Marslo Jiao wrote:
> Hi Ken,
>
> On Monday, 20 October 2014 19:33:11 UTC+8, Ken Takata wrote:
> > Hi Marslo,
> > I think there's nothing special to make a patch for Cygwin.
> > (Write a patch, do test, post the patch to vim_dev.)
> > This page might be a help? http://www.vim.org/develop.php
> >
> > Regards,
> > Ken Takata
>
> Sorry for reply late.
> I've tried patch fix-7.4.476-cygwin.patch to V7-4-477 (*patch -p1 < ../../fix-7.4.476-cygwin.patch*), and the error still shows in Cygwin:
>
> $ 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=yes
> ...
> i686-pc-mingw32-gcc -c -O3 -fomit-frame-pointer -freg-struct-return -fno-strength-reduce -DWIN32 -DHAVE_PATHDEF -DFEAT_huge -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -DFEAT_PYTHON -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python27.dll\" -DFEAT_PYTHON3 -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"python34.dll\" -DDYNAMIC_GETTEXT -DDYNAMIC_ICONV -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_XPM_W32 -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -march=i386 -Iproto -s -I/include xpm_w32.c -o gobj/xpm_w32.o
Hmm, strange.
If my patch is properly applied, the last part of the gcc command line:
-s -I/include xpm_w32.c -o gobj/xpm_w32.o
should be:
-s -Ixpm/x86/include -Ixpm/x86/../include xpm_w32.c -o gobj/xpm_w32.o
I verified with the following steps:
$ cd vim/src
$ hg update -r v7-4-477
$ patch -p2 < fix-7.4.476-cygwin.patch
patching file Make_cyg.mak
$ hg diff # Check if the patch is properly applied.
$ make -B -f Make_cyg.mak PYTHON=/cygdrive/c/Python27 DYNAMIC_PYTHON=yes PYTHON_VER=27 PYTHON3=/cygdrive/c/Python34 DYNAMIC_PYTHON3=yes PYTHON3_VER=34 FEATURES=huge IME=yes GIME=yes MBYTE=yes CSCOPE=yes GUI=yes
...
i686-pc-mingw32-gcc -c -O3 -fomit-frame-pointer -freg-struct-return -fno-strength-reduce -DWIN32 -DHAVE_PATHDEF -DFEAT_huge -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -DFEAT_PYTHON -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python27.dll\" -DFEAT_PYTHON3 -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"python34.dll\" -DDYNAMIC_GETTEXT -DDYNAMIC_ICONV -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_XPM_W32 -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -march=i386 -Iproto -s -Ixpm/x86/include -Ixpm/x86/../include xpm_w32.c -o gobj/xpm_w32.o
I didn't see any errors.
Regards,
Ken Takata