Failed to initialize SDL

MM
Michal Matuga
Thu, Mar 15, 2012 3:34 PM

Hi,

I tryied to cross compile pjsip 2.0 with video support for embedded ARM. But
when I run application, or pjsua, I`m getting this error.

20:55:17.983 ffmpeg_codecs.  ...The H263-1998 decoder is using base codec
(H263)

20:55:17.983 ffmpeg_codecs.  ...The XVID codec is using base codec (MP4V)

20:55:17.984 colorbar_dev.c  ...Colorbar video src initialized with 1
device(s):

20:55:17.985 colorbar_dev.c  ... 0: Colorbar generator

20:55:17.989      sdl_dev.c !Failed initializing SDL

SimpleBrowser: ../src/pjmedia-videodev/sdl_dev.c:523: sdl_factory_destroy:
Assertion `pj_list_empty(&sf->streams)' failed.

What do you think can be a problem? This are my configures for SDL, ffmpeg
and pjsip  Thank you very much.

SDL:

./configure --prefix=/home/matuga/pjsip/compiled/
--exec-prefix=/home/matuga/pjsip/compiled/ --host=arm-linux --disable-shared
--enable-static --disable-video-x11 --disable-video-cocoa
--enable-video-directfb --disable-directx --disable-video-opengl
--disable-video-opengles

Ffmpeg:

./configure --prefix=/home/matuga/pjsip/compiled/ --enable-cross-compile
--enable-shared --disable-static --enable-memalign-hack  --arch=arm
--target-os=linux --cross-prefix=arm-linux-

Pjsip:

./configure --host="arm-linux" --prefix="/home/matuga/pjsip/compiled"
--disable-large-filter --disable-speex-aec --disable-l16-codec
--disable-g7221-codec --disable-speex-codec --disable-ilbc-codec
--disable-speex-aec CFLAGS="-I/home/matuga/pjsip/compiled/include/"
LDFLAGS="-L/home/matuga/pjsip/compiled/lib/"

Hi, I tryied to cross compile pjsip 2.0 with video support for embedded ARM. But when I run application, or pjsua, I`m getting this error. 20:55:17.983 ffmpeg_codecs. ...The H263-1998 decoder is using base codec (H263) 20:55:17.983 ffmpeg_codecs. ...The XVID codec is using base codec (MP4V) 20:55:17.984 colorbar_dev.c ...Colorbar video src initialized with 1 device(s): 20:55:17.985 colorbar_dev.c ... 0: Colorbar generator 20:55:17.989 sdl_dev.c !Failed initializing SDL SimpleBrowser: ../src/pjmedia-videodev/sdl_dev.c:523: sdl_factory_destroy: Assertion `pj_list_empty(&sf->streams)' failed. What do you think can be a problem? This are my configures for SDL, ffmpeg and pjsip Thank you very much. SDL: ./configure --prefix=/home/matuga/pjsip/compiled/ --exec-prefix=/home/matuga/pjsip/compiled/ --host=arm-linux --disable-shared --enable-static --disable-video-x11 --disable-video-cocoa --enable-video-directfb --disable-directx --disable-video-opengl --disable-video-opengles Ffmpeg: ./configure --prefix=/home/matuga/pjsip/compiled/ --enable-cross-compile --enable-shared --disable-static --enable-memalign-hack --arch=arm --target-os=linux --cross-prefix=arm-linux- Pjsip: ./configure --host="arm-linux" --prefix="/home/matuga/pjsip/compiled" --disable-large-filter --disable-speex-aec --disable-l16-codec --disable-g7221-codec --disable-speex-codec --disable-ilbc-codec --disable-speex-aec CFLAGS="-I/home/matuga/pjsip/compiled/include/" LDFLAGS="-L/home/matuga/pjsip/compiled/lib/"
MM
Michal Matuga
Thu, Mar 15, 2012 4:26 PM

Allright, found the problem.

After extending error message with SDL_GetError() I found, that SDL failed
to initialize because of no video device.

Than I made investigation about this problem, and I found, that driver fbcon
was removed in SDL 1.3. I don`t see source for this driver in src/video
either.

Question is, how to make some kind of workaround to make it work.


From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org]
On Behalf Of Michal Matuga
Sent: Thursday, March 15, 2012 4:35 PM
To: pjsip@lists.pjsip.org
Subject: [pjsip] Failed to initialize SDL

Hi,

I tryied to cross compile pjsip 2.0 with video support for embedded ARM. But
when I run application, or pjsua, I`m getting this error.

