Failed building libfslvpuwrap

cancel
Showing results for 
Search instead for 
Did you mean: 

Failed building libfslvpuwrap

Jump to solution
2,480 Views
iqbal
Contributor II

why Failed building libfslvpuwrap?

due to this fail, vpudec plugin of gstreamer is not enabled?

please find the bellow error log.

Processing: libfslvpuwrap

===========================

Build path taken because: directory build, no prebuilt rpm,

scbuild/scdeploy already unpacked package

Processing: libfslvpuwrap

===========================

Build path taken because: directory build, build key set, no prebuilt rpm,

rpmbuild --dbpath /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/rpm' --define '_prefix /usr' --define '_tmppath /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/tmp' --define '_rpmdir /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/rpm/RPMS'  --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit  /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/dist/lfs-5.1/fsl-mm/libfslvpuwrap.spec

Building target platforms: arm

Building for target arm

Executing(%build): /bin/sh -e /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/tmp/rpm-tmp.19070

+ umask 022

+ cd /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/rpm/BUILD

+ cd libfslvpuwrap-1.0.17

+ which pkg-config

+ export PKG_CONFIG=/opt/freescale/ltib/usr/bin/pkg-config --static

+ ./configure --prefix=/usr --host=arm-linux --build=i686-pc-linux-gnu

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for arm-linux-strip... arm-linux-strip

checking for a thread-safe mkdir -p... /bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking whether to enable maintainer-specific portions of Makefiles... no

checking pkg-config is at least version 0.9.0... yes

checking for style of include used by make... GNU

checking for arm-linux-gcc... gcc

checking whether the C compiler works... yes

checking for C compiler default output file name... a.out

checking for suffix of executables...

checking whether we are cross compiling... yes

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ISO C89... none needed

checking dependency style of gcc... gcc3

checking for library containing strerror... none required

checking for arm-linux-gcc... (cached) gcc

checking whether we are using the GNU C compiler... (cached) yes

checking whether gcc accepts -g... (cached) yes

checking for gcc option to accept ISO C89... (cached) none needed

checking dependency style of gcc... (cached) gcc3

checking for arm-linux-gcc... (cached) gcc

checking whether we are using the GNU C compiler... (cached) yes

checking whether gcc accepts -g... (cached) yes

checking for gcc option to accept ISO C89... (cached) none needed

checking dependency style of gcc... (cached) gcc3

checking how to run the C preprocessor... gcc -E

checking for grep that handles long lines and -e... /bin/grep

checking for egrep... /bin/grep -E

checking for ANSI C header files... yes

checking build system type... i686-pc-linux-gnu

checking host system type... arm-unknown-linux-gnu

checking how to print strings... printf

checking for a sed that does not truncate output... /bin/sed

checking for fgrep... /bin/grep -F

checking for ld used by gcc... ld

checking if the linker (ld) is GNU ld... yes

checking for BSD- or MS-compatible name lister (nm)... /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-linux-nm -B

checking the name lister (/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-linux-nm -B) interface... BSD nm

checking whether ln -s works... yes

checking the maximum length of command line arguments... 1572864

checking whether the shell understands some XSI constructs... yes

checking whether the shell understands "+="... yes

checking how to convert i686-pc-linux-gnu file names to arm-unknown-linux-gnu format... func_convert_file_noop

checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop

checking for ld option to reload object files... -r

checking for arm-linux-objdump... arm-linux-objdump

checking how to recognize dependent libraries... pass_all

checking for arm-linux-dlltool... no

checking for dlltool... no

checking how to associate runtime and link libraries... printf %s\n

checking for arm-linux-ar... ar

checking for archiver @FILE support... @

checking for arm-linux-strip... (cached) arm-linux-strip

checking for arm-linux-ranlib... arm-linux-ranlib

checking command to parse /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-linux-nm -B output from gcc object... ok

checking for sysroot... no

checking for arm-linux-mt... no

checking for mt... mt

configure: WARNING: using cross tools not prefixed with host triplet

checking if mt is a manifest tool... no

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking for dlfcn.h... yes

checking for objdir... .libs

checking if gcc supports -fno-rtti -fno-exceptions... no

checking for gcc option to produce PIC... -fPIC -DPIC

checking if gcc PIC flag -fPIC -DPIC works... yes

