Compilation on L3.0.35_4.0.0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Compilation on L3.0.35_4.0.0

1,774 Views
EricNelson
Senior Contributor II

While putting together some images based on the L3.0.35_4.0.0 BSP:

        http://boundarydevices.com/ltib-4-0-0-images/

I ran into a snag when trying to build without Cairo for an image without X-Windows but with gstreamer, I got

this opaque error message from the build of package gst-plugins-good:

checking whether the C compiler works... no

configure: error: in `/home/ericn/ltib4-nox/rpm/BUILD/gst-plugins-good-0.10.30':

configure: error: C compiler cannot create executables

See `config.log' for more details

error: Bad exit status from /home/ericn/ltib4-nox/tmp/rpm-tmp.92211 (%build)

RPM build errors:

    Bad exit status from /home/ericn/ltib4-nox/tmp/rpm-tmp.92211 (%build)

Build time for gst-plugins-good: 2 seconds

Failed building gst-plugins-good

It took a while to figure out that the problem stems from a bug in the spec file (dist/lfs-5.1/gst-plugins-good/gst-plugins-good.spec).

A line in that file requests the inclusion of the libcairo library, even though Cairo support is explicitly disabled.

In order to get compilation to succeed, I needed to delete this line:

     -export LIBS="-lcairo"

I hope this helps someone else who's trying to get a minimal build.

Labels (3)
Tags (2)
4 Replies

707 Views
LeonardoSandova
Specialist I

Hi Eric,

Thanks for sharing your solution. Several people have face this issue and as you mentioned, the trick is to either include cairo when selecting the good plugins on ltib OR removing all cairo stuff on the good’s spec.

Leo

707 Views
EricNelson
Senior Contributor II

:smileyhappy: Notes for the last LTIB release?

707 Views
LeonardoSandova
Specialist I

BTW, in case you tried compiling gst-ffmpeg-plugin, there are  two symbols not define, so a patch should applied on the source code. Please check this link for instructions:

https://community.freescale.com/docs/DOC-93450

707 Views
LeonardoSandova
Specialist I
0 Kudos