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 29/10/2007, à 14:45

Nubuntero

[Résolu]Erreur de compilation

Salut a tous, je suis nouveau sur le forum et nouveau Linuxien aussi, j'ai installé Feisty il ya une semaine deja et je dois avouer que j'adore!!! ça change de windoze, seulement voilà  apres quelques heures de documentation j'ai pu faire a peu pres tout ce que je voulais, mais j'ai un probleme avec l'installation manuelle de certaines archives, afin la compilation!!! je sais pas si je procede comme il faut, je recupere une archive tar.bz generalement, je la decompresse, avec le terminal j'accede au dossier decompressé  là  j'ai lu qu'il faillait faire
./configure
et apres make puis make install

quand je  fais ./configure j'ai une erreur du type

erreur de compilation, configure error
C compiler cannot create executables

voilà  si quelqu'un peut m'eclairer la dessus et sur le procedé meme de compilation ça m'aiderait
merci!!!

Dernière modification par Nubuntero (Le 13/11/2007, à 10:58)

Hors ligne

#2 Le 29/10/2007, à 15:00

Azema

Re : [Résolu]Erreur de compilation

Salut Nubuntero,

Heureux de t'avoir parmi nous, que Ubuntu te plaise. big_smile

Bon pour ton problème, as tu téléchargé les paquets :

build-essential, fakeroot et checkinstall

Car tu en as besoin pour la compilation des archives. hmm

Le fichier ./configure sert au programme que tu veux compiler à connaitre les informations dont il a besoin. Donc il vérifie le compilateur que tu as sur ton système et les librairies dont il a besoin. roll

Lorsque tu as un message d'erreur de la configuration ou de la compilation, vérifie le premier message d'erreur qu'il te renvoie. Les autres découlent généralement des premières erreurs. tongue

Si tu veux plus d'infos, va voir cette page.

Cordialement, Azema.

P.S: Pour mettre à jour les dépôts de ton système, tu peux aller sur le site sourceslist.org et tu sélectionnes la case des sources sur la première page puisque tu compiles. wink

Dernière modification par Azema (Le 29/10/2007, à 15:00)


Pour obtenir un fichier sources.list propre, rendez-vous sur www.sourceslist.org

Si votre problème est résolu, merci de l'indiquer dans l'en-tête de votre topic avec le terme [RESOLU].

Hors ligne

#3 Le 29/10/2007, à 21:01

ZgaR

Re : [Résolu]Erreur de compilation

Bonsoir,
Je me mets a compiler aussi depuis peu (2h30... big_smile) et après avoir résolu les soucies de départ (absence des compiler C/C++ et de quelques librairies) je me retrouve confronter a un obstacle que je n'arrive pas a surmonter.... Peut être quelqu'un pourrat-il m'aider...
Voici la source de mes ennuies :

checking for X... configure: error: Can't find X libraries. Please check your installation and add the correct paths!

Je ne sais pas quoi faire pour remédier a ce problème.

Pour information, et a toute fin utile, je précise que la compilation entreprise est celle d'un theme KDE.

Merci de votre aide smile

Dernière modification par ZgaR (Le 29/10/2007, à 21:02)

Hors ligne

#4 Le 30/10/2007, à 16:34

AuraHxC

Re : [Résolu]Erreur de compilation

apparemment tu n'as pas les fichiers -dev pour X donc il faut chercher les fichiers qui se termine par -dev et qui on un rapport avec libX11 un truc dans le genre.
Je peux pas regarder là, j'ai pas de linux sous la main sad

Hors ligne

#5 Le 30/10/2007, à 16:52

ZgaR

Re : [Résolu]Erreur de compilation

A force de chercher je suis tomber sur un forum en Anglais avec une personne rencontrant le même soucie que moi, en lisant quelques post, j'ai voulu tester quelque chose qui c'est avéré pertinent : télécharger les pacquet -dev de xorg !

