Einfaches Programm mit KDevelop compilieren klappt nicht.



  • Hallo!

    Ich bin dabei mich ein wenig mit Suse zu vergnügen, unter Windows arbeite ich mit dem Visual Studio 6.0.

    Unter Linux wollte ich mit KDevelop 3.0 arbeiten, jedoch klappt das compilieren einer normalen hello world anwendung nicht:

    Zuerst kommt der Hinweis in dem Projektverzeichnis ist kein makefile und kein configure-Skript vorhanden. Ob "Automake && Konsorten" ausgeführt werdne soll.

    Ich klicke auf ja, dass ist das Ergebnis:

    **
    *cd "/programmierung/fghfdgh" && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" gmake -f Makefile.cvs && mkdir "/programmierung/fghfdgh/debug" && cd "/programmierung/fghfdgh/debug" && CXXFLAGS="-O0 -g3" "/programmierung/fghfdgh/configure" --enable-debug=full && cd "/programmierung/fghfdgh/debug" && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" gmake -k
    **** Beendet mit Status: 2 ***
    **

    Man verzeihe mir den Projektnamen 😉

    Wie bringe ich das zum laufen?



  • Hast du denn wirklich ein "Simple Hello World Project" ausgewählt statt "Simple Win 32 Hello World Project"?



  • Ich hab unter Projekt->Neu->c++->Hello World.

    Soweit ich weiß nichts mit win32 (win32 😮 )



  • Laufen autoconf und automake bei Dir sonst normal?
    Hast Du vielleicht irgendwo stale-symlinks auf alte Versionen?



  • nman schrieb:

    Laufen autoconf und automake bei Dir sonst normal?
    Hast Du vielleicht irgendwo stale-symlinks auf alte Versionen?

    ähem bin linux-anfänger 😉 Hab suse 9.1 ganz normal installiert. Könntest du die frage newbiegerechter formulieren 🙂 ?



  • Gib mal in einer Konsole einfach nur so "automake" und "autoconf" ein und wenn dann ein "command not found" kommt dann musst Du einfach das jeweilige Programm nachinstallieren. 🙂



  • Die Befehle scheinen installiert zu sein;

    **
    linux:~ # automake
    automake: `configure.ac' or `configure.in' is required
    **

    und

    **
    Linux:~ # autoconf
    autoconf: no input file**

    Gibt dennoch ein Fehler beim compilieren:

    **
    *cd "/programmierung/test" && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" gmake -f Makefile.cvs && mkdir "/programmierung/test/debug" && cd "/programmierung/test/debug" && CXXFLAGS="-O0 -g3" "/programmierung/test/configure" --enable-debug=full && cd "/programmierung/test/debug" && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" gmake -k
    **** Beendet mit Status: 2 ***
    **

    Bin ratlos 😞 😞



  • hallo,
    welche Kdevelop version hast du ?
    ich arbeite mit 1.4 und 1.3 und da läuft es ganz normal so,
    hat du zuerst automake une autoconf ausgeführt ?

    youssef



  • hallo,
    welche Kdevelop version hast du ?
    ich arbeite mit 1.4 und 1.3 und da läuft es ganz normal so,
    hat du zuerst automake une autoconf ausgeführt ?

    youssef



  • Ich hab noch gar nichts ausgeführt. Auf der Arbeit hatte ich mal eine Dualbootrechner da hat man einfach neues projekt->c++->hello world gemacht, kompiliert und es ging.

    Ich hab Suse 9.1 prof. installiert, dort ist kdevelop 3.0 dabei und immer wenn ich kompilieren will kommt halt dieser fehler 😞



  • Ich vermute, dass du das GNU Automake nicht hast, also autoconf, automake &co per Yast installieren. Oder installiere kdevelop erneut.



  • autoconf fehlt mir glaube ich, hab gestern suse neuinstalliert und autmake + kdevelop mitinstalliert. teste das wenn ich zuhause bin gleich aus!



  • supertux schrieb:

    Ich vermute, dass du das GNU Automake nicht hast, also autoconf, automake &co per Yast installieren. Oder installiere kdevelop erneut.

    Natürlich hat er die, lies mal die erste Seite. 💡

    Mach mal

    ls -l `locate /usr/bin/autoconf`; ls -l `locate /usr/bin/automake`
    

    und poste die Ausgabe hier.



  • hallo,
    du musst zuerst vor compilieren makefile automatisch erstellen mit
    erstellen->Autoconf/automake und danach configure. das musst jedes mal machen wenn du ein neues Projekt erstellt.

    ich hoffe das hilft.
    youssef.



  • youssef schrieb:

    du musst zuerst vor compilieren makefile automatisch erstellen mit erstellen->Autoconf/automake und danach configure. das musst jedes mal machen wenn du ein neues Projekt erstellt.

    Lies doch mal was er auf Seite 1 geschrieben hat; das hat er bereits gemacht!



  • linux:~ # ls -l `locate /usr/bin/autoconf`; ls -l `locate /usr/bin/automake`
    locate: /var/lib/locatedb: No such file or directory
    total 45
    drwx------ 12 root root 648 Aug 24 17:20 .
    drwxr-xr-x 22 root root 520 Aug 24 2004 ..
    lrwxrwxrwx 1 root root 26 Aug 24 16:58 .DCOPserver_linux_:0 -> /root/.DCOPserver_linux__0
    -rw-r--r-- 1 root root 52 Aug 24 16:58 .DCOPserver_linux__0
    -rw------- 1 root root 187 Aug 24 16:58 .ICEauthority
    -rw------- 1 root root 101 Aug 24 16:58 .Xauthority
    -rw------- 1 root root 406 Aug 24 17:20 .bash_history
    -rw------- 1 root root 26 Aug 23 20:29 .dmrc
    -rw-r--r-- 1 root root 1124 Feb 28 2000 .exrc
    -rw-r--r-- 1 root root 541 Aug 23 20:50 .fbrc
    drwxr-xr-x 3 root root 112 Aug 23 21:48 .fonts
    -rw-r--r-- 1 root root 83 Aug 24 17:20 .fonts.cache-1
    drwxr-xr-x 2 root root 48 Aug 23 20:15 .fvwm
    drwx------ 3 root root 216 Aug 23 20:29 .gnupg
    drwxr-xr-x 2 root root 80 Aug 23 20:14 .kbd
    drwx------ 4 root root 200 Aug 23 20:29 .kde
    drwxr-xr-x 3 root root 112 Aug 23 20:29 .mcop
    -rw------- 1 root root 31 Aug 23 21:48 .mcoprc
    drwxr-xr-x 2 root root 48 Aug 23 20:29 .qt
    drwxr-xr-x 2 root root 104 Aug 23 20:29 .skel
    -rw------- 1 root root 586 Aug 24 17:15 .viminfo
    -rw------- 1 root root 2977 Aug 24 17:17 .xsession-errors
    drwx------ 3 root root 104 Aug 23 20:29 Desktop
    drwxr-xr-x 2 root root 48 Apr 6 18:04 bin
    locate: /var/lib/locatedb: No such file or directory
    total 45
    drwx------ 12 root root 648 Aug 24 17:20 .
    drwxr-xr-x 22 root root 520 Aug 24 2004 ..
    lrwxrwxrwx 1 root root 26 Aug 24 16:58 .DCOPserver_linux_:0 -> /root/.DCOPserver_linux__0
    -rw-r--r-- 1 root root 52 Aug 24 16:58 .DCOPserver_linux__0
    -rw------- 1 root root 187 Aug 24 16:58 .ICEauthority
    -rw------- 1 root root 101 Aug 24 16:58 .Xauthority
    -rw------- 1 root root 406 Aug 24 17:20 .bash_history
    -rw------- 1 root root 26 Aug 23 20:29 .dmrc
    -rw-r--r-- 1 root root 1124 Feb 28 2000 .exrc
    -rw-r--r-- 1 root root 541 Aug 23 20:50 .fbrc
    drwxr-xr-x 3 root root 112 Aug 23 21:48 .fonts
    -rw-r--r-- 1 root root 83 Aug 24 17:20 .fonts.cache-1
    drwxr-xr-x 2 root root 48 Aug 23 20:15 .fvwm
    drwx------ 3 root root 216 Aug 23 20:29 .gnupg
    drwxr-xr-x 2 root root 80 Aug 23 20:14 .kbd
    drwx------ 4 root root 200 Aug 23 20:29 .kde
    drwxr-xr-x 3 root root 112 Aug 23 20:29 .mcop
    -rw------- 1 root root 31 Aug 23 21:48 .mcoprc
    drwxr-xr-x 2 root root 48 Aug 23 20:29 .qt
    drwxr-xr-x 2 root root 104 Aug 23 20:29 .skel
    -rw------- 1 root root 586 Aug 24 17:15 .viminfo
    -rw------- 1 root root 2977 Aug 24 17:17 .xsession-errors
    drwx------ 3 root root 104 Aug 23 20:29 Desktop
    drwxr-xr-x 2 root root 48 Apr 6 18:04 bin

    Und das obwohl ich den locate Befehl extra nachinstalliert habe 😢



  • Du musst wohl noch als root ein updatedb machen. (Nicht erschrecken, das kann dauern. 😉 )



  • Ok, erledigt;

    linux:~ # ls -l `locate /usr/bin/autoconf`; ls -l `locate /usr/bin/automake`
    -rwxr-xr-x 1 root root 7663 Apr 6 01:37 /usr/bin/autoconf
    -rwxr-xr-x 2 root root 210143 Apr 6 02:15 /usr/bin/automake
    -rwxr-xr-x 2 root root 210143 Apr 6 02:15 /usr/bin/automake-1.8

    😕



  • Hm, ok, welche Versionen davon werden aufgerufen?

    automake --version
    autoconf --version
    


  • linux:~ # automake --version
    automake (GNU automake) 1.8.3
    Written by Tom Tromey tromey@redhat.com.

    Copyright 2004 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    linux:~ # autoconf --version
    autoconf (GNU Autoconf) 2.59
    Written by David J. MacKenzie and Akim Demaille.

    Copyright (C) 2003 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    Ansonsten hab ich mal bei KDevelop die Fehlerbeschreibung von knapp auf vollständig gestellt:

    *cd "/programmierung/test" && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" gmake -f Makefile.cvs && mkdir "/programmierung/test/debug" && cd "/programmierung/test/debug" && CXXFLAGS="-O0 -g3" "/programmierung/test/configure" --enable-debug=full && cd "/programmierung/test/debug" && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" gmake -k
    *aclocal
    *aclocal: configure.in: 8: macro `AM_PROG_LIBTOOL' not found in library
    *gmake: *** [all] Error 1
    **** Beendet mit Status: 2 ***

    Wie komme ich an dieses Macro?


Anmelden zum Antworten