Package Details: mingw-w64-glib2 2.52.3-1

Git Clone URL: https://aur.archlinux.org/mingw-w64-glib2.git (read-only)
Package Base: mingw-w64-glib2
Description: Low level core library (mingw-w64)
Upstream URL: http://www.gtk.org/
Keywords: glib2 gnome gtk gtk2 gtk3 mingw mingw-w64
Licenses: LGPL
Submitter: brcha
Maintainer: Schala
Last Packager: Schala
Votes: 16
Popularity: 0.254228
First Submitted: 2012-06-13 19:15
Last Updated: 2017-07-29 01:18

Latest Comments

lantw44 commented on 2017-02-26 06:24

Can we add mingw-w64-gettext to depends? libglib-2.0-0.dll needs libintl-8.dll.

drakkan commented on 2017-02-01 23:30

dll.a are ok if you compile with mingw-w64 but if you want to link in visual studio you need a .lib,

gstreamer official windows binaries are builded with mingw

https://gstreamer.freedesktop.org/documentation/installing/building-from-source-using-cerbero.html

and they work with msvc

https://gstreamer.freedesktop.org/documentation/installing/on-windows.html

.lib are generated this way:

https://cgit.freedesktop.org/gstreamer/cerbero/tree/cerbero/ide/vs/genlib.py#n33

I need .lib for glib to be able to link my gstreamer packages in visual studio,

I know about c++ but glib is a c library.

Actually the only problem is that .lib generated with dlltool in arch don't work with all msvc versions but this could be fixed in future updates, anyway packaging .def files make easier to regenerate the .lib directly on windows using lib.exe

Martchus commented on 2017-02-01 21:57

Why are the contained import libraries not sufficient? Note that import libraries have the extension `dll.a` in mingw-w64 packages (and not `lib`).

I would also say that it is not recommend to mix mingw-w64 with msvc. It might work with pure C libs but will fail when using C++.

drakkan commented on 2017-02-01 21:08

please add import library for linking in Visual Studio, patch here:

http://195.250.34.59/temp/0001-add-split-package-for-import-lib.patch

the generated .lib does not work with all msvc compiler versions anyway having the .def files make easier regenerate the .lib directly on windows using lib.exe instead of dlltool

drakkan commented on 2017-01-11 16:48

Can you please apply the following patch?

https://cgit.freedesktop.org/gstreamer/cerbero/tree/recipes/glib/0017-GSocket-Fix-race-conditions-on-Win32-if-multiple-thr.patch

Martchus commented on 2016-08-17 22:15

You've just reminded me to push the commit to mingw-w64-gettext.

Schala commented on 2016-08-17 22:07

ack, forgot the last part -_-

Martchus commented on 2016-08-13 14:15

pnyetmja: I will fix this problem with the static Qt package in the next update. To avoid hard coding I will use pkgconfig.

However, this package would need a slight fix to make it work: https://github.com/Martchus/PKGBUILDs/blob/master/glib2/mingw-w64/use-pkgconfig-file-for-intl.patch
This is because the bug pnyetmja already mentioned: https://github.com/Alexpux/MINGW-packages/issues/744
But please do not include this fix until the pkgconfig file for intl is included in mingw-w64-gettext.

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.

All comments