Re: [Vala] How compile Vala 0.17.7 under linux for Win32 (cross compile)



On 09/23/2012 09:42 PM, raum no-log org wrote:
[...]
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for GMODULE... yes
checking for GTHREAD... yes
[...]
/usr/include/glib-2.0/glib/deprecated/gthread.h:123:21: fatal error:
pthread.h: No such file or directory
compilation terminated.
make[3]: *** [valacodecontext.lo] Erreur 1
make[3]: quittant le répertoire « /compil/vala/vala »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire « /compil/vala/vala »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /compil/vala »
make: *** [all] Erreur 2

Do you have some hints ?? :)
It looks like you're compiling Vala against a Linux GLib. You'll have to
make sure you have a Windows GLib to link to (you can probably find
binaries and headers on the net somewhere, or you can try to
cross-compile *that* yourself) and then make sure PKG_CONFIG_PATH is set
in a way to make sure that pkg-config (and therefore the configure
script) finds the correct GLib. (you may have to edit some .pc files to
reflect your setup, of course)

Top tip: Cross-compiling is HARD. I recommend you give it up and compile
Vala directly on Windows. But maybe that's just be being angsty.

Thomas



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]