Building Glib with cross-compiler
| Newsgroups | gmane.comp.video.gimp.windows.devel |
|---|---|
| Message-ID | <[email protected]> |
Well, I know that building glib is not the thing an average user should do, but... I tried building it with a mingw cross-compiler in Linux. First I tried to use the configure but I got the following error: checking for growing stack pointer... configure: error: cannot run test program while cross compiling. Then tried to use the makefile.mingw, but It also failed. It built only .a file for glib, not dll, while all other dlls (gobject...) and even the examples built successfully. While compiling a glib dll it says: ------------------------- Cannot export g_fprintf: symbol not defined Cannot export g_printf: symbol not defined Cannot export g_snprintf: symbol not defined Cannot export g_sprintf: symbol not defined Cannot export g_vfprintf: symbol not defined Cannot export g_vprintf: symbol not defined Cannot export g_vsnprintf: symbol not defined Cannot export g_vsprintf: symbol not defined Creating library file: libglib-2.0.a gconvert.o(.text+0x50):gconvert.c: undefined reference to `_imp__libiconv_open' gconvert.o(.text+0x196):gconvert.c: undefined reference to `_imp__libiconv' gconvert.o(.text+0x1a6):gconvert.c: undefined reference to `_imp__libiconv_close' gconvert.o(.text+0x4fe):gconvert.c: undefined reference to `_g_trio_sprintf' gmessages.o(.text+0x83e):gmessages.c: undefined reference to `_g_trio_vsnprintf' gmessages.o(.text+0xc71):gmessages.c: undefined reference to `_g_trio_fprintf' gmessages.o(.text+0x1564):gmessages.c: undefined reference to `_g_trio_vsnprintf' gscanner.o(.text+0x5e2):gscanner.c: undefined reference to `_g_trio_fprintf' gscanner.o(.text+0x621):gscanner.c: undefined reference to `_g_trio_fprintf' gscanner.o(.text+0x1b83):gscanner.c: undefined reference to `_g_trio_snprintf' gscanner.o(.text+0x1cd5):gscanner.c: undefined reference to `_g_trio_snprintf' gscanner.o(.text+0x1d4e):gscanner.c: undefined reference to `_g_trio_snprintf' gscanner.o(.text+0x1f45):gscanner.c: undefined reference to `_g_trio_snprintf' gscanner.o(.text+0x20f5):gscanner.c: undefined reference to `_g_trio_snprintf' gscanner.o(.text+0x609):gscanner.c: undefined reference to `_g_trio_fprintf' gspawn-win32.o(.text+0xfd5):gspawn-win32.c: undefined reference to `_g_trio_sprintf' gspawn-win32.o(.text+0xff9):gspawn-win32.c: undefined reference to `_g_trio_sprintf' gspawn-win32.o(.text+0x101d):gspawn-win32.c: undefined reference to `_g_trio_sprintf' gspawn-win32.o(.text+0x1041):gspawn-win32.c: undefined reference to `_g_trio_sprintf' gstrfuncs.o(.text+0x418):gstrfuncs.c: undefined reference to `_g_trio_vsprintf' gstrfuncs.o(.text+0xc84):gstrfuncs.c: undefined reference to `_g_trio_snprintf' gstrfuncs.o(.text+0x11f1):gstrfuncs.c: undefined reference to `_g_trio_sprintf' gstrfuncs.o(.text+0x1362):gstrfuncs.c: undefined reference to `_g_trio_sprintf' gutils.o(.text+0x16fb):gutils.c: undefined reference to `dgettext' gutils.o(.text+0x1714):gutils.c: undefined reference to `bindtextdomain' gutils.o(.text+0x1725):gutils.c: undefined reference to `bind_textdomain_codeset' ---------------------- Btw, there are no .o files in trio and libcharset directories.