Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 15/01/2007, à 16:36

Posytronique

Problème avec l'installation de LeoCAD.

Bonjour à tous.

J'ai voulu installer LeoCAD    'pour faire des logo -_-').

C'est bien mais pendant l'installation il y a quelques petites erreurs...
Voilà après avoir fait un "make config", j'obtient ça :

Automatic configuration
checking size of char... failed to get size of char
checking size of short... failed to get size of short
checking size of long... failed to get size of long
checking size of int... failed to get size of int
checking size of void *... failed to get size of void *
checking size of long long... failed to get size of long long
Determining endianess... little endian
Checking if GLIB and GTK+ are installed... ok
Checking for jpeg support... ok
Checking for zlib support... ok
Checking for png support... ok

Bon la 2ème moitié est nickelm mais le début j'ai ça :

checking size of char... failed to get size of char
checking size of short... failed to get size of short
checking size of long... failed to get size of long
checking size of int... failed to get size of int
checking size of void *... failed to get size of void *
checking size of long long... failed to get size of long long

Mmh bizarre, pourquoi il y a ces failed ?! j'espère que quelqu'un pourra m'aider à résoudre ce problème.

Mais bon comme j'ai  ces erreurs j'ai quand même continuer et donc je comprend pour lorsque après avoir fait "make config", je fais ça : "make", et j'obtient ça :

g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/im_jpg.o common/im_jpg.cpp
In file included from common/im_jpg.cpp:3:
linux/config.h:27:2: error: #error need to define lcint16 and lcuint16
linux/config.h:28:2: error: #error need to define lcint32 and lcuint32
common/file.h:43: error: ‘lcint32’ has not been declared
common/file.h:45: error: ‘lcuint32’ has not been declared
common/file.h:45: error: ‘void File::ReadInt(int*)’ cannot be overloaded
common/file.h:43: error: with ‘void File::ReadInt(int*)’
common/file.h:49: error: ‘lcint32’ has not been declared
common/file.h:51: error: ‘lcuint32’ has not been declared
common/file.h:51: error: ‘void File::WriteInt(int)’ cannot be overloaded
common/file.h:49: error: with ‘void File::WriteInt(int)’
make: *** [common/im_jpg.o] Erreur 1

Une aide ?

Merci d'avance.:)

Hors ligne

#2 Le 16/01/2007, à 13:55

Posytronique

Re : Problème avec l'installation de LeoCAD.

Personne pour m'aider ?
up cool

Hors ligne

#3 Le 17/01/2007, à 14:54

Posytronique

Re : Problème avec l'installation de LeoCAD.

... pLZ

Hors ligne

#4 Le 29/03/2007, à 11:59

j_p_g

Re : Problème avec l'installation de LeoCAD.

J'ai eu le même problème. Dans le même dossier que ton Makefile ya un fichier config.mk. C'est un fichier bash. Personnellement, je connais rien à la programmation bash mais à partir de la la ligne 160 il essaie de déterminer la taille des variables char, short, long int void * et long long avec la commande sizeof. Mais je sais pas pourquoi il y arrive pas.

@echo -n "checking size of char... "; \
	echo "#include <stdio.h>" > conftest.c; \
	echo "main() { FILE *f=fopen(\"conftestval\", \"w\");" >> conftest.c; \
	echo "if (!f) exit(1); fprintf(f, \"%d\\n\", sizeof(char)); exit(0); }" >> conftest.c; \
	if { (eval $(CC) conftest.c -o conftest) 2> /dev/null; } && \
	  (test -s conftest && (./conftest; exit) 2> /dev/null); then \
	  ac_cv_sizeof_char=`cat conftestval`; \
	  echo "$$ac_cv_sizeof_char"; \
	else \
	  echo "failed to get size of char"; \
	  ac_cv_sizeof_char=0; \
	fi; \

J'ai remplacé:

else \
	  echo "failed to get size of char"; \
	  ac_cv_sizeof_char=0; \
	fi; \

par:

else \
	  echo "failed to get size of char"; \
	  ac_cv_sizeof_char=1; \
	fi; \

Et de même pour les autres variables. Tas toujours les warnings en executant make config mais la compilation avec make marche nickel.
les longueurs des variables chez moi (si je me trompe pas):
char -> 1
short -> 2
long -> 4
int -> 4
void* -> 4
long long ->8

Bonne chance