Seulement ça ne s'arrète pas là.... Après avoir rencontré de nouveaux problème (de librairises Qt et KDE notamment) le configure se fait enfin correcement, c'est le make qui plante !! Et là je dois dire que je n'ai aucune idée de ce que je peux/dois faire....

jeremie@jeremie-laptop:~/Desktop/domino-0.4$ make
make  all-recursive
make[1]: entrant dans le répertoire « /home/jeremie/.local/share/Trash/files/domino-0.4 »
Making all in domino
make[2]: entrant dans le répertoire « /home/jeremie/.local/share/Trash/files/domino-0.4/domino »
make[2]: Rien à faire pour « all ».
make[2]: quittant le répertoire « /home/jeremie/.local/share/Trash/files/domino-0.4/domino »
Making all in dominoConfig
make[2]: entrant dans le répertoire « /home/jeremie/.local/share/Trash/files/domino-0.4/dominoConfig »
make[2]: Rien à faire pour « all ».
make[2]: quittant le répertoire « /home/jeremie/.local/share/Trash/files/domino-0.4/dominoConfig »
Making all in client
make[2]: entrant dans le répertoire « /home/jeremie/.local/share/Trash/files/domino-0.4/client »
Making all in .
make[3]: entrant dans le répertoire « /home/jeremie/.local/share/Trash/files/domino-0.4/client »
if /bin/bash ../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/share/qt3/include -I.  -I/usr/include/kde/kwin  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common  -MT dominoclient.lo -MD -MP -MF ".deps/dominoclient.Tpo" -c -o dominoclient.lo dominoclient.cpp; \
        then mv -f ".deps/dominoclient.Tpo" ".deps/dominoclient.Plo"; else rm -f ".deps/dominoclient.Tpo"; exit 1; fi