20:55:17.983 ffmpeg_codecs.  ...The H263-1998 decoder is using base codec
(H263)

20:55:17.983 ffmpeg_codecs.  ...The XVID codec is using base codec (MP4V)

20:55:17.984 colorbar_dev.c  ...Colorbar video src initialized with 1
device(s):

20:55:17.985 colorbar_dev.c  ... 0: Colorbar generator

20:55:17.989      sdl_dev.c !Failed initializing SDL

SimpleBrowser: ../src/pjmedia-videodev/sdl_dev.c:523: sdl_factory_destroy:
Assertion `pj_list_empty(&sf->streams)' failed.

What do you think can be a problem? This are my configures for SDL, ffmpeg
and pjsip  Thank you very much.

SDL:

./configure --prefix=/home/matuga/pjsip/compiled/
--exec-prefix=/home/matuga/pjsip/compiled/ --host=arm-linux --disable-shared
--enable-static --disable-video-x11 --disable-video-cocoa
--enable-video-directfb --disable-directx --disable-video-opengl
--disable-video-opengles

Ffmpeg:

./configure --prefix=/home/matuga/pjsip/compiled/ --enable-cross-compile
--enable-shared --disable-static --enable-memalign-hack  --arch=arm
--target-os=linux --cross-prefix=arm-linux-

Pjsip:

./configure --host="arm-linux" --prefix="/home/matuga/pjsip/compiled"
--disable-large-filter --disable-speex-aec --disable-l16-codec
--disable-g7221-codec --disable-speex-codec --disable-ilbc-codec
--disable-speex-aec CFLAGS="-I/home/matuga/pjsip/compiled/include/"
LDFLAGS="-L/home/matuga/pjsip/compiled/lib/"

Allright, found the problem. After extending error message with SDL_GetError() I found, that SDL failed to initialize because of no video device. Than I made investigation about this problem, and I found, that driver fbcon was removed in SDL 1.3. I don`t see source for this driver in src/video either. Question is, how to make some kind of workaround to make it work. _____ From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Michal Matuga Sent: Thursday, March 15, 2012 4:35 PM To: pjsip@lists.pjsip.org Subject: [pjsip] Failed to initialize SDL Hi, I tryied to cross compile pjsip 2.0 with video support for embedded ARM. But when I run application, or pjsua, I`m getting this error. 20:55:17.983 ffmpeg_codecs. ...The H263-1998 decoder is using base codec (H263) 20:55:17.983 ffmpeg_codecs. ...The XVID codec is using base codec (MP4V) 20:55:17.984 colorbar_dev.c ...Colorbar video src initialized with 1 device(s): 20:55:17.985 colorbar_dev.c ... 0: Colorbar generator 20:55:17.989 sdl_dev.c !Failed initializing SDL SimpleBrowser: ../src/pjmedia-videodev/sdl_dev.c:523: sdl_factory_destroy: Assertion `pj_list_empty(&sf->streams)' failed. What do you think can be a problem? This are my configures for SDL, ffmpeg and pjsip Thank you very much. SDL: ./configure --prefix=/home/matuga/pjsip/compiled/ --exec-prefix=/home/matuga/pjsip/compiled/ --host=arm-linux --disable-shared --enable-static --disable-video-x11 --disable-video-cocoa --enable-video-directfb --disable-directx --disable-video-opengl --disable-video-opengles Ffmpeg: ./configure --prefix=/home/matuga/pjsip/compiled/ --enable-cross-compile --enable-shared --disable-static --enable-memalign-hack --arch=arm --target-os=linux --cross-prefix=arm-linux- Pjsip: ./configure --host="arm-linux" --prefix="/home/matuga/pjsip/compiled" --disable-large-filter --disable-speex-aec --disable-l16-codec --disable-g7221-codec --disable-speex-codec --disable-ilbc-codec --disable-speex-aec CFLAGS="-I/home/matuga/pjsip/compiled/include/" LDFLAGS="-L/home/matuga/pjsip/compiled/lib/"
SK
Sandeep Karanth
Mon, Jul 2, 2012 10:18 AM

Hi,
Am too getting the same error when I try to build PJSIP with SDL on
my ubuntu 12.04 machine. Meanwhile I did see a FAQ regarding this at
http://wiki.libsdl.org/moin.cgi/FAQLinux . Any work around for this issue?

