compiling SDL

Issues that occur when trying to compile FFmpeg.

compiling SDL

Postby rogerdpack » Fri Aug 24, 2012 9:35 pm

Hello.
With SDL 1.2.15, if I just build it "normal" [cross compile] and try and use it, I get a single green dot on the screen for ffplay,and if I resize it at all, I run into this segfault:

Program received signal SIGSEGV, Segmentation fault.
0x00bd1741 in ColorRGBDitherYV12MMX1X (colortab=0xbbe4b2, rgb_2_pix=0x70c5cd8, lum=0x82de570 "",
cr=0xb8a0020 '\020' <repeats 200 times>..., cb=0xb8f4620 '\200' <repeats 200 times>..., out=0xb9097a0 '\200' <repeats 200 times>...,
rows=195035168, cols=480, mod=720) at ./src/video/SDL_yuv_mmx.c:94
94 ./src/video/SDL_yuv_mmx.c: No such file or directory.
in ./src/video/SDL_yuv_mmx.c

Are there any tricks to compiling SDL here?
(the work around is to set
CFLAGS=
which uses "nothing" instead of -g -O2 and seems to work well...)
-roger-
rogerdpack
 
Posts: 1454
Joined: Fri Aug 05, 2011 9:56 pm

Re: compiling SDL

Postby Zeranoe » Mon Aug 27, 2012 5:49 pm

What was your command you used to compile SDL?
User avatar
Zeranoe
Site Admin
 
Posts: 545
Joined: Sat May 07, 2011 7:12 pm

Re: compiling SDL

Postby rogerdpack » Mon Oct 08, 2012 10:49 pm

I configure it as:
PATH=/home/rogerdpack/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/rogerdpack/.rvm/bin:/home/rogerdpack/installs:/home/rogerdpack/.rvm/bin ./configure --host=i686-w64-mingw32 --prefix=/home/rogerdpack/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/i686-w64-mingw32 --disable-shared --enable-static

I was also able to reproduce the problem in Linux recently, see also http://ffmpeg.org/trac/ffmpeg/ticket/939
rogerdpack
 
Posts: 1454
Joined: Fri Aug 05, 2011 9:56 pm

Re: compiling SDL

Postby rogerdpack » Tue Oct 09, 2012 3:53 pm

appears the fix was
setting CFLAGS=
before compiling SDL. Yikes.


ok, anybody know where I can get a dlopen for mingw? mplayer have one?

UPDATE
http://betterlogic.com/roger/2012/10/mingw-ldl-dlopen/ lists some, first seems to work fine
rogerdpack
 
Posts: 1454
Joined: Fri Aug 05, 2011 9:56 pm


Return to Compiling Issues

Who is online

Users browsing this forum: Google [Bot] and 2 guests