In file included from dominoclient.cpp:10:
dominoclient.h:13:31: error: kcommondecoration.h: No such file or directory
dominoclient.h:14:32: error: kdecorationfactory.h: No such file or directory
dominoclient.h:23: error: expected class-name before '{' token
dominoclient.h:27: error: ISO C++ forbids declaration of 'KDecoration' with no type
dominoclient.h:27: error: expected ';' before '*' token
dominoclient.h:29: error: 'Ability' has not been declared
dominoclient.h:52: error: expected class-name before '{' token
dominoclient.h:54: error: expected `)' before 'type'
dominoclient.h:71: error: expected class-name before '{' token
dominoclient.h:74: error: expected `)' before '*' token
dominoclient.h:80: error: 'DecorationBehaviour' has not been declared
dominoclient.h:81: error: 'LayoutMetric' has not been declared
dominoclient.h:81: error: expected ',' or '...' before '*' token
dominoclient.h:81: error: ISO C++ forbids declaration of 'KCommonDecorationButton' with no type
dominoclient.h:82: error: ISO C++ forbids declaration of 'KCommonDecorationButton' with no type
dominoclient.h:82: error: 'KCommonDecorationButton' declared as a 'virtual' field
dominoclient.h:82: error: expected ';' before '*' token
dominoclient.h:105: error: ISO C++ forbids declaration of 'QButton' with no type
dominoclient.h:105: error: expected ';' before '*' token
dominoclient.h:81: error: default argument missing for parameter 3 of 'virtual int Domino::DominoClient::layoutMetric(int, bool, int) const'
dominoclient.cpp:119: error: expected constructor, destructor, or type conversion before '*' token
dominoclient.cpp: In member function 'bool Domino::DominoHandler::reset(long unsigned int)':
dominoclient.cpp:128: error: 'SettingColors' was not declared in this scope
dominoclient.cpp:135: error: 'SettingDecoration' was not declared in this scope
dominoclient.cpp:135: error: 'SettingFont' was not declared in this scope
dominoclient.cpp:135: error: 'SettingBorder' was not declared in this scope
dominoclient.cpp:138: error: 'resetDecorations' was not declared in this scope
dominoclient.cpp: In member function 'long unsigned int Domino::DominoHandler::readConfig(bool)':
dominoclient.cpp:149: error: 'options' was not declared in this scope
dominoclient.cpp:177: error: 'SettingColors' was not declared in this scope
dominoclient.cpp: At global scope:
dominoclient.cpp:491: error: 'bool Domino::DominoHandler::supports' is not a static member of 'class Domino::DominoHandler'
dominoclient.cpp:491: error: 'Ability' was not declared in this scope
dominoclient.cpp:492: error: expected ',' or ';' before '{' token
dominoclient.cpp:514: error: expected `)' before 'type'
dominoclient.cpp: In member function 'void Domino::DominoButton::reset(long unsigned int)':
dominoclient.cpp:540: error: 'SizeChange' was not declared in this scope
dominoclient.cpp:540: error: 'ManualReset' was not declared in this scope
dominoclient.cpp:541: error: 'setBackgroundOrigin' was not declared in this scope
dominoclient.cpp:542: error: 'setErasePixmap' was not declared in this scope
dominoclient.cpp:546: error: 'DecorationReset' was not declared in this scope
dominoclient.cpp:546: error: 'ManualReset' was not declared in this scope
dominoclient.cpp:546: error: 'SizeChange' was not declared in this scope
dominoclient.cpp:546: error: 'StateChange' was not declared in this scope
dominoclient.cpp:547: error: 'class Domino::DominoButton' has no member named 'update'
dominoclient.cpp: In member function 'void Domino::DominoButton::drawButton(QPainter*)':
dominoclient.cpp:559: error: 'isDown' was not declared in this scope
dominoclient.cpp:559: error: 'isOn' was not declared in this scope
dominoclient.cpp:560: error: 'decoration' was not declared in this scope
dominoclient.cpp:561: error: 'type' was not declared in this scope
dominoclient.cpp:562: error: 'CloseButton' was not declared in this scope
dominoclient.cpp:565: error: 'HelpButton' was not declared in this scope
dominoclient.cpp:568: error: 'MinButton' was not declared in this scope
dominoclient.cpp:571: error: 'MaxButton' was not declared in this scope
dominoclient.cpp:574: error: 'OnAllDesktopsButton' was not declared in this scope
dominoclient.cpp:577: error: 'ShadeButton' was not declared in this scope
dominoclient.cpp:580: error: 'AboveButton' was not declared in this scope
dominoclient.cpp:583: error: 'BelowButton' was not declared in this scope
dominoclient.cpp:586: error: 'MenuButton' was not declared in this scope
dominoclient.cpp:592: error: 'type' was not declared in this scope
dominoclient.cpp:592: error: 'MenuButton' was not declared in this scope
dominoclient.cpp: In member function 'void Domino::DominoButton::enterEvent(QEvent*)':
dominoclient.cpp:603: error: 'class Domino::DominoClient' has no member named 'isActive'
dominoclient.cpp:607: error: 'repaint' was not declared in this scope
dominoclient.cpp: In member function 'void Domino::DominoButton::leaveEvent(QEvent*)':
dominoclient.cpp:614: error: 'repaint' was not declared in this scope
dominoclient.cpp: At global scope:
dominoclient.cpp:621: error: expected `)' before '*' token
dominoclient.cpp:654: error: 'bool Domino::DominoClient::decorationBehaviour' is not a static member of 'class Domino::DominoClient'
dominoclient.cpp:654: error: 'DecorationBehaviour' was not declared in this scope
dominoclient.cpp:654: error: expected ',' or ';' before 'const'
dominoclient.cpp:668: error: 'int Domino::DominoClient::layoutMetric' is not a static member of 'class Domino::DominoClient'
dominoclient.cpp:668: error: 'LayoutMetric' was not declared in this scope
dominoclient.cpp:668: error: expected primary-expression before 'bool'
dominoclient.cpp:668: error: expected primary-expression before 'const'
dominoclient.cpp:668: error: initializer expression list treated as compound expression
dominoclient.cpp:668: error: expected ',' or ';' before 'const'
dominoclient.cpp:720: error: expected constructor, destructor, or type conversion before '*' token
dominoclient.cpp: In member function 'void Domino::DominoClient::init()':
dominoclient.cpp:763: error: 'menuButton' was not declared in this scope
dominoclient.cpp:766: error: 'KDecoration' has not been declared
dominoclient.cpp:766: error: 'WNoAutoErase' was not declared in this scope
dominoclient.cpp:766: error: 'WStaticContents' was not declared in this scope
dominoclient.cpp:767: error: 'setMainWidget' was not declared in this scope
dominoclient.cpp:769: error: 'widget' was not declared in this scope
dominoclient.cpp:769: error: 'NoBackground' was not declared in this scope
dominoclient.cpp:773: error: 'KCommonDecoration' has not been declared
dominoclient.cpp:773: error: 'SettingButtons' was not declared in this scope
dominoclient.cpp:775: error: 'connect' was not declared in this scope
dominoclient.cpp: In member function 'void Domino::DominoClient::createLayout()':
dominoclient.cpp:784: error: 'widget' was not declared in this scope
dominoclient.cpp: In member function 'void Domino::DominoClient::reset(long unsigned int)':
dominoclient.cpp:858: error: 'widget' was not declared in this scope
dominoclient.cpp:859: error: 'KCommonDecoration' has not been declared
dominoclient.cpp:860: error: 'KCommonDecoration' has not been declared
dominoclient.cpp: In member function 'void Domino::DominoClient::updateMask()':
dominoclient.cpp:869: error: 'maximizeMode' was not declared in this scope
dominoclient.cpp:869: error: 'MaximizeFull' was not declared in this scope
dominoclient.cpp:869: error: 'options' was not declared in this scope
dominoclient.cpp:870: error: 'clearMask' was not declared in this scope
dominoclient.cpp:873: error: 'widget' was not declared in this scope
dominoclient.cpp:880: error: 'setMask' was not declared in this scope
dominoclient.cpp: In member function 'void Domino::DominoClient::updateCaption()':
dominoclient.cpp:892: error: 'buttonsLeftWidth' was not declared in this scope
dominoclient.cpp:893: error: 'buttonsRightWidth' was not declared in this scope
dominoclient.cpp:895: error: 'options' was not declared in this scope
dominoclient.cpp:897: error: 'caption' was not declared in this scope
dominoclient.cpp:903: error: 'KDecorationDefines' has not been declared
dominoclient.cpp:903: error: 'isActive' was not declared in this scope
dominoclient.cpp: In member function 'void Domino::DominoClient::activeChange()':
dominoclient.cpp:914: error: 'updateButtons' was not declared in this scope
dominoclient.cpp: In member function 'void Domino::DominoClient::iconChange()':
dominoclient.cpp:920: error: 'menuButton' was not declared in this scope
dominoclient.cpp:922: error: 'KDecoration' has not been declared
dominoclient.cpp:922: error: incomplete type 'QIconSet' used in nested name specifier
dominoclient.cpp:922: error: incomplete type 'QIconSet' used in nested name specifier
dominoclient.cpp: In member function 'void Domino::DominoClient::menuButtonDestroyed()':
dominoclient.cpp:932: error: 'menuButton' was not declared in this scope
dominoclient.cpp: In member function 'void Domino::DominoClient::slotShade()':
dominoclient.cpp:937: error: 'isSetShade' was not declared in this scope
dominoclient.cpp:937: error: 'setShade' was not declared in this scope
dominoclient.cpp: In member function 'void Domino::DominoClient::borders(int&, int&, int&, int&) const':
dominoclient.cpp:944: error: 'LM_BorderLeft' was not declared in this scope
dominoclient.cpp:945: error: 'LM_BorderRight' was not declared in this scope
dominoclient.cpp:946: error: 'LM_BorderBottom' was not declared in this scope
dominoclient.cpp:947: error: 'LM_TitleHeight' was not declared in this scope
dominoclient.cpp:948: error: 'LM_TitleEdgeTop' was not declared in this scope
dominoclient.cpp:949: error: 'LM_TitleEdgeBottom' was not declared in this scope
dominoclient.cpp:951: error: 'widget' was not declared in this scope
dominoclient.cpp: In member function 'void Domino::DominoClient::shadeChange()':
dominoclient.cpp:957: error: 'isSetShade' was not declared in this scope
dominoclient.cpp:968: error: 'widget' was not declared in this scope
dominoclient.cpp: In member function 'void Domino::DominoClient::resize(const QSize&)':
dominoclient.cpp:974: error: 'widget' was not declared in this scope
dominoclient.cpp:975: error: 'maximizeMode' was not declared in this scope
dominoclient.cpp:975: error: 'MaximizeFull' was not declared in this scope
dominoclient.cpp:975: error: 'options' was not declared in this scope
dominoclient.cpp: In member function 'void Domino::DominoClient::resizeEvent(QResizeEvent*)':
dominoclient.cpp:999: error: 'KCommonDecoration' has not been declared
dominoclient.cpp: In member function 'bool Domino::DominoClient::eventFilter(QObject*, QEvent*)':
dominoclient.cpp:1028: error: 'mouseDoubleClickEvent' was not declared in this scope
dominoclient.cpp:1031: error: 'isSetShade' was not declared in this scope
dominoclient.cpp:1032: error: 'wheelEvent' was not declared in this scope
dominoclient.cpp:1035: error: 'processMousePressEvent' was not declared in this scope
dominoclient.cpp:1040: error: 'updateButtons' was not declared in this scope
dominoclient.cpp: In member function 'virtual void Domino::TitleBar::enterEvent(QEvent*)':
dominoclient.cpp:1060: error: 'class Domino::DominoClient' has no member named 'isActive'
dominoclient.cpp:1066: error: 'class Domino::DominoClient' has no member named 'updateButtons'
dominoclient.cpp: In member function 'virtual bool Domino::TitleBar::eventFilter(QObject*, QEvent*)':
dominoclient.cpp:1074: error: 'class Domino::DominoClient' has no member named 'isActive'
dominoclient.cpp:1076: error: expected type-specifier before 'QButton'
dominoclient.cpp:1076: error: expected `>' before 'QButton'
dominoclient.cpp:1076: error: expected `(' before 'QButton'
dominoclient.cpp:1076: error: 'QButton' was not declared in this scope
dominoclient.cpp:1076: error: expected primary-expression before '>' token
dominoclient.cpp:1076: error: expected `)' before '{' token
dominoclient.cpp:1083: error: expected primary-expression before '}' token
dominoclient.cpp:1083: error: expected `;' before '}' token
dominoclient.cpp: At global scope:
dominoclient.cpp:1176: error: expected constructor, destructor, or type conversion before '*' token
dominoclient.moc: In static member function 'static QMetaObject* Domino::DominoClient::staticMetaObject()':
dominoclient.moc:54: error: 'KCommonDecoration' has not been declared
dominoclient.moc: In member function 'virtual void* Domino::DominoClient::qt_cast(const char*)':
dominoclient.moc:78: error: 'KCommonDecoration' has not been declared
dominoclient.moc: In member function 'virtual bool Domino::DominoClient::qt_invoke(int, QUObject*)':
dominoclient.moc:87: error: 'KCommonDecoration' has not been declared
dominoclient.moc: In member function 'virtual bool Domino::DominoClient::qt_emit(int, QUObject*)':
dominoclient.moc:94: error: 'KCommonDecoration' has not been declared
dominoclient.moc: In member function 'virtual bool Domino::DominoClient::qt_property(int, int, QVariant*)':
dominoclient.moc:100: error: 'KCommonDecoration' has not been declared
make[3]: *** [dominoclient.lo] Erreur 1
make[3]: quittant le répertoire « /home/jeremie/.local/share/Trash/files/domino-0.4/client »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /home/jeremie/.local/share/Trash/files/domino-0.4/client »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/jeremie/.local/share/Trash/files/domino-0.4 »
make: *** [all] Erreur 2
jeremie@jeremie-laptop:~/Desktop/domino-0.4$

