glib's pcre's makefile.msc broken?



I am trying to build glib dlls on win32 with VS 2003 using the glib 2.28.1 tarball and the nmake process (not the vs project way, my vs is too old to open it). The glib using app I trying to debug I recompiled with debugging info and symbols successfully, but I get assembly when I step into the glib runtime. The official gtk.org glib runtime doesn't have symbols/step through debugging available, so building my own is the only way I see to get the PDBs for debugging. My problem is, that makefile.msc in /glib/pcre fails to make pcre.lib or any objs or run cl at all. This makes the parent makefiles fail. Below is the output I get from pcre's makefile.msc.
________________________________________
C:\sources\glib\glib\pcre>nmake -f makefile.msc /N  DEBUG=1 all

Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

        lib -out:pcre.lib

C:\sources\glib\glib\pcre>
_______________________________________
The problem is in pcre's makefile.msc the OBJECTS macro is empty
http://git.gnome.org/browse/glib/tree/glib/pcre/makefile.msc#n24

I'm not sure if should be trying to use the makefile.in files on win32/msvc. I dont know how to convert the makefile.in files to normal makefiles. http://hans.breuer.org/gtk/de-in.py is a dead link. Bellow the the complete build process (resumed, not cleaned).
_______________________________________
C:\sources\glib>nmake -f makefile.msc   DEBUG=1 all

Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

        for %d in (glib gmodule gthread gobject gio tests) do nmake -nologo -f m
akefile.msc sub-one THIS=%d TARGET=all

C:\sources\glib>nmake -nologo -f makefile.msc sub-one THIS=glib TARGET=all
        cd pcre
        nmake -f makefile.msc

Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

        lib -out:pcre.lib
Microsoft (R) Library Manager Version 7.10.6030
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd ..
        cl  -MDd -W3 -nologo  -Zi -DG_ENABLE_DEBUG=1 -FImsvc_recommended_pragmas
.h -I . -I .. -DHAVE_CONFIG_H -DGLIB_COMPILATION -DG_LOG_DOMAIN=\"GLib\"  -DG_EN
ABLE_DEBUG -DPCRE_STATIC -DG_DISABLE_DEPRECATED  -DDLL_EXPORT=1 -Zm400 -I C:/sou
rces/glibbin/include -I ..\..\glib\build\win32\dirent -LD -Felibglib-2.0-0.dll g
array.obj                gasyncqueue.obj                 gatomic.obj     gbacktr
ace.obj          gbase64.obj     gbookmarkfile.obj  gcache.obj  gchecksum.obj
 gcompletion.obj         gconvert.obj  gdataset.obj  gdate.obj  gdir.obj  gerror
.obj  gfileutils.obj  ghash.obj  ghostutils.obj  ghook.obj  giochannel.obj  giow
in32.obj  gpoll.obj  gkeyfile.obj  glist.obj  gmain.obj  gmappedfile.obj
 gmarkup.obj  gmem.obj  gmessages.obj  gnode.obj  goption.obj  gpattern.obj  gpr
imes.obj  gprintf.obj  gqsort.obj  gqueue.obj  grand.obj  gregex.obj  grel.obj
gscanner.obj  gsequence.obj  gshell.obj  gslice.obj  gslist.obj  gspawn-win32.ob
j  gstdio.obj  gstrfuncs.obj  gstring.obj  gtestutils.obj  gthread.obj  gthreadp
ool.obj  gtimer.obj  gtree.obj  gunibreak.obj  gunicollate.obj  gunidecomp.obj
guniprop.obj  gurifuncs.obj  gutf8.obj           gutils.obj              gwin32.
obj              localcharset.obj glib.res C:/sources/glibbin/include\intl.lib
gnulib\gnulib.lib pcre\pcre.lib ..\..\glib\build\win32\dirent\dirent.lib user32.
lib advapi32.lib shell32.lib wsock32.lib ole32.lib ws2_32.lib  /link /machine:ix
86 /debug /nodefaultlib:msvcrt.lib /implib:glib-2.0.lib /def:glib.def
LINK : fatal error LNK1104: cannot open file 'pcre\pcre.lib'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\
VC7\BIN\nmake.exe"' : return code '0x2'
Stop.