On Thu, Mar 15, 2012 at 9:56 PM, Michal Matuga matuga@microstep.sk wrote:

Allright, found the problem.****


After extending error message with SDL_GetError() I found, that SDL
failed to initialize because of no video device.****


Than I made investigation about this problem, and I found, that driver
fbcon was removed in SDL 1.3. I don`t see source for this driver in
src/video either.****


Question is, how to make some kind of workaround to make it work.****



From: pjsip-bounces@lists.pjsip.org [mailto:
pjsip-bounces@lists.pjsip.org] On Behalf Of Michal Matuga
Sent: Thursday, March 15, 2012 4:35 PM
To: pjsip@lists.pjsip.org
Subject: [pjsip] Failed to initialize SDL
**


Hi,****


I tryied to cross compile pjsip 2.0 with video support for embedded ARM.
But when I run application, or pjsua, I`m getting this error.****


20:55:17.983 ffmpeg_codecs.  ...The H263-1998 decoder is using base codec
(H263)****

20:55:17.983 ffmpeg_codecs.  ...The XVID codec is using base codec (MP4V)*


20:55:17.984 colorbar_dev.c  ...Colorbar video src initialized with 1
device(s):****

20:55:17.985 colorbar_dev.c  ... 0: Colorbar generator****

20:55:17.989      sdl_dev.c !Failed initializing SDL****

SimpleBrowser: ../src/pjmedia-videodev/sdl_dev.c:523: sdl_factory_destroy:
Assertion `pj_list_empty(&sf->streams)' failed.****


What do you think can be a problem? This are my configures for SDL, ffmpeg
and pjsip  Thank you very much.****


SDL:****

./configure --prefix=/home/matuga/pjsip/compiled/
--exec-prefix=/home/matuga/pjsip/compiled/ --host=arm-linux
--disable-shared --enable-static --disable-video-x11 --disable-video-cocoa
--enable-video-directfb --disable-directx --disable-video-opengl
--disable-video-opengles****


Ffmpeg:****

./configure --prefix=/home/matuga/pjsip/compiled/ --enable-cross-compile
--enable-shared --disable-static --enable-memalign-hack  --arch=arm
--target-os=linux --cross-prefix=arm-linux-****


Pjsip:****

./configure --host="arm-linux" --prefix="/home/matuga/pjsip/compiled"
--disable-large-filter --disable-speex-aec --disable-l16-codec
--disable-g7221-codec --disable-speex-codec --disable-ilbc-codec
--disable-speex-aec CFLAGS="-I/home/matuga/pjsip/compiled/include/"
LDFLAGS="-L/home/matuga/pjsip/compiled/lib/"****



Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi, Am too getting the same error when I try to build PJSIP with SDL on my ubuntu 12.04 machine. Meanwhile I did see a FAQ regarding this at http://wiki.libsdl.org/moin.cgi/FAQLinux . Any work around for this issue? On Thu, Mar 15, 2012 at 9:56 PM, Michal Matuga <matuga@microstep.sk> wrote: > Allright, found the problem.**** > > ** ** > > After extending error message with SDL_GetError() I found, that SDL > failed to initialize because of no video device.**** > > ** ** > > Than I made investigation about this problem, and I found, that driver > fbcon was removed in SDL 1.3. I don`t see source for this driver in > src/video either.**** > > ** ** > > Question is, how to make some kind of workaround to make it work.**** > > ** ** > ------------------------------ > > *From:* pjsip-bounces@lists.pjsip.org [mailto: > pjsip-bounces@lists.pjsip.org] *On Behalf Of *Michal Matuga > *Sent:* Thursday, March 15, 2012 4:35 PM > *To:* pjsip@lists.pjsip.org > *Subject:* [pjsip] Failed to initialize SDL**** > > ** ** > > Hi,**** > > ** ** > > I tryied to cross compile pjsip 2.0 with video support for embedded ARM. > But when I run application, or pjsua, I`m getting this error.**** > > ** ** > > 20:55:17.983 ffmpeg_codecs. ...The H263-1998 decoder is using base codec > (H263)**** > > 20:55:17.983 ffmpeg_codecs. ...The XVID codec is using base codec (MP4V)* > *** > > 20:55:17.984 colorbar_dev.c ...Colorbar video src initialized with 1 > device(s):**** > > 20:55:17.985 colorbar_dev.c ... 0: Colorbar generator**** > > 20:55:17.989 sdl_dev.c !Failed initializing SDL**** > > SimpleBrowser: ../src/pjmedia-videodev/sdl_dev.c:523: sdl_factory_destroy: > Assertion `pj_list_empty(&sf->streams)' failed.**** > > ** ** > > What do you think can be a problem? This are my configures for SDL, ffmpeg > and pjsip Thank you very much.**** > > ** ** > > SDL:**** > > ./configure --prefix=/home/matuga/pjsip/compiled/ > --exec-prefix=/home/matuga/pjsip/compiled/ --host=arm-linux > --disable-shared --enable-static --disable-video-x11 --disable-video-cocoa > --enable-video-directfb --disable-directx --disable-video-opengl > --disable-video-opengles**** > > ** ** > > Ffmpeg:**** > > ./configure --prefix=/home/matuga/pjsip/compiled/ --enable-cross-compile > --enable-shared --disable-static --enable-memalign-hack --arch=arm > --target-os=linux --cross-prefix=arm-linux-**** > > ** ** > > Pjsip:**** > > ./configure --host="arm-linux" --prefix="/home/matuga/pjsip/compiled" > --disable-large-filter --disable-speex-aec --disable-l16-codec > --disable-g7221-codec --disable-speex-codec --disable-ilbc-codec > --disable-speex-aec CFLAGS="-I/home/matuga/pjsip/compiled/include/" > LDFLAGS="-L/home/matuga/pjsip/compiled/lib/"**** > > ** ** > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
SK
Sandeep Karanth
Tue, Jul 3, 2012 6:33 AM