La moindre piste sera apprecié big_smile

Hors ligne

#6 Le 30/10/2007, à 17:04

AuraHxC

Re : [Résolu]Erreur de compilation

Soit tu ne possède pas g++ avec les headers (build-essential ou peut être d'autre lib C++) ou alors le monsieur a codé comme une savatte... parce que je vois beaucoup d'erreur qui se rapporte sur le fait qu'il manque des déclarations de champs. Peut être qu'il utilse des librairies particulières donc des headers qui te manque (genre ca parle de kcommondecoration.h et kdecorationfactory.h => surement des libs KDE).

La je vois pas plus sur le moment tongue

Hors ligne

#7 Le 30/10/2007, à 17:08

ZgaR

Re : [Résolu]Erreur de compilation

Pour Buildessential je l'ai prise hier (j'en avais besoin pour le ./configure) et j'ai chercher sur les dépôts ubuntu pour justement ce fameux kdecoration sans succès....

Merci tout de même smile

Hors ligne

#8 Le 30/10/2007, à 19:40

HymnToLife

Re : [Résolu]Erreur de compilation

ZgaR a écrit :

Pour Buildessential je l'ai prise hier (j'en avais besoin pour le ./configure) et j'ai chercher sur les dépôts ubuntu pour justement ce fameux kdecoration sans succès....

