Hello all! I want to build a *ipk file for my Xsens MTi-G(IMU). and wrote the .bb file, when I bitbake it, it shows some errors as following:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
acrb3@acrb3:~$ bitbake -b overo-oe/org.openembedded.dev/recipes/cmt/cmt_1.1.2.bb
Build Configuration:
BB_VERSION        = "1.8.18"
METADATA_BRANCH   = "overo"
METADATA_REVISION = "5e78153"
TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "overo"
DISTRO            = "angstrom"
DISTRO_VERSION    = "2010.7-test-20110301"
TARGET_FPU        = "hard"

NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 1 of 17 (ID: 10, /home/acrb3/overo-oe/org.openembedded.dev/recipes/cmt/cmt_1.1.2.bb, do_setscene)
NOTE: Running task 2 of 17 (ID: 8, /home/acrb3/overo-oe/org.openembedded.dev/recipes/cmt/cmt_1.1.2.bb, do_fetch)
NOTE: Running task 3 of 17 (ID: 0, /home/acrb3/overo-oe/org.openembedded.dev/recipes/cmt/cmt_1.1.2.bb, do_unpack)
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/cmt1.cpp to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/cmt1.h to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/cmt2.cpp to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/cmt2.h to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/cmt3.cpp to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/cmt3.h to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/cmtdef.h to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/cmtf.h to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/cmtmessage.cpp to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/cmtmessage.h to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/cmtpacket.cpp to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/cmtpacket.h to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/cmtscan.cpp to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/cmtscan.h to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/example_linux.cpp to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/example_linux.h to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/pstdint.h to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/xsens_fifoqueue.h to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/xsens_janitors.h to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/xsens_list.cpp to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/xsens_list.h to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/xsens_list.hpp to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/xsens_std.cpp to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/xsens_std.h to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/xsens_time.cpp to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Unpacking overo-oe/org.openembedded.dev/recipes/cmt/files/xsens_time.h to overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/
NOTE: Running task 4 of 17 (ID: 1, /home/acrb3/overo-oe/org.openembedded.dev/recipes/cmt/cmt_1.1.2.bb, do_patch)
NOTE: Running task 5 of 17 (ID: 11, /home/acrb3/overo-oe/org.openembedded.dev/recipes/cmt/cmt_1.1.2.bb, do_configure)
NOTE: Running task 6 of 17 (ID: 12, /home/acrb3/overo-oe/org.openembedded.dev/recipes/cmt/cmt_1.1.2.bb, do_qa_configure)
NOTE: Running task 7 of 17 (ID: 13, /home/acrb3/overo-oe/org.openembedded.dev/recipes/cmt/cmt_1.1.2.bb, do_compile)
ERROR: function do_compile failed
ERROR: log data follows (/home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/temp/log.do_compile.3164)
| In file included from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmt1.h:23,
|                  from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmt1.cpp:25:
| /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmtdef.h:1166: warning: 'cdecl' attribute directive ignored
| In file included from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmt1.h:23,
|                  from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmt2.h:24,
|                  from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmt2.cpp:25:
| /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmtdef.h:1166: warning: 'cdecl' attribute directive ignored
| In file included from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmt1.h:23,
|                  from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmt2.h:24,
|                  from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmt3.h:24,
|                  from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmt3.cpp:25:
| /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmtdef.h:1166: warning: 'cdecl' attribute directive ignored
| In file included from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmt3.cpp:27:
| /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/xsens_janitors.h:187: warning: 'cdecl' attribute directive ignored
| /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/xsens_janitors.h:218: warning: 'cdecl' attribute directive ignored
| /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/xsens_janitors.h:251: warning: 'cdecl' attribute directive ignored
| /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/xsens_janitors.h:284: warning: 'cdecl' attribute directive ignored
| /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/xsens_janitors.h:317: warning: 'stdcall' attribute directive ignored
| In file included from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmtmessage.h:24,
|                  from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmtmessage.cpp:20:
| /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmtdef.h:1166: warning: 'cdecl' attribute directive ignored
| In file included from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmtpacket.h:30,
|                  from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmtpacket.cpp:19:
| /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmtdef.h:1166: warning: 'cdecl' attribute directive ignored
| In file included from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmt1.h:23,
|                  from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmt2.h:24,
|                  from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmt3.h:24,
|                  from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmtscan.cpp:37:
| /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmtdef.h:1166: warning: 'cdecl' attribute directive ignored
| In file included from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/xsens_list.h:37,
|                  from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/xsens_list.hpp:27,
|                  from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmtscan.h:30,
|                  from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmtscan.cpp:38:
| /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/xsens_janitors.h:187: warning: 'cdecl' attribute directive ignored
| /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/xsens_janitors.h:218: warning: 'cdecl' attribute directive ignored
| /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/xsens_janitors.h:251: warning: 'cdecl' attribute directive ignored
| /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/xsens_janitors.h:284: warning: 'cdecl' attribute directive ignored
| /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/xsens_janitors.h:317: warning: 'stdcall' attribute directive ignored
| In file included from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/xsens_list.hpp:27,
|                  from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmtscan.h:30,
|                  from /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/cmtscan.cpp:38:
| /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/xsens_list.h:195: warning: 'cdecl' attribute directive ignored
| In file included from example_linux.cpp:9:
| cmtdef.h:1166: warning: 'cdecl' attribute directive ignored
| In file included from xsens_list.h:37,
|                  from example_linux.cpp:11:
| xsens_janitors.h:187: warning: 'cdecl' attribute directive ignored
| xsens_janitors.h:218: warning: 'cdecl' attribute directive ignored
| xsens_janitors.h:251: warning: 'cdecl' attribute directive ignored
| xsens_janitors.h:284: warning: 'cdecl' attribute directive ignored
| xsens_janitors.h:317: warning: 'stdcall' attribute directive ignored
| In file included from example_linux.cpp:11:
| xsens_list.h:195: warning: 'cdecl' attribute directive ignored
| /home/acrb3/overo-oe/tmp/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnueabi/bin/ld: /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/: No such file: File format not recognized
| collect2: ld returned 1 exit status
NOTE: Task failed: /home/acrb3/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/cmt-1.1.2-r1/temp/log.do_compile.3164
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/acrb3/overo-oe/org.openembedded.dev/recipes/cmt/cmt_1.1.2.bb do_compile failed
ERROR: Task 13 (/home/acrb3/overo-oe/org.openembedded.dev/recipes/cmt/cmt_1.1.2.bb, do_compile) failed
NOTE: Tasks Summary: Attempted 6 tasks of which 0 didn't need to be rerun and 1 failed.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 And this is my .bb file:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DESCRIPTION = "cmt"
PR = "r1"
OBJSTATIC = "cmt1.o cmt2.o cmt3.o cmtmessage.o cmtpacket.o cmtscan.o xsens_std.o xsens_time.o"
DEPENDS = ""