C:\sources\glib>nmake -nologo -f makefile.msc sub-one THIS=gmodule TARGET=all
        cl  -MDd -W3 -nologo  -Zi -DG_ENABLE_DEBUG=1 -FImsvc_recommended_pragmas
.h -I .. -I . -I ..\glib -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"GModule\"  -LD -Felibg
module-2.0-0.dll gmodule.obj gmodule.res  ..\glib\glib-2.0.lib /link /machine:ix
86 /debug /nodefaultlib:msvcrt.lib /implib:gmodule-2.0.lib /def:gmodule.def
LINK : fatal error LNK1104: cannot open file '..\glib\glib-2.0.lib'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\
VC7\BIN\nmake.exe"' : return code '0x2'
Stop.

C:\sources\glib>nmake -nologo -f makefile.msc sub-one THIS=gthread TARGET=all
        cl  -MDd -W3 -nologo  -Zi -DG_ENABLE_DEBUG=1 -FImsvc_recommended_pragmas
.h -I .. -I . -I ..\glib -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"GThread\"  -LD -Felibg
thread-2.0-0.dll gthread-impl.obj gthread.res  ..\glib\glib-2.0.lib  user32.lib
/link /machine:ix86 /debug /nodefaultlib:msvcrt.lib /implib:gthread-2.0.lib /def
:gthread.def
LINK : fatal error LNK1104: cannot open file '..\glib\glib-2.0.lib'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\
VC7\BIN\nmake.exe"' : return code '0x2'
Stop.

C:\sources\glib>nmake -nologo -f makefile.msc sub-one THIS=gobject TARGET=all
        cl  -MDd -W3 -nologo -Feglib-genmarshal.exe  -Zi -DG_ENABLE_DEBUG=1 -FIm
svc_recommended_pragmas.h -I .. -I . -I ..\glib -DHAVE_CONFIG_H -DGOBJECT_COMPIL
ATION -DG_LOG_DOMAIN=\"GLib-GObject\"  -DG_ENABLE_DEBUG  -UGOBJECT_COMPILATION g
lib-genmarshal.c  ..\glib\glib-2.28s.lib user32.lib advapi32.lib ole32.lib shell
32.lib C:/sources/glibbin/include\intl.lib
cl : Command line warning D4025 : overriding '/DGOBJECT_COMPILATION' with '/UGOB
JECT_COMPILATION'
glib-genmarshal.c
LINK : fatal error LNK1104: cannot open file '..\glib\glib-2.28s.lib'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\
VC7\BIN\nmake.exe"' : return code '0x2'
Stop.

C:\sources\glib>nmake -nologo -f makefile.msc sub-one THIS=gio TARGET=all
        for %d in (win32) do nmake -nologo -f makefile.msc sub-one THIS=%d

C:\sources\glib\gio>nmake -nologo -f makefile.msc sub-one THIS=win32
        cd win32
        nmake -nologo -f makefile.msc
NMAKE : fatal error U1052: file 'makefile.msc' not found
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\
VC7\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'for' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\
VC7\BIN\nmake.exe"' : return code '0x2'
Stop.

C:\sources\glib>nmake -nologo -f makefile.msc sub-one THIS=tests TARGET=all
        cl  -MDd -W3 -nologo  -Zi -DG_ENABLE_DEBUG=1 -FImsvc_recommended_pragmas
.h -I .. -I ..\glib -I ..\gmodule -DHAVE_CONFIG_H -DENABLE_REGEX  -c atomic-test
.c
atomic-test.c
        cl  -MDd -W3 -nologo  -Zi -DG_ENABLE_DEBUG=1 -FImsvc_recommended_pragmas
.h -I .. -I ..\glib -I ..\gmodule -DHAVE_CONFIG_H -DENABLE_REGEX  -Featomic-test
.exe atomic-test.c ..\glib\glib-2.0.lib ..\gmodule\gmodule-2.0.lib ..\gthread\gt
hread-2.0.lib /link /machine:ix86 /debug /nodefaultlib:msvcrt.lib user32.lib /su
bsystem:console
atomic-test.c
LINK : fatal error LNK1104: cannot open file '..\glib\glib-2.0.lib'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\
VC7\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'for' : return code '0x2'
Stop.

C:\sources\glib>_____________________________________________________________________


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]