Merci tout de même smile

Tu n'as pas bien cherché, alors wink

http://packages.ubuntu.com/cgi-bin/search_contents.pl?word=kcommondecoration.h&searchmode=searchfiles&case=insensitive&version=gutsy&arch=i386


- Rodrigue, as-tu du cœur ?
- Non, mais j'ai du pique !

Hors ligne

#9 Le 30/10/2007, à 19:58

AuraHxC

Re : [Résolu]Erreur de compilation

Vue que je suis pas sur KDE, j'avais pas pensé au paquet : kdebase-dev.
Installe le et tu verras bien ce que ca te dit wink

Hors ligne

#10 Le 30/10/2007, à 20:28

ZgaR

Re : [Résolu]Erreur de compilation

Effectivement je ne l'avais pas smile

Merci à vous !


Edit : Hiphiphip houra !
En rajoutant encore quelques librairies j'ai pu mener a bien cette première compilation big_smile

Dernière modification par ZgaR (Le 30/10/2007, à 20:54)

Hors ligne

#11 Le 30/10/2007, à 21:01

AuraHxC

Re : [Résolu]Erreur de compilation

Tu vois c'est pas si sorcier tongue

Faudra que tu mette Résolu dans ce cas wink

Dernière modification par AuraHxC (Le 30/10/2007, à 21:02)

