* Failed to build opencv_1.0.0.bb recipe
@ 2009-10-01 11:41 Ali Akbar Zarezadeh
2009-10-01 13:16 ` Koen Kooi
0 siblings, 1 reply; 5+ messages in thread
From: Ali Akbar Zarezadeh @ 2009-10-01 11:41 UTC (permalink / raw)
To: openembedded-devel
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"
fi
ERROR: 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.bb
do_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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Failed to build opencv_1.0.0.bb recipe
2009-10-01 11:41 Failed to build opencv_1.0.0.bb recipe Ali Akbar Zarezadeh
@ 2009-10-01 13:16 ` Koen Kooi
2009-10-01 16:36 ` Khem Raj
0 siblings, 1 reply; 5+ messages in thread
From: Koen Kooi @ 2009-10-01 13:16 UTC (permalink / raw)
To: openembedded-devel
Don't use -b unless you know what you are doing
On 01-10-09 13:41, Ali Akbar Zarezadeh wrote:
> 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"
> fi
>
> ERROR: 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.bb
> do_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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Failed to build opencv_1.0.0.bb recipe
2009-10-01 13:16 ` Koen Kooi
@ 2009-10-01 16:36 ` Khem Raj
2009-10-01 21:16 ` How to put generated shared lib into the final output image of OE Ali Akbar Zarezadeh
0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2009-10-01 16:36 UTC (permalink / raw)
To: openembedded-devel
On Thu, Oct 1, 2009 at 6:16 AM, Koen Kooi <k.kooi@student.utwente.nl> wrote:
> Don't use -b unless you know what you are doing
>
> On 01-10-09 13:41, Ali Akbar Zarezadeh wrote:
>>
>> 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"
>> fi
>>
>> ERROR: 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.bb
>> do_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
>
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread* How to put generated shared lib into the final output image of OE
2009-10-01 16:36 ` Khem Raj
@ 2009-10-01 21:16 ` Ali Akbar Zarezadeh
2009-10-02 20:26 ` Ali Akbar Zarezadeh
0 siblings, 1 reply; 5+ messages in thread
From: Ali Akbar Zarezadeh @ 2009-10-01 21:16 UTC (permalink / raw)
To: openembedded-devel
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.bb
do_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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: How to put generated shared lib into the final output image of OE
2009-10-01 21:16 ` How to put generated shared lib into the final output image of OE Ali Akbar Zarezadeh
@ 2009-10-02 20:26 ` Ali Akbar Zarezadeh
0 siblings, 0 replies; 5+ messages in thread
From: Ali Akbar Zarezadeh @ 2009-10-02 20:26 UTC (permalink / raw)
To: openembedded-devel
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-10-02 20:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-01 11:41 Failed to build opencv_1.0.0.bb recipe Ali Akbar Zarezadeh
2009-10-01 13:16 ` Koen Kooi
2009-10-01 16:36 ` Khem Raj
2009-10-01 21:16 ` How to put generated shared lib into the final output image of OE Ali Akbar Zarezadeh
2009-10-02 20:26 ` Ali Akbar Zarezadeh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox