Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

mythtv compilation for maemo (Nokia N900) failing with -lGL error

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


rajil.s at gmail

Feb 6, 2010, 11:49 PM

Post #1 of 5 (1487 views)
Permalink
mythtv compilation for maemo (Nokia N900) failing with -lGL error

Hi all,

I am trying to compile mythtv in a scratcbox for the maemo platform
but the compilation is failing. The error is

g++ -Wl,-rpath-link,/usr/lib -Wl,-O1 -Wl,-rpath,/opt/qt-4.6.0/lib
-shared -Wl,-soname,libmythfreemheg-0.22.so.0 -o
libmythfreemheg-0.22.so.0.22.0 Actions.o BaseClasses.o Bitmap.o
Engine.o Groups.o Ingredients.o ParseBinary.o ParseNode.o ParseText.o
Presentable.o Programs.o Root.o Stream.o Text.o Variables.o Visible.o
BaseActions.o DynamicLineArt.o TokenGroup.o Link.o
-L/opt/qt-4.6.0/lib -lfreetype -lz -L/usr/X11R6/lib -lXinerama -lX11
-lXext -lXxf86vm -lXv -lGL -lGLU -lpulse -lQtGui -L/opt/qt-4.6.0/lib
-lQtCore -lpthread
/scratchbox/compilers/cs2007q3-glibc2.5-arm7/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1/../../../../arm-none-linux-gnueabi/bin/ld:
cannot find -lGL

The funny thing is that i did specify no to use opengl using the
following configure options. The GL files are listed as well.

#ls /usr/lib/*GL*
/usr/lib/libEGL.so      /usr/lib/libGLESv2.so
/usr/lib/libpvrPVR2D_DRI2WSEGL.so  /usr/lib/libpvrPVR2D_FRONTWSEGL.so
/usr/lib/libGLES_CM.so  /usr/lib/libpvrPVR2D_BLITWSEGL.so
/usr/lib/libpvrPVR2D_FLIPWSEGL.so  /usr/lib/libpvrPVR2D_X11WSEGL.so

#./configure  --qmake=/opt/bin/qmake --prefix=/opt/myth
--disable-opengl-video --disable-distcc --disable-opengl-vsync
--disable-lirc  --disable-joystick-menu  --disable-firewire
--disable-iptv  --disable-hdhomerun  --disable-v4l  --disable-ivtv
--disable-hdpvr  --disable-dvb  --disable-directfb --disable-ccache
--disable-xrandr --disable-xvmc  --disable-xvmcw

Warning! QtWebkit headers not found, MythBrowser will not work.
# Basic Settings
Compile type              release
Compiler cache            no
DistCC                    no
qmake                     /opt/qt-4.6.0/bin/qmake
install prefix            /opt/myth
runtime prefix            /opt/myth
CPU                       arm  (model name      : Intel(R) Core(TM)2
CPU          6600  @ 2.40GHz)
big-endian                no
runtime cpu detection     no
ARMv5TE enabled           yes
ARMv6 enabled             yes
ARMv6T2 enabled           yes
ARM VFP enabled           yes
IWMMXT enabled            no
NEON enabled              no

# Input Support
Joystick menu             no
lirc support              no
Video4Linux sup.          no
ivtv support              no
HD-PVR support            no
FireWire support          no
DVB support               no [/usr/include]
DVB-S2 support            no
HDHomeRun support         no
IPTV support              no

# Sound Output Support
PulseAudio support        yes
OSS support               yes
ALSA support              yes
aRts support              no
JACK support              no
libfftw3 support          no

# Video Output Support
x11 support               yes
xrandr support            no
xv support                yes
XvMC support              no
XvMC VLD support          no
XvMC pro support          no
VDPAU support             no
OpenGL video              no
OpenGL vsync              no
DirectFB                  no
Fribidi formatting        no
MHEG support              yes

# Misc Features
multi threaded libavcodec yes
Frontend                  yes
Backend                   yes

# Bindings
bindings_perl             yes
bindings_python           yes

Creating libs/libmythdb/mythconfig.h and libs/libmythdb/mythconfig.mak

anybody knows why a -GL is being called at all?

Thanks
Rajil
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


janne-mythtv at grunau

Feb 7, 2010, 11:30 AM

Post #2 of 5 (1430 views)
Permalink
Re: mythtv compilation for maemo (Nokia N900) failing with -lGL error [In reply to]

