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

Re: [PATCH] mingw64 windres build error under cygwin

Expand Messages
  • Bram Moolenaar
    ... Thanks. Unless somone tells me this doesn t work I ll include it soon. -- Google is kind of like Dr. Who s Tardis; it s weirder on the inside than on the
    Message 1 of 2 , Mar 21, 2012
    • 0 Attachment
      Guopeng Wen wrote:

      > Recently I found a build error when build Windows GUI version using
      > mingw64 package under cygwin on Windows 7:
      >
      > /usr/bin/i686-w64-mingw32-windres \
      > --preprocessor="/usr/bin/i686-w64-mingw32-gcc -E -xc" \
      > -DRC_INVOKED -DWIN32 -DWINVER=0x0500 \
      > -D_WIN32_WINNT=0x0500 -DHAVE_PATHDEF -DFEAT_BIG \
      > -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT \
      > -DFEAT_CSCOPE -DFEAT_MBYTE -DFEAT_MBYTE_IME \
      > -DDYNAMIC_IME -DDYNAMIC_ICONV vim.rc obj/vimres.res
      > /usr/bin/i686-w64-mingw32-windres \
      > --preprocessor="/usr/bin/i686-w64-mingw32-gcc -E -xc" \
      > -DRC_INVOKED obj/vimres.res obj/vimrc.o
      > windres: unexpected version string length 68 != 32 + 8
      >
      > Here's the version I'm currently using:
      >
      > $ cygcheck -c mingw64-i686-gcc mingw64-x86_64-gcc
      > Cygwin Package Information
      > Package Version Status
      > mingw64-i686-gcc 4.5.3-5 OK
      > mingw64-x86_64-gcc 4.5.3-5 OK
      >
      > The problem have already started with version 4.5.3-4.
      >
      > I found that the error won't happen if I build "obj/vimrc.o" from
      > "vim.rc" directly, without going through the "vimres.res" step. I
      > attached the patch. The change should be OK as the resource for
      > GvimExt is built in the same way, and Make_cyg.mak also uses the
      > same 1-step strategy.

      Thanks. Unless somone tells me this doesn't work I'll include it soon.

      --
      Google is kind of like Dr. Who's Tardis; it's weirder on the
      inside than on the outside...

      /// Bram Moolenaar -- Bram@... -- 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 ///

      --
      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
    Your message has been successfully submitted and would be delivered to recipients shortly.