Package Details: mingw-w64-glib2 2.82.3-1

Git Clone URL: https://aur.archlinux.org/mingw-w64-glib2.git (read-only, click to copy)
Package Base: mingw-w64-glib2
Description: Low level core library
Upstream URL: https://gitlab.gnome.org/GNOME/glib
Keywords: glib2 gnome gtk gtk2 gtk3 mingw mingw-w64
Licenses: LGPL-2.1-or-later
Submitter: brcha
Maintainer: Martchus
Last Packager: Martchus
Votes: 20
Popularity: 0.000000
First Submitted: 2012-06-13 19:15 (UTC)
Last Updated: 2024-12-10 22:33 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 Next › Last »

pnyetmja commented on 2015-09-26 13:33 (UTC)

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

ant32 commented on 2015-09-25 03:12 (UTC)

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 (UTC)

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?

Schala commented on 2015-09-24 17:55 (UTC)

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 (UTC)

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

pnyetmja commented on 2015-09-24 08:46 (UTC)

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 (UTC)

@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 (UTC)

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.