LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-05-2004, 08:54 PM   #1
BlenderGuy
LQ Newbie
 
Registered: Feb 2004
Location: Seattle
Distribution: SuSE 9.1 personal
Posts: 20

Rep: Reputation: 0
SDL install woes


Firstly i didnt know where this would fit in but since im a a newbie style answer is what i need. Im trying to install Never Winter Nights, linux version. I Downloaded and installed all the files but when i tried to ./nwn i get the following error

root@box:/home/knoppix/nwn# ./nwn
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
root@box:/home/knoppix/nwn#

Googleing led me to the SDL website and installing SDL(go figure :-P)

./configure goes off without a hitch but when i get to make i get the following error, i haven't been able to google up a solution to this one, any help would be greatly appreiciated


root@box:/home/knoppix/SDL-1.2.5# make
Making all in src
make[1]: Entering directory `/home/knoppix/SDL-1.2.5/src'
Making all in main
make[2]: Entering directory `/home/knoppix/SDL-1.2.5/src/main'
gcc -DPACKAGE=\"SDL\" -DVERSION=\"1.2.5\" -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I. -I. -g -O2 -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -DUSE_ASMBLIT -I./hermes -I../../src/hermes -DOSS_SUPPORT -DALSA_SUPPORT -DARTSC_SUPPORT -I/usr/include/kde/artsc -I/usr/X11R6/include -DENABLE_X11 -I./include -I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE -DDEFAULT_DGAMOUSE -DXFREE86_XV -DHAVE_XINERAMA -Isrc/video -DENABLE_DGA -DENABLE_FBCON -DHAVE_OPENGL -DUSE_INPUT_EVENTS -D_REENTRANT -DSDL_USE_PTHREADS -DPTHREAD_NO_RECURSIVE_MUTEX -I../../include -I../../include/SDL -I../../src -I../../src/linux -I../../src/main -I../../src/audio -I../../src/video -I../../src/video/XFree86/extensions -I../../src/events -I../../src/joystick -I../../src/cdrom -I../../src/thread -I../../src/timer -I../../src/endian -I../../src/file -c SDL_main.c
rm -f libSDLmain.a
ar cru libSDLmain.a SDL_main.o
ranlib libSDLmain.a
make[2]: Leaving directory `/home/knoppix/SDL-1.2.5/src/main'
Making all in audio
make[2]: Entering directory `/home/knoppix/SDL-1.2.5/src/audio'
Making all in disk
make[3]: Entering directory `/home/knoppix/SDL-1.2.5/src/audio/disk'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/knoppix/SDL-1.2.5/src/audio/disk'
Making all in dsp
make[3]: Entering directory `/home/knoppix/SDL-1.2.5/src/audio/dsp'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/knoppix/SDL-1.2.5/src/audio/dsp'
Making all in dma
make[3]: Entering directory `/home/knoppix/SDL-1.2.5/src/audio/dma'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/knoppix/SDL-1.2.5/src/audio/dma'
Making all in alsa
make[3]: Entering directory `/home/knoppix/SDL-1.2.5/src/audio/alsa'
/bin/sh ../../../libtool --mode=compile gcc -DPACKAGE=\"SDL\" -DVERSION=\"1.2.5\" -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I. -I. -g -O2 -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -DUSE_ASMBLIT -I./hermes -I../../../src/hermes -DOSS_SUPPORT -DALSA_SUPPORT -DARTSC_SUPPORT -I/usr/include/kde/artsc -I/usr/X11R6/include -DENABLE_X11 -I./include -I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE -DDEFAULT_DGAMOUSE -DXFREE86_XV -DHAVE_XINERAMA -Isrc/video -DENABLE_DGA -DENABLE_FBCON -DHAVE_OPENGL -DUSE_INPUT_EVENTS -D_REENTRANT -DSDL_USE_PTHREADS -DPTHREAD_NO_RECURSIVE_MUTEX -I../../../include -I../../../include/SDL -I../../../src -I../../../src/linux -I../../../src/main -I../../../src/audio -I../../../src/video -I../../../src/video/XFree86/extensions -I../../../src/events -I../../../src/joystick -I../../../src/cdrom -I../../../src/thread -I../../../src/timer -I../../../src/endian -I../../../src/file -c SDL_alsa_audio.c
rm -f .libs/SDL_alsa_audio.lo
gcc -DPACKAGE=\"SDL\" -DVERSION=\"1.2.5\" -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I. -I. -g -O2 -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -DUSE_ASMBLIT -I./hermes -I../../../src/hermes -DOSS_SUPPORT -DALSA_SUPPORT -DARTSC_SUPPORT -I/usr/include/kde/artsc -I/usr/X11R6/include -DENABLE_X11 -I./include -I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE -DDEFAULT_DGAMOUSE -DXFREE86_XV -DHAVE_XINERAMA -Isrc/video -DENABLE_DGA -DENABLE_FBCON -DHAVE_OPENGL -DUSE_INPUT_EVENTS -D_REENTRANT -DSDL_USE_PTHREADS -DPTHREAD_NO_RECURSIVE_MUTEX -I../../../include -I../../../include/SDL -I../../../src -I../../../src/linux -I../../../src/main -I../../../src/audio -I../../../src/video -I../../../src/video/XFree86/extensions -I../../../src/events -I../../../src/joystick -I../../../src/cdrom -I../../../src/thread -I../../../src/timer -I../../../src/endian -I../../../src/file -c SDL_alsa_audio.c -fPIC -DPIC -o .libs/SDL_alsa_audio.lo
SDL_alsa_audio.c: In function `ALSA_OpenAudio':
SDL_alsa_audio.c:272: error: too few arguments to function `snd_pcm_hw_params_get_channels'
SDL_alsa_audio.c:282: warning: passing arg 3 of `snd_pcm_hw_params_set_rate_near' makes pointer from integer without a cast
SDL_alsa_audio.c:292: warning: passing arg 3 of `snd_pcm_hw_params_set_period_size_near' makes pointer from integer without a cast
SDL_alsa_audio.c:294: warning: passing arg 3 of `snd_pcm_hw_params_set_periods_near' makes pointer from integer without a cast
make[3]: *** [SDL_alsa_audio.lo] Error 1
make[3]: Leaving directory `/home/knoppix/SDL-1.2.5/src/audio/alsa'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/knoppix/SDL-1.2.5/src/audio'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/knoppix/SDL-1.2.5/src'
make: *** [all-recursive] Error 1
root@box:/home/knoppix/SDL-1.2.5#

