Pages : 1
#1 Le 28/11/2008, à 10:23
- davidGY
Erreur compilation Kdevelop
Bonjour,
Je cherche à m'entrainer sur linux à la programmation en C.
J'ai installé Kdevelop et j'essaye de compiler le fameux programme helloworld.
Au préalable j'ai installé automake, autoconf, build-essential, libtool, konsole.
Je précise aussi que j'utilise Ubuntu sur Virtualbox.
voici les messages suite à la compilation, apparemment il y aurait un probleme à la fin avec libtool:
cd '/home/david/newhello' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" LC_MESSAGES="C" LC_CTYPE="C" make -f Makefile.cvs && mkdir '/home/david/newhello/debug' && cd '/home/david/newhello/debug' && CFLAGS="-O0 -g3 " "/home/david/newhello/configure" --enable-debug=full && cd '/home/david/newhello/debug/./src' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" LC_MESSAGES="C" LC_CTYPE="C" make -k newhello
aclocal
autoheader
automake
autoconf
installing -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 gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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 fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
linking file.o... (gcc)
linking file.o... (gcc)
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... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
compiling newhello.c (gcc)
mv -f .deps/newhello.Tpo .deps/newhello.Po
linking newhello (CC)
../libtool: line 818: X--tag=CC: command not found
../libtool: line 851: libtool: ignoring unknown tag : command not found
../libtool: line 818: X--mode=link: command not found
../libtool: line 985: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 986: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
.[b]./libtool: line 2223: X-O0: command not found[i][/i]
../libtool: line 2223: X-g3: command not found
../libtool: line 2392: Xnewhello: command not found
X: user not authorized to run the X server, aborting.
../libtool: line 2404: Xnewhello: command not found
../libtool: line 2412: mkdir /.libs: No such file or directory
mkdir: cannot create directory `/.libs': Permission denied
make: *** [newhello] Error 1
*** Exited with status: 2 ***[/b]
Merci d'avance pour votre aide
David
Dernière modification par davidGY (Le 28/11/2008, à 10:59)
Hors ligne
#2 Le 28/11/2008, à 22:39
- aureld
Re : Erreur compilation Kdevelop
Bonsoir
J'ai eu le même problème il y a quelques jours sous Intrepid, il vient du paquet libtool. Vérifie la version de libtool, il suffit de le downgrader à la version 1.5 qui est dispo http://packages.ubuntu.com/hardy/libtool
Ensuite ne pas oublier de créer un nouveau projet kdevelop !
Bon courage !
Dernière modification par aureld (Le 28/11/2008, à 22:43)
Hors ligne
#3 Le 01/12/2008, à 12:20
- davidGY
Re : Erreur compilation Kdevelop
Bonjour,
Le problème est réglé, c'était effectivement le version de libtool.
Tout fonctionne merci pour ton aide!
Hors ligne
Pages : 1