Kirjoittaja Aihe: Ongelma lähdekoodista käntämisessä.  (Luettu 2147 kertaa)

Stupido

  • Käyttäjä
  • Viestejä: 176
  • Gutsy Gibbon
    • Profiili
Ongelma lähdekoodista käntämisessä.
« : 10.03.07 - klo:18.55 »
Eli aina kun yritän kääntää ohjelmaa lähdekoodista käy näin:
Koodia: [Valitse]
stupido@ubuntu:~/zsnes_1_51/src$ ./configure
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
stupido@ubuntu:~/zsnes_1_51/src$

Ubuntun käyttäjä jo vuodesta 2006.

eliasj

  • Käyttäjä
  • Viestejä: 4075
    • Profiili
Vs: Ongelma lähdekoodista käntämisessä.
« Vastaus #1 : 10.03.07 - klo:20.15 »
Onhan paketti build-essential asennettu?
alias vililikku

Stupido

  • Käyttäjä
  • Viestejä: 176
  • Gutsy Gibbon
    • Profiili
Vs: Ongelma lähdekoodista käntämisessä.
« Vastaus #2 : 10.03.07 - klo:20.56 »
Onhan paketti build-essential asennettu?
Ei ollut mutta nyt on. Nyt vain tulee tälläistä herjaa:
Koodia: [Valitse]
stupido@ubuntu:~/zsnes_1_51/src$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
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 g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for nasm... nasm
checking for sdl-config... no
checking for SDL - version >= 1.2.0... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
configure: error: SDL >= 1.2.0 is required
stupido@ubuntu:~/zsnes_1_51/src$
Kyseessä on siis Super Nintendo -emulaattori.

Ubuntun käyttäjä jo vuodesta 2006.

lompolo

  • Käyttäjä
  • Viestejä: 852
    • Profiili
Vs: Ongelma lähdekoodista käntämisessä.
« Vastaus #3 : 10.03.07 - klo:21.18 »
Kysytään nyt vakiokysymys. Miksi käännät sitä lähdekoodista? Paketti löytyy multiversesta.

janne

  • Käyttäjä
  • Viestejä: 5150
    • Profiili
Vs: Ongelma lähdekoodista käntämisessä.
« Vastaus #4 : 10.03.07 - klo:21.23 »
Koodia: [Valitse]
checking for SDL - version >= 1.2.0... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
configure: error: SDL >= 1.2.0 is required
stupido@ubuntu:~/zsnes_1_51/src$

no tuossa siis configure (jota nähdäkseni ajetaan eri tavalla kuin ko. softan readme.txt:ssä kehoitetaan) tarkistaa löytykö koneelta SDL:n versio 1.2.0 tai suurempaa. sitä ei löydy ainakaan oletuspolusta ja se kertoo miten epästandardi polku asetetaan siinä tapauksessa jos sen on syystä tai toisesta asentanut jonnekin muualle. lopuksi vielä kerrotaan ikäänkuin kertauksenomaisesti, että SDL:stä vaaditaan versio 1.2.0 tai suurempi. olettaisin siis herjan tarkoittavan, että sinun pitää asentaa koneellesi SDL joka on versioltaan 1.2.0 tai suurempi (ja koska kyseessä näkyy olevan käännösaikainen riippuvuus, niin dev-paketti vaadittaneen myös).

lompolo ehtikin kysymään sen oleellisen...
Janne