Hi,
This issue got resolved for me.My mercurial copy of SDL is in fact up
to date. I updated my svn copy of PJSIP today after about a week and now
everything seems to work fine.

On Mon, Jul 2, 2012 at 3:48 PM, Sandeep Karanth sandeepk.kdp@gmail.comwrote:

Hi,
Am too getting the same error when I try to build PJSIP with SDL on
my ubuntu 12.04 machine. Meanwhile I did see a FAQ regarding this at
http://wiki.libsdl.org/moin.cgi/FAQLinux . Any work around for this issue?

On Thu, Mar 15, 2012 at 9:56 PM, Michal Matuga matuga@microstep.skwrote:

Allright, found the problem.****


After extending error message with SDL_GetError() I found, that SDL
failed to initialize because of no video device.****


Than I made investigation about this problem, and I found, that driver
fbcon was removed in SDL 1.3. I don`t see source for this driver in
src/video either.****


Question is, how to make some kind of workaround to make it work.****



From: pjsip-bounces@lists.pjsip.org [mailto:
pjsip-bounces@lists.pjsip.org] On Behalf Of Michal Matuga
Sent: Thursday, March 15, 2012 4:35 PM
To: pjsip@lists.pjsip.org
Subject: [pjsip] Failed to initialize SDL
**


Hi,****


I tryied to cross compile pjsip 2.0 with video support for embedded ARM.
But when I run application, or pjsua, I`m getting this error.****


20:55:17.983 ffmpeg_codecs.  ...The H263-1998 decoder is using base codec
(H263)****

20:55:17.983 ffmpeg_codecs.  ...The XVID codec is using base codec (MP4V)


20:55:17.984 colorbar_dev.c  ...Colorbar video src initialized with 1
device(s):****

20:55:17.985 colorbar_dev.c  ... 0: Colorbar generator****

20:55:17.989      sdl_dev.c !Failed initializing SDL****