thanks in advance-
 
Old 03-05-2004, 10:12 PM   #2
questionasker
Member
 
Registered: Aug 2003
Location: North Carolina, USA
Distribution: Onebase 2004-r2 | Updated through 6-10-04
Posts: 359

Rep: Reputation: 30
looks to me like an alsa error.
are you sure that youve got alsa installed correctly, and configured right?
 
Old 03-05-2004, 10:45 PM   #3
indeterminate
Member
 
Registered: Oct 2003
Location: Virginia, US
Distribution: Debian, Ubuntu, Knoppix.
Posts: 76

Rep: Reputation: 17
Well, if you're not using ALSA as your sound system (lsmod as root; most alsa modules start with "snd-"), you can try to figure out how to pass an option to ./configure to disable alsa support. (I think it's ./configure --enable-alsa=no)

Otherwise, if you are using ALSA, um... You could see if the SDL page has some kind of forum or mailing list - they could probably help out a lot better with compile errors.
 
Old 03-05-2004, 10:49 PM   #4
BlenderGuy
LQ Newbie
 
Registered: Feb 2004
Location: Seattle
Distribution: SuSE 9.1 personal
Posts: 20

Original Poster
Rep: Reputation: 0
thanks

thanks very much. will give it a go now
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SDL install problems dave`2005 Slackware 38 11-08-2005 04:17 PM
Trying to program an SDL application but cannot find the SDL.h file:SuSE 9.2&KDevelop pujolasdf Linux - Newbie 4 03-13-2005 07:50 AM
trying to install SDL rpm xconspirisist Linux - Software 10 12-01-2003 12:35 PM
SDL ( Simple DirectMedia Layer ) how to install? Rutnut Linux - General 5 08-08-2002 06:59 AM
SDL install NSKL Linux - Software 4 06-21-2002 03:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration