Failed to build opencv_1.0.0.bb recipe
Hi,
I am trying to build opencv_1.0.0.bb recipe with this command:
bitbake -b /opt/local/oe/openembedded/recipes/opencv/opencv_1.0.0.bb
I've just faced with this error: "oe_runconf: command not found"
Maybe this log would be helpful to get the point what happened:
-------------------------------------------------------------------------------------------------
NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 5 of 17 (ID:
5, /opt/local/oe/openembedded/recipes/opencv/opencv_1.0.0.bb, do_configure)
__builtin__:6: DeprecationWarning: raising a string exception is deprecated
NOTE: No Python in STAGING_INCDIR. Forgot to build python-native ?:None while evaluating:
${@python_dir(d)} /opt/local/oe/bitbake/lib/bb/data_smart.py:92: DeprecationWarning:
raising a string exception is deprecated
raise
NOTE: No Python in STAGING_INCDIR. Forgot to build python-native ?:None while evaluating:
--disable-debug --without-gtk --without-python --disable-apps az_python_cspec=${STAGING_INCDIR}/${PYTHON_DIR}
NOTE: No Python in STAGING_INCDIR. Forgot to build python-native ?:None while evaluating:
if [ -x ${S}/configure ] ; then
cfgcmd="${S}/configure \
--build=${BUILD_SYS} \
--host=${HOST_SYS} \
--target=${TARGET_SYS} \
--prefix=${prefix} \
--exec_prefix=${exec_prefix} \
--bindir=${bindir} \
--sbindir=${sbindir} \
--libexecdir=${libexecdir} \
--datadir=${datadir} \
--sysconfdir=${sysconfdir} \
--sharedstatedir=${sharedstatedir} \
--localstatedir=${localstatedir} \
--libdir=${libdir} \
--includedir=${includedir} \
--oldincludedir=${oldincludedir} \
--infodir=${infodir} \
--mandir=${mandir} \
${EXTRA_OECONF} \
$@"
oenote "Running $cfgcmd..."
$cfgcmd || oefatal "oe_runconf failed"
else
oefatal "no configure script found"
fiERROR: function do_configure failed
ERROR: log data follows (/opt/local/oe/tmp/work/ppc405-angstrom-linux/opencv-1.0.0-r2/temp/log.do_configure.24130)
| /opt/local/oe/tmp/work/ppc405-angstrom-linux/opencv-1.0.0-r2/temp/run.do_configure.24130: line 745: oe_runconf: command not found
NOTE: Task
failed: /opt/local/oe/tmp/work/ppc405-angstrom-linux/opencv-1.0.0-r2/temp/log.do_configure.24130
ERROR: TaskFailed event exception, aborting
ERROR: Build
of /opt/local/oe/openembedded/recipes/opencv/opencv_1.0.0.bbdo_configure failed
ERROR: Task 5
(/opt/local/oe/openembedded/recipes/opencv/opencv_1.0.0.bb,do_configure) failed
NOTE: Tasks Summary: Attempted 5 tasks of which 5 didn't need to be
rerun and 1 failed.
ERROR: '/opt/local/oe/openembedded/recipes/opencv/opencv_1.0.0.bb'
failed
-------------------------------------------------------------------------------------------------
I would be grateful if somebody would help me to figure out the problem.
CIAO
Ali
Don't use -b unless you know what you are doing
Quoted 82 lines · Ali Akbar Zarezadeh
Hi,
I am trying to build opencv_1.0.0.bb recipe with this command:
bitbake -b
/opt/local/oe/openembedded/recipes/opencv/opencv_1.0.0.bbI've just faced with this error: "
oe_runconf: command not found"Maybe this log would be helpful to get the point what happened:
-------------------------------------------------------------------------------------------------
NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 5 of 17 (ID:
5,/opt/local/oe/openembedded/recipes/opencv/opencv_1.0.0.bb,do_configure)
__builtin__:6: DeprecationWarning: raising a string exception is deprecated
NOTE: No Python inSTAGING_INCDIR. Forgot to build python-native ?:None while evaluating:
${@python_dir(d)}/opt/local/oe/bitbake/lib/bb/data_smart.py:92: DeprecationWarning:
raising a string exception is deprecated
raise
NOTE: No Python inSTAGING_INCDIR. Forgot to build python-native ?:None while evaluating:
--disable-debug --without-gtk --without-python --disable-apps az_python_cspec=${STAGING_INCDIR}/${PYTHON_DIR}
NOTE: No Python inSTAGING_INCDIR. Forgot to build python-native ?:None while evaluating:if [ -x ${S}/configure ] ; then cfgcmd="${S}/configure \ --build=${BUILD_SYS} \ --host=${HOST_SYS} \ --target=${TARGET_SYS} \ --prefix=${prefix} \ --exec_prefix=${exec_prefix} \ --bindir=${bindir} \ --sbindir=${sbindir} \ --libexecdir=${libexecdir} \ --datadir=${datadir} \ --sysconfdir=${sysconfdir} \ --sharedstatedir=${sharedstatedir} \ --localstatedir=${localstatedir} \ --libdir=${libdir} \ --includedir=${includedir} \ --oldincludedir=${oldincludedir} \ --infodir=${infodir} \ --mandir=${mandir} \ ${EXTRA_OECONF} \ $@" oenote "Running $cfgcmd..." $cfgcmd || oefatal "oe_runconf failed" else oefatal "no configure script found" fiERROR: function
do_configurefailed
ERROR: log data follows (/opt/local/oe/tmp/work/ppc405-angstrom-linux/opencv-1.0.0-r2/temp/log.do_configure.24130)
|/opt/local/oe/tmp/work/ppc405-angstrom-linux/opencv-1.0.0-r2/temp/run.do_configure.24130: line 745:oe_runconf: command not found
NOTE: Task
failed:/opt/local/oe/tmp/work/ppc405-angstrom-linux/opencv-1.0.0-r2/temp/log.do_configure.24130
ERROR: TaskFailed event exception, aborting
ERROR: Build
of/opt/local/oe/openembedded/recipes/opencv/opencv_1.0.0.bbdo_configurefailed
ERROR: Task 5
(/opt/local/oe/openembedded/recipes/opencv/opencv_1.0.0.bb,do_configure) failed
NOTE: Tasks Summary: Attempted 5 tasks of which 5 didn't need to be
rerun and 1 failed.
ERROR: '/opt/local/oe/openembedded/recipes/opencv/opencv_1.0.0.bb'
failed-------------------------------------------------------------------------------------------------
I would be grateful if somebody would help me to figure out the problem.
CIAO
Ali
Quoted 95 lines · Koen Kooi
Don't use -b unless you know what you are doing
Quoted 83 lines · Ali Akbar Zarezadeh
Hi,
I am trying to build opencv_1.0.0.bb recipe with this command:
bitbake -b
/opt/local/oe/openembedded/recipes/opencv/opencv_1.0.0.bbI've just faced with this error: "
oe_runconf: command not found"Maybe this log would be helpful to get the point what happened:
-------------------------------------------------------------------------------------------------
NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 5 of 17 (ID:
5,/opt/local/oe/openembedded/recipes/opencv/opencv_1.0.0.bb,do_configure)
__builtin__:6: DeprecationWarning: raising a string exception is deprecated
NOTE: No Python inSTAGING_INCDIR. Forgot to build python-native ?:None while evaluating:
${@python_dir(d)}/opt/local/oe/bitbake/lib/bb/data_smart.py:92: DeprecationWarning:
raising a string exception is deprecated
raise
NOTE: No Python inSTAGING_INCDIR. Forgot to build python-native ?:None while evaluating:
--disable-debug --without-gtk --without-python --disable-apps az_python_cspec=${STAGING_INCDIR}/${PYTHON_DIR}
NOTE: No Python inSTAGING_INCDIR. Forgot to build python-native ?:None while evaluating:
if [ -x ${S}/configure ] ; then cfgcmd="${S}/configure \
--build=${BUILD_SYS} \
--host=${HOST_SYS} \
--target=${TARGET_SYS} \
--prefix=${prefix} \
--exec_prefix=${exec_prefix} \
--bindir=${bindir} \
--sbindir=${sbindir} \
--libexecdir=${libexecdir} \
--datadir=${datadir} \
--sysconfdir=${sysconfdir} \
--sharedstatedir=${sharedstatedir} \
--localstatedir=${localstatedir} \
--libdir=${libdir} \
--includedir=${includedir} \
--oldincludedir=${oldincludedir} \
--infodir=${infodir} \
--mandir=${mandir} \
${EXTRA_OECONF} \
$@"
oenote "Running $cfgcmd..."
$cfgcmd || oefatal "oe_runconffailed"
else
oefatal "no configure script found"
fiERROR: function
do_configurefailed
ERROR: log data follows(
/opt/local/oe/tmp/work/ppc405-angstrom-linux/opencv-1.0.0-r2/temp/log.do_configure.24130) |/opt/local/oe/tmp/work/ppc405-angstrom-linux/opencv-1.0.0-r2/temp/run.do_configure.24130:
line 745:oe_runconf: command not found
NOTE: Task
failed:/opt/local/oe/tmp/work/ppc405-angstrom-linux/opencv-1.0.0-r2/temp/log.do_configure.24130
ERROR: TaskFailed event exception, aborting
ERROR: Build
of/opt/local/oe/openembedded/recipes/opencv/opencv_1.0.0.bbdo_configurefailed
ERROR: Task 5
(/opt/local/oe/openembedded/recipes/opencv/opencv_1.0.0.bb,do_configure) failed
NOTE: Tasks Summary: Attempted 5 tasks of which 5 didn't need to be
rerun and 1 failed.
ERROR: '/opt/local/oe/openembedded/recipes/opencv/opencv_1.0.0.bb'
failedQuoted 6 lines
-------------------------------------------------------------------------------------------------
I would be grateful if somebody would help me to figure out the problem.
CIAO
Ali
Quoted 5 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
IOW what Koen said, you are missing dependencies which wont be built if you use -b
you are better off doing bitbake opencv this will also build dependencies for you.
-Khem
How to put generated shared lib into the final output image of OE
Hi again,
Thanks to Koen and Khem. I have built libraries for openCV and ACE. The next step would be to add those generated libraries to final image, therefore later our application programs would use them as shared libraries. Refer to page#21 of usermanual.pdf, I have inserted this line to my distro conf file:
ASSUME_SHLIBS += "libACE.so:ace-5.6.8 libcv.so.2:opencv-1.0.0 libcxcore.so.2:opencv-1.0.0 libcvaux.so.2:opencv-1.0.0 libml.so.2:opencv-1.0.0"
But, as I have already checked inside files-in-image.txt, still those libraries are missing.
Also, as an alternative approach, I have modified image bb file like this:
OPENCV_INSTALL ?= "opencv"ACE_INSTALL ?= "ace"
DEPENDS = "\
... \
${OPENCV_INSTALL} \
${ACE_INSTALL} \
... \RDEPENDS = "\
${ACE_INSTALL} \
${ACE_INSTALL}"but, still it didn't work. In the last chance, again I have changed the image bb file as follows:
IMAGE_INSTALL = "\
...
${OPENCV_INSTALL} \
${ACE_INSTALL} \
"This time bitbake complains with such error:
--------------------------------------------------------------------------------------------------------
.
.
.
| + ln -s opkg /opt/local/oe/tmp/rootfs/etc/ipkg | + ln -s opkg /opt/local/oe/tmp/rootfs/usr/lib/ipkg | + log_check rootfs | + set +x | log_check: Using /opt/local/oe/tmp/work/xilinx-ml403-angstrom-linux/picsy-image-1.0-r0/temp/log.do_rootfs.1487 as logfile | log_check: There were error messages in the logfile | log_check: Matched keyword: [Cannot find package] | Collected errors: | * Cannot find package opencv. | * Cannot find package ace. | + export D=/opt/local/oe/tmp/rootfs |
NOTE: Task
failed: /opt/local/oe/tmp/work/xilinx-ml403-angstrom-linux/picsy-image-1.0-r0/temp/log.do_rootfs.1487
ERROR: TaskFailed event exception, aborting
ERROR: Build of /opt/local/oe/openembedded/recipes/images/picsy-image.bbdo_rootfs failed
ERROR: Task 10
(/opt/local/oe/openembedded/recipes/images/picsy-image.bb, do_rootfs)
failed
NOTE: Tasks Summary: Attempted 2282 tasks of which 2282 didn't need to
be rerun and 1 failed.
ERROR: '/opt/local/oe/openembedded/recipes/images/picsy-image.bb' failed
--------------------------------------------------------------------------------------------------------
As far as I could understand from user manual, maybe the solution would be "8.14. Staging: Making includes and libraries available for building" or "8.16. Installation scripts: Running scripts during package install and/or removal", but I am not sure and get confused!
I don't know how to find a way for this issue. Any help is highly appreciated.
Cheers
Ali
Re: How to put generated shared lib into the final output image of OE
Hi,
To solve the problem, I have inserted some new lines to the picsy-image.bb file as follows:
--------------------------------------------------------------------------------------------------------
picsy_rootfs_postprocess() {
oe_libinstall -so libACE ${IMAGE_ROOTFS}/usr/lib
oe_libinstall -so libcv ${IMAGE_ROOTFS}/usr/lib
oe_libinstall -so libcvaux ${IMAGE_ROOTFS}/usr/lib
oe_libinstall -so libcxcore ${IMAGE_ROOTFS}/usr/lib
oe_libinstall -so libhighgui ${IMAGE_ROOTFS}/usr/lib
oe_libinstall -so libml ${IMAGE_ROOTFS}/usr/lib
oe_libinstall -so libjpeg ${IMAGE_ROOTFS}/usr/lib
oe_libinstall -so libtiff ${IMAGE_ROOTFS}/usr/lib
oe_libinstall -so libpng12 ${IMAGE_ROOTFS}/usr/lib
oe_libinstall -so libstdc++ ${IMAGE_ROOTFS}/usr/lib
rm -f ${IMAGE_ROOTFS}/usr/lib/*.la
rm -f ${IMAGE_ROOTFS}/usr/lib/*.a
}ROOTFS_POSTPROCESS_COMMAND += "picsy_rootfs_postprocess"
--------------------------------------------------------------------------------------------------------
Maybe this way is not nice, but now everything is cool and openCV is functioning. Is there any other method to force OE to approach this goal?
Regards
Ali