On Sun, Feb 07, 2010 at 07:49:41AM +0000, Rajil Saraswat wrote:
>
> I am trying to compile mythtv in a scratcbox for the maemo platform
> but the compilation is failing. The error is
>
> g++ -Wl,-rpath-link,/usr/lib -Wl,-O1 -Wl,-rpath,/opt/qt-4.6.0/lib
> -shared -Wl,-soname,libmythfreemheg-0.22.so.0 -o
> libmythfreemheg-0.22.so.0.22.0 Actions.o BaseClasses.o Bitmap.o
> Engine.o Groups.o Ingredients.o ParseBinary.o ParseNode.o ParseText.o
> Presentable.o Programs.o Root.o Stream.o Text.o Variables.o Visible.o
> BaseActions.o DynamicLineArt.o TokenGroup.o Link.o
> -L/opt/qt-4.6.0/lib -lfreetype -lz -L/usr/X11R6/lib -lXinerama -lX11
> -lXext -lXxf86vm -lXv -lGL -lGLU -lpulse -lQtGui -L/opt/qt-4.6.0/lib
> -lQtCore -lpthread
> /scratchbox/compilers/cs2007q3-glibc2.5-arm7/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1/../../../../arm-none-linux-gnueabi/bin/ld:
> cannot find -lGL
>
> The funny thing is that i did specify no to use opengl using the
> following configure options. The GL files are listed as well.
>
> #ls /usr/lib/*GL*
> /usr/lib/libEGL.so      /usr/lib/libGLESv2.so
> /usr/lib/libpvrPVR2D_DRI2WSEGL.so  /usr/lib/libpvrPVR2D_FRONTWSEGL.so
> /usr/lib/libGLES_CM.so  /usr/lib/libpvrPVR2D_BLITWSEGL.so
> /usr/lib/libpvrPVR2D_FLIPWSEGL.so  /usr/lib/libpvrPVR2D_X11WSEGL.so
>
> #./configure  --qmake=/opt/bin/qmake --prefix=/opt/myth
> --disable-opengl-video --disable-distcc --disable-opengl-vsync
> --disable-lirc  --disable-joystick-menu  --disable-firewire
> --disable-iptv  --disable-hdhomerun  --disable-v4l  --disable-ivtv
> --disable-hdpvr  --disable-dvb  --disable-directfb --disable-ccache
> --disable-xrandr --disable-xvmc  --disable-xvmcw

no, you just disabled two opengl features try adding --disable-opengl

you can remove --disable-opengl-video and --disable-opengl-vsync since
they depend on opengl. --disable-ivtv, --disable-hdpvr are also not
needed since they depend on v4l

> Warning! QtWebkit headers not found, MythBrowser will not work.
> # Basic Settings
> Compile type              release
> Compiler cache            no
> DistCC                    no
> qmake                     /opt/qt-4.6.0/bin/qmake
> install prefix            /opt/myth
> runtime prefix            /opt/myth
> CPU                       arm  (model name      : Intel(R) Core(TM)2
> CPU          6600  @ 2.40GHz)
> big-endian                no
> runtime cpu detection     no
> ARMv5TE enabled           yes
> ARMv6 enabled             yes
> ARMv6T2 enabled           yes
> ARM VFP enabled           yes
> IWMMXT enabled            no
> NEON enabled              no

you probably want NEON enabled for the N900

HTH Janne
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


rajil.s at gmail

Feb 7, 2010, 2:29 PM

Post #3 of 5 (1411 views)
Permalink
Re: mythtv compilation for maemo (Nokia N900) failing with -lGL error [In reply to]

On Sunday 07 February 2010 19:30:14 Janne Grunau wrote:
>
> no, you just disabled two opengl features try adding --disable-opengl
>
> you can remove --disable-opengl-video and --disable-opengl-vsync since
> they depend on opengl. --disable-ivtv, --disable-hdpvr are also not
> needed since they depend on v4l
>
>
> you probably want NEON enabled for the N900
>
> HTH Janne

Thanks, --disable-opengl is what got me past the -lGL error. I have enabled
NEON as well, but hit another compile error in libavcodec.

I understand that maemo isnt a supported platform so if this is like chasing a
dogs tail then please let me know.

The error is as follows:

