Problème de compilation sous linux.

Bonjour à tous !
J''aimerais utiliser le logiciel COPOS ( http://18382.whserv.de/admin/index.php ).
Le site fournit simplement le code source. Il faut le compiler .
J'ai Ubuntu (feisty fawn).
J'ai téléchargé l'archive et extrait le dossier sur le bureau. ( j'ai le main.c et le makefile et tout le reste, c'est ok )
J'ai ouvert une console, me suis loggué en root, et fait cd /home/.../Desktop/copos-8.0 pour atterir dans le bon repertoire.
J'ai fait ./configure. Puis j'ai tapé make , mais là il me dit " Pas de cibles spécifiées et aucun makefile n'a été trouvé. Arrêt. " et quand je fais make main.c ,il me dit : "Rien a faire pour main.c"
Je suis novice en la matière, je me suis documenté, et apparement, si on est dans le bon répertoire, le make trouve le *.c et le makefile et fait le travail.
Qu'est ce qui cloche dans mon truc ?
Configuration: Linux
Firefox 2.0.0.6

12 réponses

  • Votes
  • Date
  • Date décroissante
  1. Bonjour

    Ton script ./configure ne s'est pas terminé correctement !

    Il est tombé en erreur, probablement à cause d'un package manquant.

    Dis nous qu'elle est l'erreur lors de l'exécution de ton script ./configure, on pourra surement t'aider ensuite...

    Bonne journée !
    1. checking for a BSD-compatible install... /usr/bin/install -c
      checking whether build environment is sane... yes
      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 ANSI C... none needed
      checking for style of include used by make... GNU
      checking dependency style of gcc... gcc3
      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 ANSI C... (cached) none needed
      checking dependency style of gcc... (cached) gcc3
      checking whether make sets $(MAKE)... (cached) yes
      checking for pkg-config... true
      checking for a BSD-compatible install... /usr/bin/install -c
      checking build system type... x86_64-unknown-linux-gnu
      checking host system type... x86_64-unknown-linux-gnu
      checking for a sed that does not truncate output... /bin/sed
      checking for egrep... 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 whether ln -s works... yes
      checking how to recognise dependent libraries... pass_all
      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 dlfcn.h usability... yes
      checking dlfcn.h presence... yes
      checking for dlfcn.h... yes
      checking for g++... g++
      checking whether we are using the GNU C++ compiler... yes
      checking whether g++ accepts -g... yes
      checking dependency style of g++... gcc3
      checking how to run the C++ preprocessor... g++ -E
      checking for g77... no
      checking for f77... no
      checking for xlf... no
      checking for frt... no
      checking for pgf77... no
      checking for fort77... no
      checking for fl32... no
      checking for af77... no
      checking for f90... no
      checking for xlf90... no
      checking for pgf90... no
      checking for epcf90... no
      checking for f95... no
      checking for fort... no
      checking for xlf95... no
      checking for ifc... no
      checking for efc... no
      checking for pgf95... no
      checking for lf95... no
      checking for gfortran... 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... 32768
      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 static flag works... yes
      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 supports -c -o file.o... yes
      checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) 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 libtool
      appending configuration tag "CXX" to libtool
      checking for ld used by g++... /usr/bin/ld -m elf_x86_64
      checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
      checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
      checking for g++ option to produce PIC... -fPIC
      checking if g++ PIC flag -fPIC works... yes
      checking if g++ supports -c -o file.o... yes
      checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
      checking dynamic linker characteristics... GNU/Linux ld.so
      checking how to hardcode library paths into programs... immediate
      checking whether stripping libraries is possible... yes
      appending configuration tag "F77" to libtool
      checking for pkg-config... /usr/bin/pkg-config
      checking for glib-2.0 gobject-2.0 gthread-2.0 gmodule-2.0... Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found Package gobject-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gobject-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gobject-2.0' found Package gthread-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gthread-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gthread-2.0' found Package gmodule-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gmodule-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gmodule-2.0' found
      configure: error: Library requirements (glib-2.0 gobject-2.0 gthread-2.0 gmodule-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

      VOilà ce qu'il me répond. J'ai oublié en effet d'installer les paquets de développement. Mais ou les trouver; je ne les ai pas trouvés dans le gestionnaire de paquets synaptic.
      1. checking for glib-2.0 gobject-2.0 gthread-2.0 gmodule-2.0... Package glib-2.0 was not found

        Bah il est la ton problème !!! (cf. les garagistes) héhéh

        Personnellement, je n'utilise pas de paquets, ni de gestionnaires de paquets, mais je te renvoie vers le site GTK : www.gtk.org/

        Tu y trouveras surement des packages pour ta distrib, ou, au pire, les codes sources.

        Bonne journée !
        1. Arf quel boulot !
          Pour installer GTK+, il faut installer d'autres librairies, et notamment Pango. Et pour installer pango, il faut Cairo. Et pour installer Cairo, il faut fontconfig, et freetype !
          JE ne parviens pas à installer Freetype : j'ai installé GNU make; j'ai fait le ./configure ; pas d'erreurs.
          J'ai fait le make, pas d'erreurs. Mais quand je fait le make install j'ai une erreur a la fin, quelqu'un a-t-il déjà été confronté a ce problème ? :/
          1. J'ai fini par comprendre que mon gestionnaire de paquets préinstallé avec ubuntu doit pouvoir m'arranger tout ça.
            J'ai installé un certain nombre de paquets dont il est question de GTK dans le nom, mais je n'ai toujours pas le bon . . .
            Pouvez vous m'aider ?
            Merci
            1. Ouff, c'est bon : les paquets sont biens installés, mais le $PKG_CONFIG_PATH doit être /usr/lib/pkgconfig ( pour que à l'install le ./configure aille chercher les librairies au bon endroit . )

              Mais il me reste encore le FFmpeg à installer . J'ai été ici : https://ffmpeg.org/download.html
              J'ai copié et executé le code donné, mais j'ai toujours une erreur quand je ./configure :

              checking for library containing avcodec_init... no
              configure: error: libavcodec is missing

              et quand je fais une recherche, je ne trouve aucun ffmpeg sur mon dd :/
              1. Bonjour Julien41 j'ai le même problème pour le $PKG_CONFIG_PATH avez vous trouvé une solution et si oui pouvez vous me donner une démarche pour le solutionner.

                Merci par avnace
            2. C'est bon, j'ai trouvé les sources du ffmpeg et je tente de les installer, mais j'ai un soucis au make :
              /usr/local/lib/libz.a: could not read symbols: Bad value
              collect2: ld a retourné 1 code d'état d'exécution

              J'ai aussi essayé avec GNUMAKE=gmake make mais même erreur !

              Pourriez vous m'aider ?
              Merci
              1. Il y a aussi un paquet pour ffmpeg, c'est magnifique !
                J'ai réussi à compiler et installer mon programme, mais quand je le lances, j'ai une erreur :

                copos: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_hash_table_ref
                1. Là je sèche, si quelqu'un pourrait m'aider à résoudre ce problème !
                  Merci
                  1. Bonjour,

                    Je remarque que tu utilise GTK+2.0, qui, d'après ce que j'ai lu, pose des problèmes de compatibilité avec certaines applications.

                    Tu devrais tenter de downgrader gtk vers GTK+1.2., ton problème devrait se résoudre.

                    Dans les fichiers installs de "COPOS', il est probablement spécifié la version de la libgtk a utiliser de préférence.

                    En espèrant t'avoir aidé.
                    Bonne journée !
                    1. Les paquets de développement nécessaires pour la compilation sont :

                      $ pkg-config --modversion gtk+-2.0
                      2.4.0
                      $ pkg-config --modversion gtkglext-1.0 (1)
                      1.0.6

                      Je vais essayer de compiler sans etre sous X