Hors ligne

#12 Le 30/10/2007, à 21:30

ZgaR

Re : [Résolu]Erreur de compilation

Mais c'est pas mon sujet hmm

Hors ligne

#13 Le 30/10/2007, à 22:57

AuraHxC

Re : [Résolu]Erreur de compilation

lol désolé j'ai pas suivit, je lis tellement de post et je prend sur mon temps donc je vais a l'essentiel => le problème big_smile

Hors ligne

#14 Le 31/10/2007, à 15:17

ZgaR

Re : [Résolu]Erreur de compilation

Oui je connais ça, j'ai été modérateur sur un forum d'entraide dédié au Freenaute lorsque j'en avais encore le temps... Maintenant c'est plus trop le cas hmm
Enfin, merci pour l'aide apporté, c'est toujours sympa d'être aider pour résoudre ces problèmes et comprendre le fonctionnement des choses smile

Hors ligne

#15 Le 03/11/2007, à 12:31

Nubuntero

Re : [Résolu]Erreur de compilation

Salut à tous et merci Azema, pour ta reponse, désolé j'avais de serieux problemes pour me connecter à l'internet ces jours, je suis heureux de voir que mon cri d'aide a été entendu, je viens de check le lien que tu m'as laisssé et j'ai appris pas mal, merci, je vais tout de suite installer tout ça et voir si ça marche!!!

Hors ligne