Précédent   Forum des professionnels en informatique > Systèmes > Linux > Distributions > Autres
Autres Autres distributions : Gentoo, Slackware, Knoppix, Kaella, Dsl, ...
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 06/05/2007, 19h36   #1
Membre Expert
 
Avatar de granquet
 
Étudiant
Inscription : octobre 2005
Messages : 1 202
Détails du profil
Informations personnelles :
Localisation : France, Pyrénées Orientales (Languedoc Roussillon)

Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : octobre 2005
Messages : 1 202
Points : 1 181
Points : 1 181
Par défaut [GENTOO] cross compil mingw32

voila, j'essaye desespérement de compiler la libgcrypt pour win32

j'en suis a essayer la cross compilation avec mingw32.

j'ai
Code :
emerge crossdev && crossdev i686-mingw32
et ensuite j'ai essayé un petit:
Code :
CPPFLAGS="-I /usr/i686-mingw32/mingw/include/" ROOT="/root/cross-gcrypt/" ARCH="mingw32" CHOST="i686" CBUILD="mingw32" CFLAGS="-O2" LDFLAGS="-L/usr/i686-mingw32/mingw/lib/ " emerge libgcrypt
cependant j'ai quelques erreurs a la liaison sur gpg-error:

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/usr/i686-mingw32/mingw/include/stdio.h:442: warning: `__cdecl__' attribute ignored
/usr/i686-mingw32/mingw/include/stdio.h:443: warning: `__cdecl__' attribute ignored
****<snip> zillions of time the same warning </snip>****
gcc -O2 -o gpg-error gpg_error-strsource-sym.o gpg_error-strerror-sym.o gpg_error-gpg-error.o  -L/usr/i686-mingw32/mingw/lib/ ./.libs/libgpg-error.a
gpg_error-gpg-error.o: In function `get_err_from_symbol_one':
gpg-error.c:(.text+0x24): undefined reference to `_strnicmp'
gpg-error.c:(.text+0x67): undefined reference to `_stricmp'
gpg-error.c:(.text+0x91): undefined reference to `_strnicmp'
gpg-error.c:(.text+0xce): undefined reference to `_stricmp'
gpg_error-gpg-error.o: In function `get_err_from_str_one':
gpg-error.c:(.text+0x132): undefined reference to `_stricmp'
gpg-error.c:(.text+0x17f): undefined reference to `_stricmp'
gpg_error-gpg-error.o: In function `main':
gpg-error.c:(.text+0x1f1): undefined reference to `_errno'
gpg-error.c:(.text+0x20e): undefined reference to `_errno'
gpg-error.c:(.text+0x44a): undefined reference to `_imp___iob'
gpg-error.c:(.text+0x531): undefined reference to `_imp___iob'
gpg-error.c:(.text+0x572): undefined reference to `_imp___iob'
collect2: ld returned 1 exit status
voila, je suis en x86_64 (si ça peux avoir un rapport? j'ai des doutes ... des fois je pense que oui, d'autres fois ... non ).

un probléme peut etre:
Code :
checking for ld used by GCC... /usr/x86_64-pc-linux-gnu/bin/ld
il ne devrais pas utiliser mingw-ld (ou un truc du genre)?

voila, n'importe quelle piste peux m'aider
__________________
click my www
............|___
...................\
.................._|_
..................\ /
..................."
granquet est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 06/05/2007, 19h48   #2
Rédacteur/Modérateur
 
Avatar de Michaël
 
Michaël Todorovic
Ingénieur systèmes et réseaux
Inscription : juillet 2003
Messages : 3 493
Détails du profil
Informations personnelles :
Nom : Michaël Todorovic
Âge : 25
Localisation : France, Paris (Île de France)

Informations professionnelles :
Activité : Ingénieur systèmes et réseaux

Informations forums :
Inscription : juillet 2003
Messages : 3 493
Points : 5 899
Points : 5 899
salut,
il ne faut pas utiliser gcc pour compiler utilise i586-mingw32msvc-gcc ou i586-mingw32msvc-g++
Michaël est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 06/05/2007, 20h11   #3
Membre Expert
 
Avatar de granquet
 
Étudiant
Inscription : octobre 2005
Messages : 1 202
Détails du profil
Informations personnelles :
Localisation : France, Pyrénées Orientales (Languedoc Roussillon)

Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : octobre 2005
Messages : 1 202
Points : 1 181
Points : 1 181
je me sens idiot maintenant

Citation:
CPPFLAGS="-I /usr/i686-mingw32/mingw/include/" ROOT="/root/cross-gcrypt/" ARCH="mingw32" CHOST="i686" CBUILD="mingw32" CFLAGS="-O2" LDFLAGS="-L/usr/i686-mingw32/mingw/lib/" CC="i686-mingw32-gcc" emerge libgcrypt
ça link toujours pas, mais ça parait plus coherent deja !

Citation:
i686-mingw32-gcc -O2 -o gpg-error.exe gpg_error-strsource-sym.o gpg_error-strerror-sym.o gpg_error-gpg-error.o -L/usr/i686-mingw32/mingw/lib/ ./.libs/libgpg-error.a
./.libs/libgpg-error.a: could not read symbols: Archive has no index; run ranlib to add one
jvais voir pour lancer ranlib dessus et link a la main.

-edit-
okay, j'ai reussi a compiler libgpg-error ... il utilisais psa mingw-ar ...
__________________
click my www
............|___
...................\
.................._|_
..................\ /
..................."
granquet est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 10h43.


 
 
 
 
Partenaires

Hébergement Web