Nobody have compil cpp with Bitbake ??

Could anyone help me please ?

Thx

Bastien



2008/4/9, batoub <batoub@gmail.com>:

Hi everybody,

I want to use opencv with my gumstix but i'm not able to compil my program
and I need to use g++ to compil it. I try to make the recipe like this :

DESCRIPTION = "Traitement d'image destiné a la gumstix"

PR = "r8"

DEPENDS = ""

SRC_URI = " \
  file://Timage.c \
"

S = "${WORKDIR}"

do_compile () {
    g++ ${CFLAGS} ${LDFLAGS} -I/usr/local/include/opencv -lcv -lhighgui
-lstdc++ -o Timage Timage.c

}

do_install () {
    install -d ${D}${bindir}/
    install -m 0755 ${S}/Timage ${D}${bindir}/
}

FILES_${PN} = "${bindir}/Timage"



But there is probably a problem with g++ ? Because the error is :
NOTE: package Timage-1.0.0-r8: task do_package: started
arm-angstrom-linux-gnueabi-objcopy: Unable to recognise the format of the
input file
`/home/batoub/gumstix/gumstix-oe/tmp/work/armv5te-angstrom-linux-gnueabi/Timage-1.0.0-r8/image/usr/bin/Timage'


Anyone could Help me please ?

Thank you !
--
View this message in context: http://www.nabble.com/OpenCV-with-gumstix-oe-tp16583022p16583022.html
Sent from the Gumstix mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users