checking if gcc static flag -static works... yes

checking if gcc supports -c -o file.o... yes

checking if gcc supports -c -o file.o... (cached) yes

checking whether the gcc linker (ld) supports shared libraries... yes

checking whether -lc should be explicitly linked in... no

checking dynamic linker characteristics... GNU/Linux ld.so

checking how to hardcode library paths into programs... immediate

checking whether stripping libraries is possible... yes

checking if libtool supports shared libraries... yes

checking whether to build shared libraries... yes

checking whether to build static libraries... yes

checking vpu_lib.h usability... no

checking vpu_lib.h presence... no

checking for vpu_lib.h... no

configure: error: lib_vpu is required, consider installing imx-lib

error: Bad exit status from /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/tmp/rpm-tmp.19070 (%build)

RPM build errors:

    Bad exit status from /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/tmp/rpm-tmp.19070 (%build)

Build time for libfslvpuwrap: 15 seconds

Failed building libfslvpuwrap

f_buildrpms() returned an error, exiting

traceback:

main:572

Started: Mon Oct 29 12:37:50 2012

Ended:   Mon Oct 29 12:41:13 2012

Elapsed: 203 seconds

These packages failed to build:

libfslvpuwrap

Build Failed

Exiting on error or interrupt



thanks in advance.

Labels (3)
0 Kudos
1 Solution
480 Views
LaurenPost
NXP Employee
NXP Employee

It seems that you don't have the imx-lib package installed.  This provides the vpu library and headers needed for the vpu plugin gstreamer build.

You might want to try re-installing the FSL debian packages to make sure they installed correctly.  Usually gstreamer installation will fail if the imx-lib is not installed since fsl gstreamer has a dependency on the imx-lib installation.

View solution in original post

0 Kudos
6 Replies
481 Views
LaurenPost
NXP Employee
NXP Employee

It seems that you don't have the imx-lib package installed.  This provides the vpu library and headers needed for the vpu plugin gstreamer build.

You might want to try re-installing the FSL debian packages to make sure they installed correctly.  Usually gstreamer installation will fail if the imx-lib is not installed since fsl gstreamer has a dependency on the imx-lib installation.

0 Kudos
480 Views
alexandreschneg
Contributor I

Hello,

I have the same issue. Can you give me a link to the download page for the FSL packages ? I can't find them. I use an i.MX27.

Thanks in advance.

Regards

Alexandre Schnegg

0 Kudos
480 Views
iqbal
Contributor II

Hi Lauren,

Thanks for you reply.

Yes, you are right, imx-lib will provide the vpu lib & headers.

I am building ltib packages for imx6dl processor, and imx-lib sucessfully build before gstreamer start. but unfortunately, vpu libs & headers didn't placed where it should be. And based on the error log, vpu dependency is not found while imx-lib is there.

So, here imx-lib unable to build vpu libs & headers.

What should I do for imx-lib successfully build the vpu, is there any dependecy for vpu which I am missing?

Thanks you very much for your help.

0 Kudos
480 Views
iqbal
Contributor II

Hi,

Please find the below log for imx-lib.

Processing: imx-lib

=====================

Build path taken because: directory build,

checking if sources have been updated: yes

scbuild/scdeploy already unpacked package

Processing: imx-lib

=====================

Build path taken because: directory build, build key set,

rpmbuild --dbpath /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm' --define '_prefix /usr' --define '_tmppath /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/tmp' --define '_rpmdir /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/RPMS'  --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit  /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/dist/lfs-5.1/mxc-misc/imx-lib.spec

Building target platforms: arm

Building for target arm

Executing(%build): /bin/sh -e /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/tmp/rpm-tmp.43098

+ umask 022

+ cd /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD

+ cd imx-lib-12.09.03

+ [ -z  ]

+ KERNELDIR=/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/../linux

+ KBUILD_OUTPUT=/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/../linux

+ [ -n  ]

+ echo imx6s

+ awk {print toupper($0)}

+ PLATFORM_UPPER=IMX6S

+ INCLUDE=-I/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rootfs/usr/src/linux/include -I/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/../linux/drivers/mxc/security/rng/include -I/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/../linux/drivers/mxc/security/sahara2/include

