Package Details: mingw-w64-glib2 2.48.1-1

Git Clone URL: https://aur.archlinux.org/mingw-w64-glib2.git (read-only)
Package Base: mingw-w64-glib2
Description: Common C routines used by GTK+ and other libs (mingw-w64)
Upstream URL: http://www.gtk.org/
Keywords: glib2 gnome gtk mingw mingw-w64
Licenses: LGPL
Submitter: brcha
Maintainer: Schala
Last Packager: Schala
Votes: 13
Popularity: 0.569336
First Submitted: 2012-06-13 19:15
Last Updated: 2016-05-14 07:18

Latest Comments

pnyetmja commented on 2015-09-26 13:33

Adding -liconv after -lintl in qmake.conf solves problem
Thank you

pnyetmja commented on 2015-09-26 13:25

Adding -liconv after -lintl to qmake.conf solves problem.

ant32 commented on 2015-09-25 03:12

Manually adding libraries in the .pro file will probably add it in the wrong place in your case. Linking needs to be done in the right order. You can sometimes further debug the issue by modifying the last command executed.I'm guessing it needs to go after -lglib-2.0 or -lintl.

To make this permanent you'll need to add it in
/usr/x86_64-w64-mingw32/lib/qt/mkspecs/win32-g++/qmake.conf
just search for 'glib' in the file.
If you get it working please let us know how you did it.

pnyetmja commented on 2015-09-24 21:39

I've installed packages from this repo

http://downloads.sourceforge.net/project/mingw-w64-archlinux/$arch

And tried to compile statically simple qt gui project but I got that error

Build with shared libs succeeds

Also I manually added LIBS += -L/usr/x86_64-w64-mingw32/lib -liconv to Qt .pro file but static build failed.
That dir contains libs for windows, I suppose?

pnyetmja commented on 2015-09-24 21:38

I've installed packages from this repo

http://downloads.sourceforge.net/project/mingw-w64-archlinux/$arch

And tried to compile statically simple qt gui project then I got that error

Build with shared libs succeeds

Also I manually added LIBS += -L/usr/x86_64-w64-mingw32/lib -liconv to Qt .pro file but static build failed.
That dir contains libs for windows, I suppose?

Schala commented on 2015-09-24 17:55

Also, I'd rather wait to update glib2 until official repo updates. I've gotten complaints before for not following official repo version. It's in testing at the moment though.

Schala commented on 2015-09-24 17:53

Weird. libiconv should be installed with gettext. Which libiconv are you using? libiconv or win-iconv?

pnyetmja commented on 2015-09-24 08:46

Undefined reference error when statically linking with mingw-w64-qt5-base-static libs
https://github.com/Alexpux/MINGW-packages/issues/744


x86_64-w64-mingw32-g++ -g -static -Wl,-subsystem,windows -mthreads -o release/GUI.exe release/main.o release/gui.o release/moc_gui.o -lmingw32 -lqt5main -L/usr/x86_64-w64-mingw32/lib -liconv -lQt5Widgets -lQt5Gui -lcomdlg32 -loleaut32 -limm32 -ljpeg -lpng -lharfbuzz -lglib-2.0 -lintl -lwinmm -lQt5Core -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -lkernel32 -lz -lpcre16 -lEGL -lGLESv2 -ld3d9 -ldxguid -lgdi32 -luser32
/usr/x86_64-w64-mingw32/lib/libintl.a(dcigettext.o):(.text+0x55d): undefined reference to `libiconv'
/usr/x86_64-w64-mingw32/lib/libintl.a(dcigettext.o):(.text+0x8df): undefined reference to `libiconv_open'
/usr/x86_64-w64-mingw32/lib/libintl.a(dcigettext.o):(.text+0xa69): undefined reference to `libiconv_open'
/usr/x86_64-w64-mingw32/lib/libintl.a(relocatable.o):(.text+0x46): undefined reference to `libiconv_set_relocation_prefix'
collect2: error: ld returned 1 exit status

ant32 commented on 2015-03-04 18:08

@Infinity Schala is probably trying to build 2.42.2
According to https://wiki.archlinux.org/index.php/MinGW_package_guidelines
Always try to match the pkgver in your mingw-w64 packages to the pkgver of the corresponding regular packages in the official Arch Linux repos (not the testing repos).

Building 2.42.2 also works with that flag. Probably a better solution is to add this https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-glib2/0027-no_sys_if_nametoindex.patch and you don't need that flag

Martchus commented on 2015-03-04 17:20

You don't have to use sed to get rid of the -Werror=implicit-function-declaration flags. Adding GLIB_WARN_CFLAGS= in the configure line worked for me.

I did not get any reference errors (compiling the current version 2.43.91).
Are you sure that you cleaned everything after the failure of the first try without the flags omitted?
I'm also wondering why static and shared can not be build at the same time.

All comments