logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 22-06-2008 09:04:33

koshie
Membre
Inscription : 19-06-2008

[Inutile] N'arrive pas à compiler codeblocks

Bonjour !

Depuis hier soir je tente de compiler CodeBlocks, je télécharge les sources ici, j'extrait l'archive, je fais un cd pour entrer dedans, je tape ./configure qui me donne ça :

cindy@Cindy:~/codeblocks-8.02$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gawk... (cached) mawk
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for unistd.h... (cached) yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working volatile... yes
checking whether closedir returns void... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for atexit... yes
checking for getcwd... yes
checking for isascii... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strrchr... yes
checking for strstr... yes
checking for dlopen in -ldl... yes
checking for pthread_create in -lpthread... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for library containing gzopen... -lz
checking for library containing BZ2_bzopen... no
checking whether to enable debugging... no
checking whether to build the source formatter plugin... yes
checking whether to build the autosave plugin... yes
checking whether to build the class wizard plugin... yes
checking whether to build the code completion plugin... yes
checking whether to build the compiler plugin... yes
checking whether to build the debugger plugin... yes
checking whether to build the default MIME handler plugin... yes
checking whether to build the open files list plugin... yes
checking whether to build the foreign projects importer plugin... yes
checking whether to build the scripted wizard plugin... yes
checking whether to build the to-do plugin... yes
checking which (if any) contrib plugins to build... Unknown contrib plugin none, ignoring
none
checking if the compiler supports precompiled headers... yes
checking for wx-config... no
configure: error:
                wxWidgets must be installed on your system.

                Please check that wx-config is in path, the directory
                where wxWidgets libraries are installed (returned by
                'wx-config --libs' or 'wx-config --static --libs' command)
                is in LD_LIBRARY_PATH or equivalent variable and
                wxWindows version is 2.8.0 or above.


Il y a donc une erreur sur la fin, je tape make et bien entendu, j'ai ça :

cindy@Cindy:~/codeblocks-8.02$ make
make: *** Pas de cibles spécifiées et aucun makefile n'a été trouvé. Arrêt.


Bon je pourrais installer à partir de .deb mais j'ai envie de compiler pour commencer à me faire la main, et puis parait-il que ça n'a que des avantages !

J'ai un peu googlé avec cette phrase : " make: *** Pas de cibles spécifiées et aucun makefile n'a été trouvé. Arrêt.  "

Mais après plusieurs pages j'ai rien trouvé pour m'aider, enfin si, j'ai entendu dire que dans le README je pourrais avoir de l'aide mais il est vide...

Aidez-moi s'il vous plaît ^^.

Je vous remercie de m'aider les amis !

Koshie

Dernière modification par koshie (12-07-2008 11:42:22)

Hors ligne

#2 22-06-2008 10:16:47

Thom1
Membre
Inscription : 29-11-2007
Site Web

Re : [Inutile] N'arrive pas à compiler codeblocks

Si tu veux apprendre à compiler, essaye plutôt slackware ou même gentoo, mais debian n'est pas très optimisé pour compiler. D'autre part, si ce codeblocks est dans les dépôts, il est inutile de le compiler avec un paquet externe.

Hors ligne

#3 22-06-2008 10:36:44

koshie
Membre
Inscription : 19-06-2008

Re : [Inutile] N'arrive pas à compiler codeblocks

Ouai je sais que Gentoo est un peu LA distro à compilation, mais on peut compiler sous Debian et y avoir des avantages quand même non?

Hors ligne

#4 22-06-2008 12:20:49

n3os
Modérateur
Lieu : /Debian/Home/neos
Distrib. : Sid
Noyau : 2.6.35
(G)UI : e17
Inscription : 14-07-2007

Re : [Inutile] N'arrive pas à compiler codeblocks

Salut,

wxWidgets must be installed on your system. <-- tu l'as installé ?

j'ai rarement compilé sous Debian, je le faisais à un moment pour voir si cela avait un intéret (avec apt-build)
mais franchement à part pour rajouter une option à un paquet qui ne l'aurait pas par défaut, quand tu utilises plusieurs dépôts sous Debian, il est rare que tu ne trouves pas un paquet, quand a gentoo c'est pas mal, j'ai pu testé, mais bon passé une plombe à toujours tout compilé surtout les gros paquets, ça n'a aucun intéret réel.

je compile souvent le noyau c'est tout.

Si tu comptes utiliser souvent la méthode ./configure ..............
attention toutefois le système ne sera pas toujours au courant de ce qui est installé et donc la communication avec les librairies qui l'aurait besoin ne sera pas parfaite.

Si tu veux créer des paquets propre à Debian --> Debian-guide ou faire un paquet

Hors ligne

#5 22-06-2008 12:27:58

koshie
Membre
Inscription : 19-06-2008

Re : [Inutile] N'arrive pas à compiler codeblocks

Cindy:/home/cindy# apt-get install wxWidgets
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances      
Lecture des informations d'état... Fait
E: Impossible de trouver le paquet wxWidgets


J'ai oublié de préciser que j'avais déjà tenté le coup !

Merci pour tes urls, je vais lire ça.

Dernière modification par koshie (22-06-2008 12:28:45)

Hors ligne

#6 22-06-2008 13:29:51

n3os
Modérateur
Lieu : /Debian/Home/neos
Distrib. : Sid
Noyau : 2.6.35
(G)UI : e17
Inscription : 14-07-2007

