Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 12

Discussione: KDEvelop e Allegro

  1. #1

    KDEvelop e Allegro

    Salve, mi piacerebbe imparare a programmare un paio di giochi, le basi della programmazione le ho già (anche se in basic), e ho trovato questa libreria che sembra interessante, allegro, volevo provare un paio degli esempi che vengono con il tarball però non sono riuscito nemmeno a compilarli, premetto che stavo usando KDEvelop per fare i progetti e in effetti non so usare nemmeno quello. Quello che ho fatto è stato creare un nuovo progetto, inserire la directory per gli include (/usr/local/include) e copiare il codice delle esempio Hello world. kde però mi da questo errore:


    cd '/home/evilangel/Allegro/hello' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" gmake -f Makefile.cvs && mkdir '/home/evilangel/Allegro/hello/debug' && cd '/home/evilangel/Allegro/hello/debug' && CFLAGS="-O0 -g3 " "/home/evilangel/Allegro/hello/configure" --enable-debug=full && cd '/home/evilangel/Allegro/hello/debug' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" gmake -k
    aclocal
    /usr/share/aclocal/smpeg.m4:13: warning: underquoted definition of AM_PATH_SMPEG
    run info '(automake)Extending aclocal'
    or see http://sources.redhat.com/automake/a...ending-aclocal
    autoheader
    automake
    autoconf
    Si sta installando -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    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 build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for egrep... grep -E
    checking for ld used by gcc... /usr/i586-suse-linux/bin/ld
    checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
    checking for /usr/i586-suse-linux/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
    Si sta compilando yes (gcc)
    checking whether the gcc linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics...
    cat: /etc/ld.so.conf.d/*.conf: No such file or directory
    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/i586-suse-linux/bin/ld
    checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
    checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC
    checking if g++ PIC flag -fPIC works... yes
    Si sta compilando yes (g++)
    checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics...
    cat: /etc/ld.so.conf.d/*.conf: No such file or directory
    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
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating config.h
    config.status: executing depfiles commands
    gmake all-recursive
    Making all in src
    Si sta compilando fi (gcc)
    Si sta facendo il link hello (libtool)
    mkdir .libs
    Si sta facendo il link hello (gcc)
    /usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../crt1.o(.text+0x18): In function `_start':
    ../sysdeps/i386/elf/start.S:115: undefined reference to `main'
    hello.o(.text+0x1d): In function `_mangled_main':
    /home/evilangel/Allegro/hello/src/hello.c:16: undefined reference to `install_allegro'
    hello.o(.text+0x25):/home/evilangel/Allegro/hello/src/hello.c:19: undefined reference to `install_keyboard'
    hello.o(.text+0x40):/home/evilangel/Allegro/hello/src/hello.c:22: undefined reference to `set_gfx_mode'
    hello.o(.text+0x59):/home/evilangel/Allegro/hello/src/hello.c:23: undefined reference to `set_gfx_mode'
    hello.o(.text+0x64):/home/evilangel/Allegro/hello/src/hello.c:24: undefined reference to `allegro_error'
    hello.o(.text+0x6e):/home/evilangel/Allegro/hello/src/hello.c:24: undefined reference to `allegro_message'
    hello.o(.text+0x85):/home/evilangel/Allegro/hello/src/hello.c:29: undefined reference to `desktop_palette'
    hello.o(.text+0x8a):/home/evilangel/Allegro/hello/src/hello.c:29: undefined reference to `set_palette'
    hello.o(.text+0xa7):/home/evilangel/Allegro/hello/src/hello.c:32: undefined reference to `makecol'
    hello.o(.text+0xb1):/home/evilangel/Allegro/hello/src/hello.c:32: undefined reference to `screen'
    hello.o(.text+0xb6):/home/evilangel/Allegro/hello/src/hello.c:32: undefined reference to `clear_to_color'
    hello.o(.text+0xbe):/home/evilangel/Allegro/hello/src/hello.c:38: undefined reference to `acquire_screen'
    hello.o(.text+0xc8):/home/evilangel/Allegro/hello/src/hello.c:41: undefined reference to `text_mode'
    hello.o(.text+0xdc):/home/evilangel/Allegro/hello/src/hello.c:44: undefined reference to `makecol'
    hello.o(.text+0xe6):/home/evilangel/Allegro/hello/src/hello.c:44: undefined reference to `gfx_driver'
    hello.o(.text+0xee):/home/evilangel/Allegro/hello/src/hello.c:44: undefined reference to `gfx_driver'
    hello.o(.text+0x113):/home/evilangel/Allegro/hello/src/hello.c:44: undefined reference to `gfx_driver'
    hello.o(.text+0x11b):/home/evilangel/Allegro/hello/src/hello.c:44: undefined reference to `gfx_driver'
    hello.o(.text+0x145):/home/evilangel/Allegro/hello/src/hello.c:44: undefined reference to `font'
    hello.o(.text+0x14b):/home/evilangel/Allegro/hello/src/hello.c:44: undefined reference to `screen'
    hello.o(.text+0x150):/home/evilangel/Allegro/hello/src/hello.c:44: undefined reference to `textout_centre'
    hello.o(.text+0x158):/home/evilangel/Allegro/hello/src/hello.c:47: undefined reference to `release_screen'
    hello.o(.text+0x15d):/home/evilangel/Allegro/hello/src/hello.c:50: undefined reference to `readkey'
    collect2: ld returned 1 exit status
    gmake[2]: *** [hello] Error 1
    gmake[2]: Target `all' not remade because of errors.
    gmake[1]: *** [all-recursive] Error 1
    gmake[2]: Nothing to be done for `all-am'.
    gmake: *** [all] Error 2
    *** Uscito con stato: 2 ***





    Qualcuno di voi sa cosa devo fare?
    Immagini allegate Immagini allegate
    Suse 10.3 [+ Apt-get]
    "Quello che non ti uccide, ti fa sperare di essere morto"

    Blog di Video Ricette Facili3

  2. #2
    probabilmente mancheranno librerie e programmi per lo sviluppo
    installali dal tuo gestore software con relativi -devel
    in genere questi errori li da quando manca automake o autoconf o sista usando una versione obsoleta dei programmi

  3. #3
    automake e autoconf sono installati, non versioni devel, esistono? allegro l'ho installato dai sorgenti con la versione completa e non quella per l'end-user, quando ho installato suse ho installato tutti i pack di sviluppo per il kernel per kde e per gnome.
    non so cosa mi manchi!
    Suse 10.3 [+ Apt-get]
    "Quello che non ti uccide, ti fa sperare di essere morto"

    Blog di Video Ricette Facili3

  4. #4
    probabilmente è la versione di allegro che non si adatta a suse

    ho visto che usi apt

    apt-cache search allegro
    allegro - a portable game programming library
    allegro-devel - Allegro development package
    allegro-tools - Extra Tools for the Allegro Programming Library


    prova ad installare questi ( a me li trova )

    apt-cache search devel ti trova tutte le librerie -devel

  5. #5
    che source usi perchè io non trovo quei pack:

    linux:/home/evilangel/Allegro/hello # apt-get install allegro allegro-devel allegro-tools
    Lettura della lista di pacchetti... Done
    Calcolo dell'albero delle dipendenze... Done
    E: Il pacchetto allegro non è stato trovato


    Ho appena fatto l'update
    Suse 10.3 [+ Apt-get]
    "Quello che non ti uccide, ti fa sperare di essere morto"

    Blog di Video Ricette Facili3

  6. #6
    http://ftp.gwdg.de/pub/linux/suse/ap...urces.list.FTP


    io uso questo
    salva la pagina cone sources.list e copiala in /etc/apt

  7. #7
    Il mio source punta allo stesso server solo che alla versione 9.3 di suse, forse non hanno fatto i pack per questa versione, installerò quelli che usi tu poi ti so dire
    Suse 10.3 [+ Apt-get]
    "Quello che non ti uccide, ti fa sperare di essere morto"

    Blog di Video Ricette Facili3

  8. #8
    si scusa ho sbagliato il link

    correggi 9.1 con 9.3

    ho gia corretto il link

  9. #9
    Allora, mi sbagliavo, i source erano diversi, usando i tuoi per la 9.3, sono riuscito ad installare allegro, devel e tool compresi, però continua a darmi sempre lo stesso errore.
    Suse 10.3 [+ Apt-get]
    "Quello che non ti uccide, ti fa sperare di essere morto"

    Blog di Video Ricette Facili3

  10. #10
    non sono uno sviluppatore ma mi sembra che non riconosca il linguaggio di base con cui hai scritto il programma

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.