SimpleBrowser: ../src/pjmedia-videodev/sdl_dev.c:523:
sdl_factory_destroy: Assertion `pj_list_empty(&sf->streams)' failed.****


What do you think can be a problem? This are my configures for SDL,
ffmpeg and pjsip  Thank you very much.****


SDL:****

./configure --prefix=/home/matuga/pjsip/compiled/
--exec-prefix=/home/matuga/pjsip/compiled/ --host=arm-linux
--disable-shared --enable-static --disable-video-x11 --disable-video-cocoa
--enable-video-directfb --disable-directx --disable-video-opengl
--disable-video-opengles****


Ffmpeg:****

./configure --prefix=/home/matuga/pjsip/compiled/ --enable-cross-compile
--enable-shared --disable-static --enable-memalign-hack  --arch=arm
--target-os=linux --cross-prefix=arm-linux-****


Pjsip:****

./configure --host="arm-linux" --prefix="/home/matuga/pjsip/compiled"
--disable-large-filter --disable-speex-aec --disable-l16-codec
--disable-g7221-codec --disable-speex-codec --disable-ilbc-codec
--disable-speex-aec CFLAGS="-I/home/matuga/pjsip/compiled/include/"
LDFLAGS="-L/home/matuga/pjsip/compiled/lib/"****



Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
Regards,
Sandeep Karanth

Hi, This issue got resolved for me.My mercurial copy of SDL is in fact up to date. I updated my svn copy of PJSIP today after about a week and now everything seems to work fine. On Mon, Jul 2, 2012 at 3:48 PM, Sandeep Karanth <sandeepk.kdp@gmail.com>wrote: > Hi, > Am too getting the same error when I try to build PJSIP with SDL on > my ubuntu 12.04 machine. Meanwhile I did see a FAQ regarding this at > http://wiki.libsdl.org/moin.cgi/FAQLinux . Any work around for this issue? > > On Thu, Mar 15, 2012 at 9:56 PM, Michal Matuga <matuga@microstep.sk>wrote: > >> Allright, found the problem.**** >> >> ** ** >> >> After extending error message with SDL_GetError() I found, that SDL >> failed to initialize because of no video device.**** >> >> ** ** >> >> Than I made investigation about this problem, and I found, that driver >> fbcon was removed in SDL 1.3. I don`t see source for this driver in >> src/video either.**** >> >> ** ** >> >> Question is, how to make some kind of workaround to make it work.**** >> >> ** ** >> ------------------------------ >> >> *From:* pjsip-bounces@lists.pjsip.org [mailto: >> pjsip-bounces@lists.pjsip.org] *On Behalf Of *Michal Matuga >> *Sent:* Thursday, March 15, 2012 4:35 PM >> *To:* pjsip@lists.pjsip.org >> *Subject:* [pjsip] Failed to initialize SDL**** >> >> ** ** >> >> Hi,**** >> >> ** ** >> >> I tryied to cross compile pjsip 2.0 with video support for embedded ARM. >> But when I run application, or pjsua, I`m getting this error.**** >> >> ** ** >> >> 20:55:17.983 ffmpeg_codecs. ...The H263-1998 decoder is using base codec >> (H263)**** >> >> 20:55:17.983 ffmpeg_codecs. ...The XVID codec is using base codec (MP4V) >> **** >> >> 20:55:17.984 colorbar_dev.c ...Colorbar video src initialized with 1 >> device(s):**** >> >> 20:55:17.985 colorbar_dev.c ... 0: Colorbar generator**** >> >> 20:55:17.989 sdl_dev.c !Failed initializing SDL**** >> >> SimpleBrowser: ../src/pjmedia-videodev/sdl_dev.c:523: >> sdl_factory_destroy: Assertion `pj_list_empty(&sf->streams)' failed.**** >> >> ** ** >> >> What do you think can be a problem? This are my configures for SDL, >> ffmpeg and pjsip Thank you very much.**** >> >> ** ** >> >> SDL:**** >> >> ./configure --prefix=/home/matuga/pjsip/compiled/ >> --exec-prefix=/home/matuga/pjsip/compiled/ --host=arm-linux >> --disable-shared --enable-static --disable-video-x11 --disable-video-cocoa >> --enable-video-directfb --disable-directx --disable-video-opengl >> --disable-video-opengles**** >> >> ** ** >> >> Ffmpeg:**** >> >> ./configure --prefix=/home/matuga/pjsip/compiled/ --enable-cross-compile >> --enable-shared --disable-static --enable-memalign-hack --arch=arm >> --target-os=linux --cross-prefix=arm-linux-**** >> >> ** ** >> >> Pjsip:**** >> >> ./configure --host="arm-linux" --prefix="/home/matuga/pjsip/compiled" >> --disable-large-filter --disable-speex-aec --disable-l16-codec >> --disable-g7221-codec --disable-speex-codec --disable-ilbc-codec >> --disable-speex-aec CFLAGS="-I/home/matuga/pjsip/compiled/include/" >> LDFLAGS="-L/home/matuga/pjsip/compiled/lib/"**** >> >> ** ** >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> > -- Regards, Sandeep Karanth