Re : [Inutile] N'arrive pas à compiler codeblocks

non c'est la librairie qui est demandé essaye --> apt-get install  libwxgtk2.8-0 ou libwxgtk2.8-dev

Hors ligne

#7 22-06-2008 15:35:44

palmito
Administrateur
Lieu : Dans la boite de gâteau!
Distrib. : bah....
Noyau : heu...
(G)UI : gné?
Inscription : 28-05-2007

Re : [Inutile] N'arrive pas à compiler codeblocks

Un petit tuto ici wink

Hors ligne

#8 22-06-2008 15:45:49

koshie
Membre
Inscription : 19-06-2008

Re : [Inutile] N'arrive pas à compiler codeblocks

Cindy:/home/cindy# apt-get install libwxgtk2.8-dev
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances      
Lecture des informations d'état... Fait
E: Impossible de trouver le paquet libwxgtk2.8-dev


big_smile

je vais lire ton tuto Palmito, merci.

Hors ligne

#9 22-06-2008 15:53:04

koshie
Membre
Inscription : 19-06-2008

Re : [Inutile] N'arrive pas à compiler codeblocks

W: GPG error: http://apt.wxwidgets.org etch-wx Release: Les signatures suivantes n'ont pas pu être vérifiées car la clé publique n'est pas disponible : NO_PUBKEY 0E0BCE7F53B087BC
W: Vous pouvez lancer « apt-get update » pour corriger ces problèmes.


J'ai pas trop encore compris le principe de la Pub key...

Hors ligne

#10 22-06-2008 16:35:07

palmito
Administrateur
Lieu : Dans la boite de gâteau!
Distrib. : bah....
Noyau : heu...
(G)UI : gné?
Inscription : 28-05-2007

Re : [Inutile] N'arrive pas à compiler codeblocks

Regarde dans le tuto donné, il te donne la commande pour importer la clé wink

Hors ligne

#11 22-06-2008 21:13:30

alex
Membre
Lieu : Trevoux
Distrib. : etch
Noyau : 2.6.25
(G)UI : kde
Inscription : 07-06-2007
Site Web

Re : [Inutile] N'arrive pas à compiler codeblocks

si tu veux absolument compiler un paquet, et que ce dernier est présent dans les dépôts, tu peux utiliser la commande

apt-get source codeblocks


et au préalable pour avoir toutes les dépendances nécessaires à la compilation,

 apt-get build-dep codeblocks


il faut t'assurer aussi avant toute chose d'avoir les liens deb-src présent et non commenté dans ton/tes fichiers sources.list

Dernière modification par alex (23-06-2008 21:04:43)

Hors ligne

#12 23-06-2008 09:24:33

freddec
homo-informaticus du genre linuxo-debianicum
Lieu : Saint Jean d'Y (17)
Distrib. : Branche Stable (BullsEye en 2022)
Noyau : Ca depend !
(G)UI : XFCE (+/- Mate, Cinnamon, Gnome, LXDE)
Inscription : 09-01-2008

Re : [Inutile] N'arrive pas à compiler codeblocks

salut

l y a donc une erreur sur la fin, je tape make et bien entendu, j'ai ça :


Tu sais que tu ne passe pas le première étape, et tu tentes malgré tout de poursuivre !
Pas trés logique

Pour ce qui est de la libwxgtk2.8 tu constateras qu'elle appartient à la branche expérimental de Debian, la version en cours pour Testing et unstable est la libwxgtk2.6-0 et je te sugère si tu veux compiler d'installer la librairie de -dev.
Voir http://packages.debian.org/search?keywo … ection=all

Pour ce qui est de gérer le résultat de ta compil via apt, la méthode la plus simple a défaut d'être la méthode officielle consista a utilisé le paquet checkinstall puis a procéder ainsi

./configure
puis
make
puis
checkinstall (au lieu de makeinstall)


Répondre aux questions, cela aboutit a la création et à l'installation dans la foulée d'un paquet .deb gérable ensuite avec les outils apt.

Voir http://www.linuxfocus.org/Francais/Dece … e360.shtml
et http://blog.bmaron.net/index.php?post/2 … eckinstall
ainsi que
http://www.trustonme.net/didactels/117.html


Desktop: Debian BullsEye (Core I5 - 16Go - SSD + 2HDD et NAS Netgear)
Laptop 1: BullsEye (PackardBell TS 44, Core I5, 4Go, SSD), Laptop 2: BullsEye (Lenovo, Core I5, 8Go, SSD)
EeePC : Debian Jessie (Atom N450, 2 Go)
Raspberry Pi B+: Raspbian (Stretch)

Hors ligne

#13 23-06-2008 14:40:35

n3os
Modérateur
Lieu : /Debian/Home/neos
Distrib. : Sid
Noyau : 2.6.35
(G)UI : e17
Inscription : 14-07-2007

Re : [Inutile] N'arrive pas à compiler codeblocks

Salut all,

le tuto du lien de palmito n'a rien donné ?

alex un p'tit effort d'orthographe dans tes codes s'il te plait wink

Hors ligne

#14 12-07-2008 11:42:02

koshie
Membre
Inscription : 19-06-2008

Re : [Inutile] N'arrive pas à compiler codeblocks

Bon ça sert pas à grand chose de compiler ça effectivement, désolé du temps perdu.

Hors ligne

Pied de page des forums