wie installiere ich SDL ??

V

valo

Jungspund
Hallo zusammen,

Ich benötige für ein online-game SDL..

Ich war auf der SDL Page www.libsdl.org.
und dort gibt es ein haufen zeug...

Ich weiß nicht was ich genau benötige...

wenn ich das Game von dem ich erzählt habe installieren will erhalte ich folgende meldung:

configure: error: *** SDL not found! Get SDL from www.libsdl.org.
If you already installed it, check it's in the path. If problem remains,
please send a mail to the address that appears in ./configure --version
indicating your platform, the version of configure script and the problem.
[root@danux linux]# make
make: *** Keine Targets angegeben und keine »make«-Steuerdatei gefunden. Schluss.
[root@danux linux]# make install
make: *** Keine Regel, um »install« zu erstellen. Schluss.

Ich hoffe ihr könnt mir helfen.. :hilfe2:

Ich bin noch sehr unerfahren mit Linux. :headup:
 
Welche Distribution? Unter Debian heißt das Paket "libsdl1.2-dev", welches configure haben will ...
 
yum install SDL-devel (oder so ähnlich 'yum search libsdl' hilft meist weiter ;) )
 
Vielen dank für eure hilfe!
by the way Tolles Forum!

Hab jetzt auch nen schönen Link für die SDL installation (die für nen Newbie wie ich ziemlich heftig is) http://www.pro-linux.de/spiele/sdlgames.html#ToC6
Aber ich denk jez bekomm ich des gebacken!

nochmal danke!
.
.
.
EDIT (autom. Beitragszusammenführung) :
.

hallo nochmal,

Ich habe das Spiel und SDL
jetzt installiert...
aber wenn ich versuche das Spiel zu starten bekomm ich ne Fehlermeldung
kann jemand damit was anfangen??

[daniel@danux linux]$ ./daimonin
Can't find file options.dat. Using defaults.
**** NOTE ****
With sound enabled SDL will throw a parachute
when the soundcard is disabled or not installed.
Try then to start the client with 'SDL_AUDIODRIVER=null ./daimonin'
Read the README_LINUX.txt file for more information.
List Video Modes
Available Modes
1024 x 768
1024 x 768
1024 x 768
848 x 480
848 x 480
848 x 480
848 x 480
832 x 624
800 x 600
800 x 600
800 x 600
800 x 600
800 x 600
720 x 400
640 x 480
640 x 480
640 x 480
640 x 480
640 x 400
640 x 350
VideoInfo: hardware surfaces? no
VideoInfo: windows manager? yes
VideoInfo: hw to hw blit? no
VideoInfo: hw to hw ckey blit? no
VideoInfo: hw to hw alpha blit? no
VideoInfo: sw to hw blit? no
VideoInfo: sw to hw ckey blit? no
VideoInfo: sw to hw alpha blit? no
VideoInfo: color fill? no
VideoInfo: video memory: 0KB
ERROR sprite.c: Can't load sprite bitmaps/palette.png
load_bitmap(): Can't load bitmap bitmaps/palette.png
ERROR sprite.c: Can't load sprite bitmaps/font7x4.png
load_bitmap(): Can't load bitmap bitmaps/font7x4.png
ERROR sprite.c: Can't load sprite bitmaps/font6x3out.png
load_bitmap(): Can't load bitmap bitmaps/font6x3out.png
ERROR sprite.c: Can't load sprite bitmaps/font_big.png
load_bitmap(): Can't load bitmap bitmaps/font_big.png
ERROR sprite.c: Can't load sprite bitmaps/font7x4out.png
load_bitmap(): Can't load bitmap bitmaps/font7x4out.png
ERROR sprite.c: Can't load sprite bitmaps/font11x15.png
load_bitmap(): Can't load bitmap bitmaps/font11x15.png
ERROR sprite.c: Can't load sprite bitmaps/intro.png
load_bitmap(): Can't load bitmap bitmaps/intro.png
Speicherzugriffsfehler
 
Zuletzt bearbeitet:
Ein Speicherzugriffsfehler ist in 99% aller Fälle ein Fehler bei der Programmierung des Spiels (das andere Prozent sind RAM-Fehler). Das kannst du nur ändern, wenn dir der Source zur Verfügung steht und du C-Programmierung beherrschst. Ansonsten bleibt dir nur den Fehler bei den Programmierern zu melden. Evtl. wird der aber auch ausgelöst, weil das Programm die ganzen PNG-Dateien nicht finden kann. Sind die denn im Unterordner 'bitmaps' und hat der Benutzer, mit dem du das Spiel startest ausreichend Rechte auf das Verzeichnis?
 
