Re: To compile glib on MinGW is not easy
- From: Florian HEGRON <hogren iiiha com>
- To: LRN <lrn1986 gmail com>
- Cc: gtk-list gnome org
- Subject: Re: To compile glib on MinGW is not easy
- Date: Fri, 30 May 2014 15:09:26 +0200
Hello,
Thank you very much for your quick response !
I compiled glib on my MinGW installation ! It's unbelievable.
I plaisant but this is because I try since many days (weeks).
My different problems (with glib 2.41.0) :
- There is a bug into mingw-libintl package I opened a ticket in the
bug
tracker system of the MinGW project [1].
.la files must not be installed. Removing .la files is THE right
solution.
yes I understand that. You agree that is a bug of the mingw-libintl
package ?
- There is a problem with rand_s in grand.c in Glib and Windows API
provided with MinGW32. I saw that there are several patchs on several
forums/bugtrackers but I can't make it to work. If anybody know more
about this, thank you. My solution : I read the commit on git repo [2]
and
I unpatched glib.
Seems like MinGW.org-only problem.
It might be possible to rewrite this to use W32 CryptoAPI instead
(XP-or-later, but i doubt that glib maintains pre-XP compatibility
anymore).
Ok I see. Mingw32 use the XP API yet ?
I see on a bug tracker platform that mingw64 doesn't have the problem.
Do you know why mingw64 has not the same API than mingw32.
- There is a last problem with Python when I "make install". The error
:
python can't read /usr/bin/sh. My solution : I install Python (2.7.6),
I
add the path into $PATH, and I modified the
glib-2.41.0/bld/gio/gdbus-2.0/codegen/Makefile file. On line 538, I
delete "PYTHON = /usb/bin/env python25" and wrote "PYTHON = ". And at
the
line 199, I change "am__py_compile = $(PYTHON) $(SHELL) $(py_compile)"
by
"am__py_compile = $(SHELL) $(py_compile)". I didn't test but I think
that
the error is juste the "/usr/bin/env". I think that there is a bug
with
the ./configure script because in the Makefile files, the value of the
PYTHON variable was "/usr/bin/env python25" but, at the beginning, I
didn't have Python installed on my computer.
This is kind of complicated. Personally, i have W32 CPython integrated
into
my MinGW-w64 installation, and i also have MSYS2-Python installed.
Other
people use MinGW-CPython instead of W32 CPython. Either way, things
seem to
work out just fine for me.
Your description of the problem (not the solution) is kind of short, so
i
have no idea why would Python try to read /usr/bin/sh.
I didn't find that (Mingw-CPython). May be that I didn't enough search.
Do you know the rules to integrate or not a software on the Mingw-get
plateform ?
I really want to help to make glib more easy to compile and install.
So
say me what can I do to help the project. Do you want that I make a
specific test and show to you the result ?
I don't know. Not many people care about MinGW.org these days. It's
hard
enough to make glib devs accept patches that are MinGW-w64-compatible,
with
MinGW.org it's going to be even harder.
Ok. I don't understand the reason. Do devs think that cygwin is a best
method to compile on windows ? Do not they care about Windows ?
If any devs is interested, don't hesitate !
Thank you
Regards,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]