SRC_URI ="file://cmt1.cpp\
    file://cmt1.h\
    file://cmt2.cpp\
    file://cmt2.h\
    file://cmt3.cpp\
    file://cmt3.h\
    file://cmtdef.h\
    file://cmtf.h\
    file://cmtmessage.cpp\
    file://cmtmessage.h\
    file://cmtpacket.cpp\
    file://cmtpacket.h\
    file://cmtscan.cpp\
    file://cmtscan.h\
    file://example_linux.cpp\
    file://example_linux.h\
    file://pstdint.h\
    file://xsens_fifoqueue.h\
    file://xsens_janitors.h\
    file://xsens_list.cpp\
    file://xsens_list.h\
    file://xsens_list.hpp\
    file://xsens_std.cpp\
    file://xsens_std.h\
    file://xsens_time.cpp\
    file://xsens_time.h"

S = "${WORKDIR}"

do_compile(){
    ${CXX} ${CXXFLAGS}  ${WORKDIR}/cmt1.cpp -c -o cmt1.o
    ${CXX} ${CXXFLAGS}  ${WORKDIR}/cmt2.cpp -c -o cmt2.o
    ${CXX} ${CXXFLAGS}  ${WORKDIR}/cmt3.cpp -c -o cmt3.o
    ${CXX} ${CXXFLAGS}  ${WORKDIR}/cmtmessage.cpp -c -o cmtmessage.o
    ${CXX} ${CXXFLAGS}  ${WORKDIR}/cmtpacket.cpp -c -o cmtpacket.o
    ${CXX} ${CXXFLAGS}  ${WORKDIR}/cmtscan.cpp -c -o cmtscan.o
    ${CXX} ${CXXFLAGS}  ${WORKDIR}/xsens_std.cpp -c -o xsens_std.o
    ${CXX} ${CXXFLAGS}  ${WORKDIR}/xsens_time.cpp -c -o xsens_time.o
    ${CXX} ${CXXFLAGS} ${LFLAGS} ${OBJSTATIC}  ${WORKDIR}/ example_linux.cpp -o example
   
}

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

}
FILES_${PN} = "${bindir}/example"
FILES_${PN}-dev = "${libdir}/lib.a "
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
How could I do now? Is that something to do with adding some DEPENDS to the .bb file?
Anyone could help me?
Thinks!!