mittlerweile weiß ich das mein SDL_Image keine Png. unterstützt
da gibt es anscheinend eine lib die lippng. heißt...
aber ich komm einfach weiter..
bin ja noch neu in der Materie..
 
Wie ich bereits sagte 'yum search ...' hilft meist weiter. Dann wüßtest du, daß das Paket mit 'yum install libpng' installierbar ist. Außerdem wirst du dann vermutlich 'SDL_image' auch installieren müssen.
 
Ich hab lippng installiert (nicht ueber yum sondern ein tar file)
und damit hat es nicht gefunzt...
mit dem Packetmanager auch nich..
SDL_image hab ich auch installiert...
Ich verzweifel bald...

womöglich ist libpng falsch instaliert. hier der code..

[root@danux libpng-1.2.18]# make install
make[1]: Entering directory `/home/daniel/libpng-1.2.18/libpng-1.2.18'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/usr/bin/install -c 'libpng12-config' '/usr/local/bin/libpng12-config'
test -z "/usr/local/lib" || mkdir -p -- "/usr/local/lib"
/bin/sh ./libtool --mode=install /usr/bin/install -c 'libpng12.la' '/usr/local/lib/libpng12.la'
/usr/bin/install -c .libs/libpng12.so.0.18.0 /usr/local/lib/libpng12.so.0.18.0
(cd /usr/local/lib && { ln -s -f libpng12.so.0.18.0 libpng12.so.0 || { rm -f libpng12.so.0 && ln -s libpng12.so.0.18.0 libpng12.so.0; }; })
(cd /usr/local/lib && { ln -s -f libpng12.so.0.18.0 libpng12.so || { rm -f libpng12.so && ln -s libpng12.so.0.18.0 libpng12.so; }; })
/usr/bin/install -c .libs/libpng12.lai /usr/local/lib/libpng12.la
/usr/bin/install -c .libs/libpng12.a /usr/local/lib/libpng12.a
chmod 644 /usr/local/lib/libpng12.a
ranlib /usr/local/lib/libpng12.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/sh ./libtool --mode=install /usr/bin/install -c 'libpng.la' '/usr/local/lib/libpng.la'
/usr/bin/install -c .libs/libpng.so.3.18.0 /usr/local/lib/libpng.so.3.18.0
(cd /usr/local/lib && { ln -s -f libpng.so.3.18.0 libpng.so.3 || { rm -f libpng.so.3 && ln -s libpng.so.3.18.0 libpng.so.3; }; })
(cd /usr/local/lib && { ln -s -f libpng.so.3.18.0 libpng.so || { rm -f libpng.so && ln -s libpng.so.3.18.0 libpng.so; }; })
/usr/bin/install -c .libs/libpng.lai /usr/local/lib/libpng.la
/usr/bin/install -c .libs/libpng.a /usr/local/lib/libpng.a
chmod 644 /usr/local/lib/libpng.a
ranlib /usr/local/lib/libpng.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make install-exec-hook
make[2]: Entering directory `/home/daniel/libpng-1.2.18/libpng-1.2.18'
cd /usr/local/bin; rm -f libpng-config
cd /usr/local/bin; ln -s libpng12-config libpng-config
+ cd /usr/local/lib
+ for ext in a la so
+ rm -f libpng.a
+ test -f libpng12.a
+ ln -s libpng12.a libpng.a
+ for ext in a la so
+ rm -f libpng.la
+ test -f libpng12.la
+ ln -s libpng12.la libpng.la
+ for ext in a la so
+ rm -f libpng.so
+ test -f libpng12.so
+ ln -s libpng12.so libpng.so
make[2]: Leaving directory `/home/daniel/libpng-1.2.18/libpng-1.2.18'
test -z "/usr/local/share/man/man3" || mkdir -p -- "/usr/local/share/man/man3"
/usr/bin/install -c -m 644 './libpng.3' '/usr/local/share/man/man3/libpng.3'
/usr/bin/install -c -m 644 './libpngpf.3' '/usr/local/share/man/man3/libpngpf.3'
test -z "/usr/local/share/man/man5" || mkdir -p -- "/usr/local/share/man/man5"
/usr/bin/install -c -m 644 './png.5' '/usr/local/share/man/man5/png.5'
test -z "/usr/local/lib/pkgconfig" || mkdir -p -- "/usr/local/lib/pkgconfig"
/usr/bin/install -c -m 644 'libpng12.pc' '/usr/local/lib/pkgconfig/libpng12.pc'
test -z "/usr/local/include/libpng12" || mkdir -p -- "/usr/local/include/libpng12"
/usr/bin/install -c -m 644 'png.h' '/usr/local/include/libpng12/png.h'
/usr/bin/install -c -m 644 'pngconf.h' '/usr/local/include/libpng12/pngconf.h'
make install-data-hook
make[2]: Entering directory `/home/daniel/libpng-1.2.18/libpng-1.2.18'
cd /usr/local/include; rm -f png.h pngconf.h
cd /usr/local/include; ln -s libpng12/png.h png.h
cd /usr/local/include; ln -s libpng12/pngconf.h pngconf.h
cd /usr/local/lib/pkgconfig; rm -f libpng.pc
cd /usr/local/lib/pkgconfig; ln -s libpng12.pc libpng.pc
make[2]: Leaving directory `/home/daniel/libpng-1.2.18/libpng-1.2.18'
make[1]: Leaving directory `/home/daniel/libpng-1.2.18/libpng-1.2.18'
[root@danux libpng-1.2.18]# ./configure [--prefix=/path]
configure: error: invalid variable name: [--prefix
[root@danux libpng-1.2.18]# make check
make pngtest
make[1]: Entering directory `/home/daniel/libpng-1.2.18/libpng-1.2.18'
make[1]: Leaving directory `/home/daniel/libpng-1.2.18/libpng-1.2.18'
make check-TESTS
make[1]: Entering directory `/home/daniel/libpng-1.2.18/libpng-1.2.18'
Testing libpng version 1.2.18
with zlib version 1.2.3

libpng version 1.2.18 - May 15, 2007
Copyright (c) 1998-2007 Glenn Randers-Pehrson
Copyright (c) 1996-1997 Andreas Dilger
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
library (10218): libpng version 1.2.18 - May 15, 2007 (header)
pngtest (10218): libpng version 1.2.18 - May 15, 2007 (header)
png_sizeof(png_struct)=728, png_sizeof(png_info)=288
Testing ./pngtest.png:
Pass 0: rwrwrwrwrwrwrwrwrw
Pass 1: rwrwrwrwrwrwrwrwrw
Pass 2: rwrwrwrwrwrwrwrw
Pass 3: rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Pass 4: rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Pass 5: rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
rwrwrwrw
Pass 6: rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
rwrwrwrwrw
PASS (9782 zero samples)
Filter 0 was used 21 times
Filter 1 was used 15 times
Filter 2 was used 52 times
Filter 3 was used 10 times
Filter 4 was used 33 times
tIME = 7 Jun 1996 17:58:08 +0000
libpng passes test
PASS: test-pngtest.sh
==================
All 1 tests passed
==================
make[1]: Leaving directory `/home/daniel/libpng-1.2.18/libpng-1.2.18'
[root@danux libpng-1.2.18]# make install
make[1]: Entering directory `/home/daniel/libpng-1.2.18/libpng-1.2.18'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/usr/bin/install -c 'libpng12-config' '/usr/local/bin/libpng12-config'
test -z "/usr/local/lib" || mkdir -p -- "/usr/local/lib"
/bin/sh ./libtool --mode=install /usr/bin/install -c 'libpng12.la' '/usr/local/lib/libpng12.la'
/usr/bin/install -c .libs/libpng12.so.0.18.0 /usr/local/lib/libpng12.so.0.18.0
(cd /usr/local/lib && { ln -s -f libpng12.so.0.18.0 libpng12.so.0 || { rm -f libpng12.so.0 && ln -s libpng12.so.0.18.0 libpng12.so.0; }; })
(cd /usr/local/lib && { ln -s -f libpng12.so.0.18.0 libpng12.so || { rm -f libpng12.so && ln -s libpng12.so.0.18.0 libpng12.so; }; })
/usr/bin/install -c .libs/libpng12.lai /usr/local/lib/libpng12.la
/usr/bin/install -c .libs/libpng12.a /usr/local/lib/libpng12.a
chmod 644 /usr/local/lib/libpng12.a
ranlib /usr/local/lib/libpng12.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/sh ./libtool --mode=install /usr/bin/install -c 'libpng.la' '/usr/local/lib/libpng.la'
/usr/bin/install -c .libs/libpng.so.3.18.0 /usr/local/lib/libpng.so.3.18.0
(cd /usr/local/lib && { ln -s -f libpng.so.3.18.0 libpng.so.3 || { rm -f libpng.so.3 && ln -s libpng.so.3.18.0 libpng.so.3; }; })
(cd /usr/local/lib && { ln -s -f libpng.so.3.18.0 libpng.so || { rm -f libpng.so && ln -s libpng.so.3.18.0 libpng.so; }; })
/usr/bin/install -c .libs/libpng.lai /usr/local/lib/libpng.la
/usr/bin/install -c .libs/libpng.a /usr/local/lib/libpng.a
chmod 644 /usr/local/lib/libpng.a
ranlib /usr/local/lib/libpng.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make install-exec-hook
make[2]: Entering directory `/home/daniel/libpng-1.2.18/libpng-1.2.18'
cd /usr/local/bin; rm -f libpng-config
cd /usr/local/bin; ln -s libpng12-config libpng-config
+ cd /usr/local/lib
+ for ext in a la so
+ rm -f libpng.a
+ test -f libpng12.a
+ ln -s libpng12.a libpng.a
+ for ext in a la so
+ rm -f libpng.la
+ test -f libpng12.la
+ ln -s libpng12.la libpng.la
+ for ext in a la so
+ rm -f libpng.so
+ test -f libpng12.so
+ ln -s libpng12.so libpng.so
make[2]: Leaving directory `/home/daniel/libpng-1.2.18/libpng-1.2.18'
test -z "/usr/local/share/man/man3" || mkdir -p -- "/usr/local/share/man/man3"
/usr/bin/install -c -m 644 './libpng.3' '/usr/local/share/man/man3/libpng.3'
/usr/bin/install -c -m 644 './libpngpf.3' '/usr/local/share/man/man3/libpngpf.3'
test -z "/usr/local/share/man/man5" || mkdir -p -- "/usr/local/share/man/man5"
/usr/bin/install -c -m 644 './png.5' '/usr/local/share/man/man5/png.5'
test -z "/usr/local/lib/pkgconfig" || mkdir -p -- "/usr/local/lib/pkgconfig"
/usr/bin/install -c -m 644 'libpng12.pc' '/usr/local/lib/pkgconfig/libpng12.pc'
test -z "/usr/local/include/libpng12" || mkdir -p -- "/usr/local/include/libpng12"
/usr/bin/install -c -m 644 'png.h' '/usr/local/include/libpng12/png.h'
/usr/bin/install -c -m 644 'pngconf.h' '/usr/local/include/libpng12/pngconf.h'
make install-data-hook
make[2]: Entering directory `/home/daniel/libpng-1.2.18/libpng-1.2.18'
cd /usr/local/include; rm -f png.h pngconf.h
cd /usr/local/include; ln -s libpng12/png.h png.h
cd /usr/local/include; ln -s libpng12/pngconf.h pngconf.h
cd /usr/local/lib/pkgconfig; rm -f libpng.pc
cd /usr/local/lib/pkgconfig; ln -s libpng12.pc libpng.pc
make[2]: Leaving directory `/home/daniel/libpng-1.2.18/libpng-1.2.18'
make[1]: Leaving directory `/home/daniel/libpng-1.2.18/libpng-1.2.18'
[root@danux libpng-1.2.18]#
 
Zuletzt bearbeitet:
Das hört sich so an als wenn der gcc nicht weis wo die libs installiert sind. Hast du in der /etc/ld.so.conf auch den Ordner /usr/local/lib eingetragen?

Du kannst aber auch folgendes machen: ./configure --prefix=/usr

Dann landen alle relevanten Datein in die enstsprechenden Verzeichnisse unterhalb von /usr. Also z.B. /usr/lib , /usr/include , /usr/bin usw.
 

Ähnliche Themen

Zugriff Ubuntu 16.04. auf Freigabe 18.04. LTS nicht möglich

GCC Crosscompiler unter Debian Wheezy

xrandr: cant open display

Windows clients können nicht mehr auf lange laufendes System zugreifen

dovecot und postfix Konfiguration Problem

Zurück
Oben