cross compile gtk on linux for win32



Hello,
I try to compile gtk-vnc on linux for win32 so I have to
firstly port gtk to win32 ( gtk 3.6 version ).

To do that, I have compiled glib 2.34 but make fails

gatomic.c:630:21: error: pthread.h: No such file or directory
gatomic.c:632: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'g_atomic_lock'
gatomic.c: In function 'g_atomic_int_get':
gatomic.c:639: warning: implicit declaration of function 'pthread_mutex_lock'
gatomic.c:639: error: 'g_atomic_lock' undeclared (first use in this function)
gatomic.c:639: error: (Each undeclared identifier is reported only once
gatomic.c:639: error: for each function it appears in.)
gatomic.c:641: warning: implicit declaration of function 'pthread_mutex_unlock'
gatomic.c: In function 'g_atomic_int_set':
gatomic.c:650: error: 'g_atomic_lock' undeclared (first use in this function)
gatomic.c: In function 'g_atomic_int_inc':
gatomic.c:658: error: 'g_atomic_lock' undeclared (first use in this function)
gatomic.c: In function 'g_atomic_int_dec_and_test':
gatomic.c:668: error: 'g_atomic_lock' undeclared (first use in this function)
gatomic.c: In function 'g_atomic_int_compare_and_exchange':
gatomic.c:682: error: 'g_atomic_lock' undeclared (first use in this function)
gatomic.c: In function 'g_atomic_int_add':
gatomic.c:698: error: 'g_atomic_lock' undeclared (first use in this function)
gatomic.c: In function 'g_atomic_int_and':
gatomic.c:712: error: 'g_atomic_lock' undeclared (first use in this function)
gatomic.c: In function 'g_atomic_int_or':
gatomic.c:726: error: 'g_atomic_lock' undeclared (first use in this function)
gatomic.c: In function 'g_atomic_int_xor':
gatomic.c:740: error: 'g_atomic_lock' undeclared (first use in this function)
gatomic.c: In function 'g_atomic_pointer_get':
gatomic.c:755: error: 'g_atomic_lock' undeclared (first use in this function)
gatomic.c: In function 'g_atomic_pointer_set':
gatomic.c:768: error: 'g_atomic_lock' undeclared (first use in this function)
gatomic.c: In function 'g_atomic_pointer_compare_and_exchange':
gatomic.c:781: error: 'g_atomic_lock' undeclared (first use in this function)
gatomic.c: In function 'g_atomic_pointer_add':
gatomic.c:798: error: 'g_atomic_lock' undeclared (first use in this function)
gatomic.c: In function 'g_atomic_pointer_and':
gatomic.c:813: error: 'g_atomic_lock' undeclared (first use in this function)
gatomic.c: In function 'g_atomic_pointer_or':
gatomic.c:828: error: 'g_atomic_lock' undeclared (first use in this function)
gatomic.c: In function 'g_atomic_pointer_xor':
gatomic.c:843: error: 'g_atomic_lock' undeclared (first use in this function)
make[4]: *** [gatomic.lo] Erreur 1
make[4]: quittant le répertoire « /home/nardu14/Bureau/cross/glib-2.34.3/glib »
make[3]: *** [all-recursive] Erreur 1
make[3]: quittant le répertoire « /home/nardu14/Bureau/cross/glib-2.34.3/glib »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire « /home/nardu14/Bureau/cross/glib-2.34.3/glib »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/nardu14/Bureau/cross/glib-2.34.3 »
make: *** [all] Erreur 2


there is some problems with pthread...I have download the win32 version of pthread but
this problem occurs again. Are there some solutions?

Thanks.


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