gcc -c -pipe -fomit-frame-pointer -O3 -D_ISOC99_SOURCE -
D_POSIX_C_SOURCE=200112 -std=c99 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -
pthread -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-
decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef -fno-math-errno -
mfpu=neon -w -D_REENTRANT -DPIC -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -
DHAVE_AV_CONFIG_H -D_LARGEFILE_SOURCE -
I/targets/FREMANTLE_ARMEL/opt/qt-4.6.0/mkspecs/linux-g++ -I. -I.. -I../.. -o
motion_est.o motion_est.c
{standard input}: Assembler messages:
{standard input}:988: Error: bad instruction `cmpl r8,r2'
{standard input}:989: Error: bad instruction `cmovl r2,r8'
{standard input}:990: Error: bad instruction `cmovl r3,sl'
--------snip--------------
make[2]: *** [motion_est.o] Error 1
make[2]: Leaving directory
`/home/sbox/tmp/arm_myth/mythtv-0.22/libs/libavcodec'
make[1]: *** [sub-libavcodec-make_default] Error 2
make[1]: Leaving directory `/home/sbox/tmp/arm_myth/mythtv-0.22/libs'
make: *** [sub-libs-make_default-ordered] Error 2

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


craftyguy at gmail

Feb 7, 2010, 11:49 PM

Post #4 of 5 (1396 views)
Permalink
Re: mythtv compilation for maemo (Nokia N900) failing with -lGL error [In reply to]

I don't know much about ARM assembly, but it would look like there is some in-line assembly in the code that is not ARM instructions. That code would need to be ported to ARM instructions to compile successfully.




----- Original message -----
> On Sunday 07 February 2010 19:30:14 Janne Grunau wrote:
> >
> > no, you just disabled two opengl features try adding --disable-opengl
> >
> > you can remove --disable-opengl-video and --disable-opengl-vsync since
> > they depend on opengl. --disable-ivtv, --disable-hdpvr are also not
> > needed since they depend on v4l
> >
> >
> > you probably want NEON enabled for the N900
> >
> > HTH Janne
>
> Thanks, --disable-opengl is what got me past the -lGL error. I have enabled
> NEON as well, but hit another compile error in libavcodec.
>
> I understand that maemo isnt a supported platform so if this is like chasing a
> dogs tail then please let me know.
>
> The error is as follows:
>
> gcc -c -pipe -fomit-frame-pointer -O3 -D_ISOC99_SOURCE -
> D_POSIX_C_SOURCE=200112 -std=c99 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -
> pthread -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-
> decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef -fno-math-errno -
> mfpu=neon -w -D_REENTRANT -DPIC -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -
> DHAVE_AV_CONFIG_H -D_LARGEFILE_SOURCE -
> I/targets/FREMANTLE_ARMEL/opt/qt-4.6.0/mkspecs/linux-g++ -I. -I.. -I../.. -o
> motion_est.o motion_est.c                                                 
> {standard input}: Assembler messages:                                                                                   
>                                                                                                                                                               
>                                {standard input}:988: Error: bad instruction `cmpl r8,r2'           
>                                                                                                                                                               
>                                                                {standard input}:989: Error: bad instruction
> `cmovl r2,r8'                                                                                                                                   
>                                                                                                        {standard input}:990: Error:
> bad instruction `cmovl r3,sl'    --------snip-------------- make[2]: ***
> [motion_est.o] Error 1 make[2]: Leaving directory
> `/home/sbox/tmp/arm_myth/mythtv-0.22/libs/libavcodec' make[1]: ***
> [sub-libavcodec-make_default] Error 2 make[1]: Leaving directory
> `/home/sbox/tmp/arm_myth/mythtv-0.22/libs' make: ***
> [sub-libs-make_default-ordered] Error 2
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


janne-mythtv at grunau

Feb 10, 2010, 4:26 PM

Post #5 of 5 (1281 views)
Permalink
Re: mythtv compilation for maemo (Nokia N900) failing with -lGL error [In reply to]

On Tue, Feb 09, 2010 at 08:03:52PM +0000, Rajil Saraswat wrote:
> On Monday 08 February 2010 13:13:48 Janne Grunau wrote:
> > On Sun, Feb 07, 2010 at 10:29:13PM +0000, Rajil Saraswat wrote:
> > > On Sunday 07 February 2010 19:30:14 Janne Grunau wrote:
> > >
> > > Thanks, --disable-opengl is what got me past the -lGL error. I have
> > > enabled NEON as well, but hit another compile error in libavcodec.
> >
> > I don't know arm assembler but those bad instructions might be x86
> > instructions.
> >
> > > I understand that maemo isnt a supported platform so if this is like
> > > chasing a dogs tail then please let me know.
> >
> > I know that mythtv works fine in OE on the beagleboard. So you could
> > compare the recipe in OE to yours. For scratchbox related issues looking
> > how ffmpeg is built should be helpful. Mythtv's configure is based on
> > ffmpeg's.
> >
> I have tried building the latest ffmpeg release version (0.5) and the version
> available for maemo5 (http://maemo.org/packages/source/view/fremantle_extras-
> devel_free_source/ffmpeg/0.5+svn20090706-5/) and both build fine for arm in
> scratchbox. There is something in mythtv's libavcodec which stops it to be
> built. Unfortunately, i have not been able to correlate the Makefile from ffmpeg
> to the qt generated version from libavcodec.pro.

The Makefile will be different, it's probably more important to look
through config.mak/config.h for arm/x86 related arch issues.
>
> I was wondering whether the changeset for beagleboard
> (http://svn.mythtv.org/trac/changeset/20797) will build fine in scratchbox.
> Also, can you please direct me to the code of mythtv for beagleboard as
> googling wasnt very helpful.

http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/mythtv/mythtv_0.22.bb

Janne
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.