Menu

#52 py2exe build crach

closed
nobody
None
5
2004-06-18
2004-05-26
No

I try build CVS source version 0.5.0

Command line:
python setup.py build --compiler=mingw32

last output lines:
C:\Lang\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -
Wall -D_WINDOWS -IC:\Lang\Python23\include -
IC:\Lang\Python23\PC -c source/run.c -o
build\temp.win32-2.3\Release\source\run.o
C:\Lang\MinGW\bin\windres.exe -i source/icon.rc -o
build\temp.win32-2.3\Release\source\icon.rc.o
error: command 'windres' failed with exit status 1

full log in attached file

Discussion

  • Alexandr Zamaraev (aka Tonal)

    full build log

     
  • Alexandr Zamaraev (aka Tonal)

    • summary: setup build crach --> py2exe build crach
     
  • Thomas Heller

    Thomas Heller - 2004-06-01

    Logged In: YES
    user_id=11105

    This should now be fixed in CVS. Can you try it out? I
    still get some warnings from the compilation, but they don't
    seem to hurt:

    Warning: resolving _DllCanUnloadNow by linking to
    _DllCanUnloadNow@0
    Use --enable-stdcall-fixup to disable these warnings
    Use --disable-stdcall-fixup to disable these fixups
    Warning: resolving _DllGetClassObject by linking to
    _DllGetClassObject@12
    Warning: resolving _DllRegisterServer by linking to
    _DllRegisterServer@0
    Warning: resolving _DllUnregisterServer by linking to
    _DllUnregisterServer@0

     
  • Rene Aguirre

    Rene Aguirre - 2004-06-17

    Logged In: YES
    user_id=524653

    I commented the references to 'afx' in the rc file:
    line 10: //#include "afxres.h"
    line 20: //LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
    and change the icon resource line:
    line 31: 101 ICON
    DISCARDABLE "source/icon1.ico"

    This fixes the resource problem, by the way I'm using the
    latest 'stable' mingw and msys packages (ld version is
    2.13.90), I had to modify distutils to use dllwrap instead of ld -
    shared, removing all -shared occurrences and leaving only -
    mdll (the path is C:\Python23\Lib\distutils\cygwinccompiler.py
    in windows), if not I got an error during from py2exe import
    py2exe_util

     
  • Alexandr Zamaraev (aka Tonal)

    • status: open --> closed
     
  • Rene Aguirre

    Rene Aguirre - 2004-06-18

    Logged In: YES
    user_id=524653

    Does 'windres.exe --v' is Ok? (windres.exe in your path).

    Anyway I'm attaching my icon.rc file, please check.

     

Log in to post a comment.