Kdevelop und das Kompilieren...



  • Wenn ich ein einfaches Projekt erstelle, also syntaktisch korrekt, dann kann ich es nicht kompilieren, egal ob mit automake & friends oder per konsole. es kommt bei build dann ein haufen salat wie:

    /usr/share/aclocal/pth.m4:43: warning: underquoted definition of _AC_PTH_ERROR
      run info '(automake)Extending aclocal'
      or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
    /usr/share/aclocal/pth.m4:55: warning: underquoted definition of _AC_PTH_VERBOSE
    /usr/share/aclocal/pth.m4:61: warning: underquoted definition of AC_CHECK_PTH
    /usr/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES
    /usr/share/aclocal/pilot-link.m4:1: warning: underquoted definition of AC_PILOT_LINK_HOOK
    /usr/share/aclocal/movtar.m4:14: warning: underquoted definition of MOVTAR_TEST_VERSION
    /usr/share/aclocal/movtar.m4:59: warning: underquoted definition of AM_PATH_MOVTAR
    /usr/share/aclocal/lqt.m4:14: warning: underquoted definition of AC_PATH_LQT
    /usr/share/aclocal/libxosd.m4:9: warning: underquoted definition of AM_PATH_LIBXOSD
    /usr/share/aclocal/libmikmod.m4:11: warning: underquoted definition of AM_PATH_LIBMIKMOD
    /usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT
    /usr/share/aclocal/libgcrypt.m4:23: warning: underquoted definition of AM_PATH_LIBGCRYPT
    /usr/share/aclocal/libfame.m4:6: warning: underquoted definition of AM_PATH_LIBFAME
    /usr/share/aclocal/libart.m4:11: warning: underquoted definition of AM_PATH_LIBART
    /usr/share/aclocal/libOggFLAC.m4:7: warning: underquoted definition of AM_PATH_LIBOGGFLAC
    /usr/share/aclocal/libOggFLAC++.m4:8: warning: underquoted definition of AM_PATH_LIBOGGFLACPP
    /usr/share/aclocal/libIDL.m4:6: warning: underquoted definition of AM_PATH_LIBIDL
    /usr/share/aclocal/libFLAC.m4:7: warning: underquoted definition of AM_PATH_LIBFLAC
    /usr/share/aclocal/libFLAC++.m4:8: warning: underquoted definition of AM_PATH_LIBFLACPP
    /usr/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB
    /usr/share/aclocal/imlib.m4:167: warning: underquoted definition of AM_PATH_GDK_IMLIB
    /usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
    /usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
    /usr/share/aclocal/gdk-pixbuf.m4:12: warning: underquoted definition of AM_PATH_GDK_PIXBUF
    /usr/share/aclocal/audiofile.m4:12: warning: underquoted definition of AM_PATH_AUDIOFILE
    /usr/share/aclocal/ao.m4:9: warning: underquoted definition of XIPH_PATH_AO
    /usr/share/aclocal/ORBit.m4:4: warning: underquoted definition of AM_PATH_ORBIT
    /usr/share/aclocal/pth.m4:43: warning: underquoted definition of _AC_PTH_ERROR
      run info '(automake)Extending aclocal'
      or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
    /usr/share/aclocal/pth.m4:55: warning: underquoted definition of _AC_PTH_VERBOSE
    /usr/share/aclocal/pth.m4:61: warning: underquoted definition of AC_CHECK_PTH
    /usr/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES
    /usr/share/aclocal/pilot-link.m4:1: warning: underquoted definition of AC_PILOT_LINK_HOOK
    /usr/share/aclocal/movtar.m4:14: warning: underquoted definition of MOVTAR_TEST_VERSION
    /usr/share/aclocal/movtar.m4:59: warning: underquoted definition of AM_PATH_MOVTAR
    /usr/share/aclocal/lqt.m4:14: warning: underquoted definition of AC_PATH_LQT
    /usr/share/aclocal/libxosd.m4:9: warning: underquoted definition of AM_PATH_LIBXOSD
    /usr/share/aclocal/libmikmod.m4:11: warning: underquoted definition of AM_PATH_LIBMIKMOD
    /usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT
    /usr/share/aclocal/libgcrypt.m4:23: warning: underquoted definition of AM_PATH_LIBGCRYPT
    /usr/share/aclocal/libfame.m4:6: warning: underquoted definition of AM_PATH_LIBFAME
    /usr/share/aclocal/libart.m4:11: warning: underquoted definition of AM_PATH_LIBART
    /usr/share/aclocal/libOggFLAC.m4:7: warning: underquoted definition of AM_PATH_LIBOGGFLAC
    /usr/share/aclocal/libOggFLAC++.m4:8: warning: underquoted definition of AM_PATH_LIBOGGFLACPP
    /usr/share/aclocal/libIDL.m4:6: warning: underquoted definition of AM_PATH_LIBIDL
    /usr/share/aclocal/libFLAC.m4:7: warning: underquoted definition of AM_PATH_LIBFLAC
    /usr/share/aclocal/libFLAC++.m4:8: warning: underquoted definition of AM_PATH_LIBFLACPP
    /usr/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB
    /usr/share/aclocal/imlib.m4:167: warning: underquoted definition of AM_PATH_GDK_IMLIB
    /usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
    /usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
    /usr/share/aclocal/gdk-pixbuf.m4:12: warning: underquoted definition of AM_PATH_GDK_PIXBUF
    /usr/share/aclocal/audiofile.m4:12: warning: underquoted definition of AM_PATH_AUDIOFILE
    /usr/share/aclocal/ao.m4:9: warning: underquoted definition of XIPH_PATH_AO
    /usr/share/aclocal/ORBit.m4:4: warning: underquoted definition of AM_PATH_ORBIT
    

    damit kann ich nix anfangen, was bedeutet das?

    kompilen kann ich erst nach Eingabe im Projektordner von:

    autoreconf --install --force 
    ODER  
    libtoolize --force
    

    Wo liegt hier der Unterschied?
    Und warum poppt in Kdevelop irgendein m4-File auf? Was macht das? Brauch ich das?
    Sorry für die vielleicht blöden Fragen, aber ist mir alles neu...

    Thx, Tom



  • Die .m4-Dateien sind scripte, die den Kompiliervorgang auf dein System anpassen. Genauer gesagt macht das autoconf, und das benutzt dazu m4. Versuch mal aclocal in dem Ordner deines Projektes aufzurufen, oder überprüf mal, dass autoconf richtig installiert ist.



  • ahso, danke, dann weiss ich jetzt schon mal etwas... aclocal sagt das hier, aber ich weiss nicht was man da raus ableiten kann:

    thomasle@holodoc ue_12 $ aclocal
    /usr/share/aclocal/pth.m4:43: warning: underquoted definition of _AC_PTH_ERROR
      run info '(automake)Extending aclocal'
      or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
    /usr/share/aclocal/pth.m4:55: warning: underquoted definition of _AC_PTH_VERBOSE
    /usr/share/aclocal/pth.m4:61: warning: underquoted definition of AC_CHECK_PTH
    /usr/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES
    /usr/share/aclocal/pilot-link.m4:1: warning: underquoted definition of AC_PILOT_LINK_HOOK
    /usr/share/aclocal/movtar.m4:14: warning: underquoted definition of MOVTAR_TEST_VERSION
    /usr/share/aclocal/movtar.m4:59: warning: underquoted definition of AM_PATH_MOVTAR
    /usr/share/aclocal/lqt.m4:14: warning: underquoted definition of AC_PATH_LQT
    /usr/share/aclocal/libxosd.m4:9: warning: underquoted definition of AM_PATH_LIBXOSD
    /usr/share/aclocal/libmikmod.m4:11: warning: underquoted definition of AM_PATH_LIBMIKMOD
    /usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT
    /usr/share/aclocal/libgcrypt.m4:23: warning: underquoted definition of AM_PATH_LIBGCRYPT
    /usr/share/aclocal/libfame.m4:6: warning: underquoted definition of AM_PATH_LIBFAME
    /usr/share/aclocal/libart.m4:11: warning: underquoted definition of AM_PATH_LIBART
    /usr/share/aclocal/libOggFLAC.m4:7: warning: underquoted definition of AM_PATH_LIBOGGFLAC
    /usr/share/aclocal/libOggFLAC++.m4:8: warning: underquoted definition of AM_PATH_LIBOGGFLACPP
    /usr/share/aclocal/libIDL.m4:6: warning: underquoted definition of AM_PATH_LIBIDL
    /usr/share/aclocal/libFLAC.m4:7: warning: underquoted definition of AM_PATH_LIBFLAC
    /usr/share/aclocal/libFLAC++.m4:8: warning: underquoted definition of AM_PATH_LIBFLACPP
    /usr/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB
    /usr/share/aclocal/imlib.m4:167: warning: underquoted definition of AM_PATH_GDK_IMLIB
    /usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
    /usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
    /usr/share/aclocal/gdk-pixbuf.m4:12: warning: underquoted definition of AM_PATH_GDK_PIXBUF
    /usr/share/aclocal/audiofile.m4:12: warning: underquoted definition of AM_PATH_AUDIOFILE
    /usr/share/aclocal/ao.m4:9: warning: underquoted definition of XIPH_PATH_AO
    /usr/share/aclocal/ORBit.m4:4: warning: underquoted definition of AM_PATH_ORBIT
    

    tom



  • PKG_CHECK_MODULES
    Ist von pkg-config.

    AM_PATH_GTK AM_PATH_GLIB AM_PATH_GDK_PIXBUF
    Ist von GTK+.

    Installiere mal pkg-config und GTK+. Falls vorhanden die DEVELOPMENT Packete! Dann schaust du, ob die oben genannten Warnungen verschwinden.



  • ist beides drauf, gemerged mit gentoo und automatisch auf meinem system kompiliert:

    * dev-util/pkgconfig
    Latest version installed: 0.15.0

    * x11-libs/gtk+
    Latest version installed: 2.6.4-r1

    tom



  • Unter /usr/share/aclocal in der Datei müsste so was wie "dnl AM_PATH_GTK_2_0([MINIMUM-VERSION" stehen. Kontrolliere mal, ob die Datei vorhanden ist.



  • jo, da wollt ich schauen aber welche nehm ich? aclocal ist ein verzeichnis...

    holodoc root # nano /usr/share/aclocal
    aclocal      aclocal-1.5  aclocal-1.7  aclocal-1.9
    aclocal-1.4  aclocal-1.6  aclocal-1.8
    

    tom



  • Bei mir liegen die Dateien von libraries wie GTK+ im Verzeichniss aclocal.



  • okay, aber was ich jetzt noch nicht verstanden habe ist, nach was genau ich im verzeichnix aclocal ausschau halten soll...

    tom



  • Ups, das hatte ich vergessen zu schreiben... Schau ob in dem Verzeichniss die Datei gtk-2.0.m4 vorhanden ist und ob darin so was wie dnl AM_PATH_GLIB_2_0( .... ) drinn vorkommt.



  • naja, so ähnlich, nur dass nix mit GLIB drin steht. hier die ersten paar Zeilen...

    dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
    dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES,
    dnl pass to pkg-config
    dnl
    AC_DEFUN([AM_PATH_GTK_2_0],
    [dnl
    dnl Get the cflags and libraries from pkg-config
    dnl
    AC_ARG_ENABLE(gtktest, [  --disable-gtktest       do not try to compile and run a test GTK+ program],
                        , enable_gtktest=yes)
    

    tom



  • Das sind alles nur Warnungen, die dich nicht weiter stören sollten. Wenn bald ne neue Version von GTK+ oder welche scripte du auch immer benutzt, dann sollte das repariert sein. Du kannst die Warnungen einfach ignonieren.

    http://lists.freedesktop.org/pipermail/xserver/2004-April/001198.html



  • danke für die Info! jetzt kann ich beruhigter weiter arbeiten. thx für die hilfe! *freu*

    tom


Anmelden zum Antworten