+ make -j1 PLATFORM=IMX6S INCLUDE=-I/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rootfs/usr/src/linux/include -I/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/../linux/drivers/mxc/security/rng/include -I/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/../linux/drivers/mxc/security/sahara2/include all

make -C ipu all

make[1]: Entering directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/ipu'

Not support platform, will not complile

make[1]: Leaving directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/ipu'

make -C pxp all

make[1]: Entering directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/pxp'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/pxp'

make -C rng all

make[1]: Entering directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/rng'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/rng'

make -C sahara2 all

make[1]: Entering directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/sahara2'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/sahara2'

make -C screenlayer all

make[1]: Entering directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/screenlayer'

Not support platform, will not complile

make[1]: Leaving directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/screenlayer'

make -C sim all

make[1]: Entering directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/sim'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/sim'

make -C vpu all

make[1]: Entering directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/vpu'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/vpu'

+ exit 0

Build time for imx-lib: 1 seconds

Processing: imx-lib

=====================

Build path taken because: directory build, build key set,

rpmbuild --dbpath /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm' --define '_prefix /usr' --define '_tmppath /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/tmp' --define '_rpmdir /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/RPMS'  --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bi --short-circuit  /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/dist/lfs-5.1/mxc-misc/imx-lib.spec

Building target platforms: arm

Building for target arm

Executing(%install): /bin/sh -e /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/tmp/rpm-tmp.50127

+ umask 022

+ cd /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD

+ cd imx-lib-12.09.03

+ [ -z  ]

+ KERNELDIR=/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/../linux

+ KBUILD_OUTPUT=/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/../linux

+ rm -rf /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/tmp/imx-lib

+ [ -n  ]

+ echo imx6s

+ awk {print toupper($0)}

+ PLATFORM_UPPER=IMX6S

+ make PLATFORM=IMX6S DEST_DIR=/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/tmp/imx-lib//opt/freescale/rootfs/arm install

make -C ipu install

make -C pxp install

make -C rng install

make[1]: Entering directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/ipu'

make -C sahara2 install

make -C screenlayer install

Not support platform, will not complile

make[1]: Leaving directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/ipu'

make[1]: Entering directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/rng'

make -C sim install

make[1]: Entering directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/sahara2'

make[1]: Nothing to be done for `install'.

make[1]: Leaving directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/sahara2'

make[1]: Entering directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/pxp'

make[1]: Nothing to be done for `install'.

make[1]: Leaving directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/pxp'

make -C vpu install

cp -P libfsl_shw.* /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/tmp/imx-lib//opt/freescale/rootfs/arm/usr/lib

make[1]: Entering directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/screenlayer'

make[1]: Entering directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/vpu'

make[1]: Nothing to be done for `install'.

make[1]: Leaving directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/vpu'

Not support platform, will not complile

make[1]: Leaving directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/screenlayer'

make[1]: Entering directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/sim'

make[1]: Nothing to be done for `install'.

make[1]: Leaving directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/sim'

make[1]: Leaving directory `/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/ltib/rpm/BUILD/imx-lib-12.09.03/rng'

+ exit 0

Processing files: imx-lib-12.09.03-1

Finding  Provides: (using /opt/freescale/ltib/usr/lib/rpm/find-provides)...

Finding  Requires: (using /opt/freescale/ltib/usr/lib/rpm/find-requires)...

Provides: libfsl_shw.so.0

PreReq: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1

Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1

Requires: libc.so.6(GLIBC_2.4)

Build time for imx-lib: 2 seconds

Kindly observe the bold text in the above log.

It means vpu is not supported for IMX6S platform, is it right?

Thanks....

0 Kudos
480 Views
LaurenPost
NXP Employee
NXP Employee

VPU hardware is not on a i.MX6SoloLite platform only on i.MX6 Solo, i.MX6DL and i.MX6DQ platforms.

0 Kudos
480 Views
iqbal
Contributor II

There is multiple platform type which is shown in below screenshot. There I have to select "imx6q", if I select "imx6s" then VPU is not available but in "imx6q" VPU is there.

1.png

After selection of platform type, there is multiple board where I have selected "mx6dl" which is shown in below screenshot.

2.png

Now, VPU is working and libfslvpuwrap build successfully.

Thanks Lauren for your time and help.

0 Kudos