Skocz do zawartości

Problem Z Sdl


edas

Rekomendowane odpowiedzi

aby zainstalować gierkę wormux potrzebny jest sdl. Przy instalacji fedorki 5 w standardzie jest SDL instalowane. No i robię takie coś w konsloi whereis sdl a tu nic! Tak samo jak odpalam instalator tej gierki wywala mi że nie ma SDL choć w yumie jest. Więc co tu jest nie tak? Dopiero co zainstalowane fc5 bo jak zobaczyłem że tak jest to reinstalnęłem system

Odnośnik do komentarza
Udostępnij na innych stronach

# rpm -qa |grep SDL

SDL-1.2.9-5.2.1

a ./configure --prefix=/home/edas/wormux daje

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 whether build environment is sane... yes

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking whether to enable maintainer-specific portions of Makefiles... no

checking whether NLS is requested... yes

checking for msgfmt... /usr/bin/msgfmt

checking for gmsgfmt... /usr/bin/msgfmt

checking for xgettext... /usr/bin/xgettext

checking for msgmerge... /usr/bin/msgmerge

checking for style of include used by make... GNU

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 dependency style of gcc... gcc3

checking for ld used by GCC... /usr/bin/ld

checking if the linker (/usr/bin/ld) is GNU ld... yes

checking for shared library run path origin... /bin/sh: ./config.rpath: No such file or directory

done

checking for CFPreferencesCopyAppValue... no

checking for CFLocaleCopyCurrent... no

checking whether NLS is requested... yes

checking for GNU gettext in libc... yes

checking whether to use NLS... yes

checking where the gettext function comes from... libc

checking whether make sets $(MAKE)... (cached) yes

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 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... gcc -E

checking for a BSD-compatible install... /usr/bin/install -c

checking for g++... yes

checking CXXFLAGS for maximum warnings... -Wall

checking gcc version... 4.1.0

checking for sdl-config... no

checking for SDL - version >= 1.2.6... 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 version 1.2.6 not found!

Odnośnik do komentarza
Udostępnij na innych stronach

Czasem warto poczytać plik INSTALL wink.gif

Potrzebujesz jeszcze paczek SDL_ttf, SDL_image, SDL_mixer i SDL_gfx. A jeśli po ich wgraniu się nie skompiluje to dogrywasz każdą z nich w postaci -devel, a do tego jeszcze SDL-devel, czyli najprawdopodobniej będziesz musiał wywołać komendę

yum install SDL-devel SDL_ttf SDL_ttf-devel SDL_image SDL_image-devel SDL_mixer SDL_mixer-devel SDL_gfx SDL_gfx-devel

Aha, i jeszcze jakbyś po skompilowaniu aplikacji miał problem "Naruszenie ochrony pamięci" to musisz konfigurację wykonać z parametrami:

./configure --with-gnu-ld --disable-rpath

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
×
×
  • Dodaj nową pozycję...