Hello,

I'm going to be porting an application from Linux to win32 in the near
future.  To prepare for this, I've ported a very simple program using
the GTK+ package from dropline.net and MinGW/MSYS.

I've found the following issues, some of which are doubtless due to my
ignorance of windows:

1. gtk-demo (and all programs using the GTK+ packaged libs) won't run
   unless C:\Program Files\Common Files\GTK\2.0\libs is in the $PATH.
   I thought that these packages used a registry key to keep track of
   the library locations?  Do all the libs containing DLLs need to be
   in the PATH?

2. When linking, the linker can't find the symbol [EMAIL PROTECTED]  I added
   a WinMain function, in addition to the real main, but do I /really/
   need this ugliness in my code?

2. After getting the thing built [insert much messing with gcc
   options], it runs perfectly!  However, I get lots of Pango font
   errors spewed out onto the terminal window:

** (ogcalc.exe:4293441469): WARNING **: Couldn't load font "MS Sans Serif 10" falling 
back to "Sans 10"
** (ogcalc.exe:4293441469): WARNING **: Couldn't load font "MS Sans Serif Bold 10" 
falling back to "Sans Bold 10"

   Yech!

   This is what's in C:\Program Files\Common
   Files\GTK\2.0\etc\pango\pango.aliases:

courier = "courier new"

#sans = "microsoft sans serif,lucida sans unicode,mingliu,simhei,gulimche,ms 
gothic,latha,mangal,code2000"
sans = "arial,mingliu,simhei,gulimche,ms gothic,latha,mangal,code2000"
serif = "times new roman,angsana new,mingliu,simsun,gulimche,ms 
gothic,latha,mangal,code2000"
monospace = "courier new,courier monothai,mingliu,simsun,gulimche,ms 
gothic,latha,mangal,code2000"

   I've tried much messing with this, from what I've seen from past
   posts, including "sans = sans", various fonts in the sans = ""
   line, but to no avail.  It's actually using Arial in the above
   example, but how do I get rid of the warnings?


Many thanks,
Roger


-- 
Roger Leigh

                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to