get cross-compiler to work



I anm trying to set up a cross-compiler for GTK to be used on Windows. The page of Allin Cottrell ( http://www.ecn.wfu.edu/~cottrell/cross-gtk/ ) has been very helpfull.

I installed mingw and put the GTK-includefiles and libs in the correct directory.

I made a "Hello World" test program and it works okay in Linux.

Then compiled it with the Makefile I sort of copied from Allin's page:

CC = i386-mingw32msvc-gcc -O2 -Wall -mms-bitfields -mwindows
PKG_CONFIG_PATH = /home/edward/cross-tools/i386-mingw32msvc/lib/pkgconfig

PATH := $(PATH):/home/edward/cross-tools/bin

CFLAGS := $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \
          pkg-config --cflags gtk+-win32-2.0)
LIBS := $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \
          pkg-config --libs gtk+-win32-2.0)

doe.exe: probeer2.c
        $(CC) -o doe.exe  probeer2.c $(CFLAGS) $(LIBS)


No problems with compiling, is making the executable. Didn't work in wine and then started (dual-boot) Windows 98 and got the following errormessage:
** (sim.exe:4294686437): WARNING **: No builtin or dynamically loaded modules
were found. Pango will not work correctly. This probably means
there was an error in the creation of:
  'C:\PROBEER\SIM\etc\pango\pango.modules'
You may be able to recreate this file by running pango-querymodules.

(sim.exe:4294686437): GLib-GObject-CRITICAL **: file gobject.c: line 1561 (g_obj
ect_ref): assertion `G_IS_OBJECT (object)' failed

** (sim.exe:4294686437): CRITICAL **: file pango-engine.c: line 68 (_pango_engin
e_shape_shape): assertion `PANGO_IS_FONT (font)' failed

Now Pango libs and includes I also installed.Also in the directory where the executable is I added all the dll-s, because the program was asking for it, these being:
intl.dll
libglib-2.0-0.dll
libgtk-win32-2.0-0.dll
asprintf.dll
libatk-1.0-0.dll
libgmodule-2.0-0.dll
libpango-1.0-0.dll
charset.dll
libgdk-win32-2.0-0.dll
libgobject-2.0-0.dll
libpangoft2-1.0-0.dll
iconv.dll
libgdk_pixbuf-2.0-0.dll
libgthread-2.0-0.dll
libpangowin32-1.0-0.dll


What am I missing here, does this error really has to do with pango ?

Thank you, Edward Hage




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