RE: Win32 Compilation - Python Plugin




Steffen,
 
I read the manual again and created libart_lgpl_2-2.lib by using the process as described on the "Installing 
Optional Sofware page (http://dia-installer.de/howto/compile_msvc/ar01s03.html#install_libart).  I downloaded 
and put the files it was asking for along the way (libintl3.dll, regex2.dll and libiconv2.dll) into the 
system32 direcory and started the compilation process again.  The compilation appeared to be going okay until 
it stopped with the following:
 
dia-render-script-import.c
dia-render-script-import.c(170) : warning C4700: local variable 'root' used with
out having been initialized
        cl -G5 -GF -MD -W3 -nologo -I. -I..\.. -DHAVE_CONFIG_H  -LD -Fedrs.dll d
ia-render-script.obj  dia-render-script-object.obj  dia-render-script-renderer.o
bj  dia-render-script-import.obj  ..\..\..\lib\gtk-win32-2.0.lib ..\..\..\lib\gd
k-win32-2.0.lib ..\..\..\lib\gdk_pixbuf-2.0.lib ..\..\..\lib\pango-1.0.lib ..\..
\..\lib\glib-2.0.lib ..\..\..\lib\gmodule-2.0.lib ..\..\..\lib\gobject-2.0.lib
..\..\..\lib\libxml2.lib ..\..\..\lib\gdk_pixbuf-2.0.lib  ..\..\..\lib\intl.lib
 ..\..\lib\libdia.lib  user32.lib advapi32.lib wsock32.lib /link /machine:ix86
/def:..\objects.def
   Creating library drs.lib and object drs.exp
        cd ..\..
        cd tests
NMAKE : fatal error U1077: 'cd' : return code '0x1'
Stop.
C:\GTK\dia>
 
 
This is the compile section of c:\gtk\dia\makefile.msc:
 
 cd lib
 nmake -f makefile.msc
# cd ..\bindings
# nmake -f makefile.msc
 cd ..\app
 nmake -f makefile.msc
 cd ..\objects
 nmake -f makefile.msc
 cd ..\plug-ins
 nmake -f makefile.msc
# cd python
# nmake -f makefile.msc
 cd ..\..
 cd tests
 nmake -f makefile.msc
 cd ..
 
I'm guessing that this corresponds to the directory path the compiler is trying to navigate to and so I made 
changes to it so that it now looks like this:
 
compile :
 cd lib
 nmake -f makefile.msc
# cd ..\bindings
# nmake -f makefile.msc
 cd ..\app
 nmake -f makefile.msc
 cd ..\objects
 nmake -f makefile.msc
 cd ..\plug-ins
 nmake -f makefile.msc
# cd python
# nmake -f makefile.msc
# The next two lines are commented out by Timothy at 0339 16/08/2009
# cd ..\..
# cd tests
# The next one line has been added by Timothy at 0339 16/08/2009 to resolve a directory navigational issue
 cd ..\tests
 nmake -f makefile.msc
 cd ..
 
 
... This may not be the right thing to do but in any case, the compiler is now saying this:
 
'custom_lines.dll' is up-to-date
        cd ..\plug-ins
        nmake -f makefile.msc
Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
        for %d in (cairo cgm dxf hpgl libart metapost pgf pixbuf  postscript pst
ricks shape svg vdx wmf wpg xfig xslt  drs) do @nmake -nologo -f makefile.msc su
b-one THIS=%d
'cairo.dll' is up-to-date
'cgm.dll' is up-to-date
'dxf.dll' is up-to-date
'hpgl.dll' is up-to-date
'libart.dll' is up-to-date
'metapost.dll' is up-to-date
'pgf.dll' is up-to-date
'pixbuf.dll' is up-to-date
'postscript.dll' is up-to-date
'pstricks.dll' is up-to-date
'shape.dll' is up-to-date
'svg.dll' is up-to-date
'vdx.dll' is up-to-date
'wmf.dll' is up-to-date
'wpg.dll' is up-to-date
'xfig.dll' is up-to-date
        cl -G5 -GF -MD -W3 -nologo -I. -I..\.. -DHAVE_CONFIG_H -DWIN32 -I ..\..\
../libxslt -c -FImsvc_recommended_pragmas.h  -I ..\..\..\glib -I ..\..\..\glib\g
lib -I ..\..\..\glib\gmodule -I ..\..\..\include\glib-2.0 -I ..\..\..\lib\glib-2
.0\include -I ..\..\../gettext-0.10.40/intl -I ..\..\..\glib -I ..\..\..\glib\gl
ib -I ..\..\..\glib\gmodule -I ..\..\..\include\glib-2.0 -I ..\..\..\lib\glib-2.
0\include -I ..\..\../gettext-0.10.40/intl -I ..\..\../atk -I ..\..\..\include\a
tk-1.0 -I ..\..\../pango -I ..\..\..\include\pango-1.0 -I ..\..\..\cairo\cairo\s
rc -I ..\..\..\cairo\libpixman\src -I ..\..\..\cairo -I ..\..\..\include\cairo
-I ..\..\../freetype2\include -I..\..\../gtk+\gdk -I..\..\../gtk+\gdk -I..\..\..
/gtk+ -I..\..\..\include\gtk-2.0 -I ..\..\..\lib\gtk-2.0\include -I..\..\../atk
 -I. -I ..\..\../libiconv-1.7\include -I \include -I ..\..\..\include -I..\..\li
b xslt.c
xslt.c
xslt.c(36) : fatal error C1083: Cannot open include file: 'libxslt/xslt.h': No s
uch file or directory
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\N
MAKE.EXE"' : return code '0x2'
Stop.
'drs.dll' is up-to-date
        cd ..\tests
        nmake -f makefile.msc
Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
        cd ..
C:\GTK\dia>
 
 
Your help with understanding this is appreicated.
 
Regards,
 
Timothy
 


On Sun, 16 Aug 2009 01:27:59 +1000, Timothy wrote:

Steffen,



Cheers. I am now getting an error message about libart_lgpl_2-2.lib:



cl -G5 -GF -MD -W3 -nologo -I. -I.. -DHAVE_CONFIG_H -LD -Fedia-app.dll a
utosave.obj app_procs.obj color_area.obj commands.obj confirm.obj connectio
npoint_ops.obj create_object.obj cursor.obj cut_n_paste.obj defaults.obj di
acanvas.obj diagram.obj diagram_tree.obj diagram_tree_menu.obj diagram_tree_
menu_callbacks.obj diagram_tree_window.obj diapagelayout.obj dia-props.obj d
isp_callbacks.obj display.obj dynamic_refresh.obj exit_dialog.obj filedlg.ob
j find-and-replace.obj grid.obj gtkhwrapbox.obj gtkvwrapbox.obj gtkwrapbox.
obj handle_ops.obj highlight.obj interface.obj layer_dialog.obj linewidth_a
rea.obj load_save.obj magnify.obj menus.obj modify_tool.obj navigation.obj
object_ops.obj pagesetup.obj plugin-manager.obj preferences.obj properties-
dialog.obj recent_files.obj render_gdk.obj scroll_tool.obj select.obj sheet
s.obj sheets_dialog.obj sheets_dialog_callbacks.obj splash.obj textedit.obj
textedit_tool.obj tool.obj undo.obj ..\..\lib\gtk-win32-2.0.lib ..\..\lib\gdk
-win32-2.0.lib ..\..\lib\gdk_pixbuf-2.0.lib ..\..\lib\pango-1.0.lib ..\..\lib\gl
ib-2.0.lib ..\..\lib\gmodule-2.0.lib ..\..\lib\gobject-2.0.lib ..\..\lib\gthread
-2.0.lib ..\..\lib\pango-1.0.lib ..\..\lib\pangowin32-1.0.lib ..\..\lib\libxml2
.lib ..\..\lib\libpng.lib ..\..\lib\zdll.lib ..\lib\libdia.lib ..\..\lib\libart
_lgpl_2-2.lib ..\..\lib\cairo.lib ..\..\lib\gdk_pixbuf-2.0.lib ..\..\lib\intl.l
ib gdi32.lib user32.lib advapi32.lib shell32.lib wsock32.lib /link /machine:ix
86 /def:dia.def
LINK : fatal error LNK1181: cannot open input file "..\..\lib\libart_lgpl_2-2.li
b"
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\N
MAKE.EXE"' : return code '0x2'
Stop.

C:\GTK\dia>





I had a look as to where in the GTK file structure on c:\ that the lib file was and couldn't find it. I 
also checked libart_lgpl-2.3.20.zip and libart_lgpl-dev-2.3.20.zip for the file and couldn't find it there 
either. Any suggestions?



Cheers,



Timothy

_________________________________________________________________
What goes online, stays online Check the daily blob for the latest on what's happening around the web
http://windowslive.ninemsn.com.au/blog.aspx


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