Compiler can't find locally included "Header.h"

Home Forums General Compiler can't find locally included "Header.h"

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #2781
    Lucas Li
    Participant

    Hi

    I’m trying to compile c code project using bitbake for the mtcdp modem. I have placed the source code (headers + c files) and the .bb file in the corecdp-2.0.2/user-layer/recipes/myproject folder. When I do bitbake -b myproject.bb file, the compiler can’t find the locally included header files “header.h”

    Here is my .bb file

    DESCRIPTION = “MppTransApp”

    LICENSE = “GPL”

    SRC_URI = “file://log.c

    file://mppbase64.c

    file://mppecrmsglib.c

    file://mpputil.c

    file://mppxxtea.c

    file://pinpad.c

    file://service.c

    file://sslthread.c

    file://transsl.c

    file://util.c”

    S = “${WORKDIR}”

    do_compile() {

    ${CC} ${CFLAGS} ${LDFLAGS} -o mpptrans pinpad.c log.c config.c transsl.c sslthread.c mppbase64.c mppxxtea.c mpputil.c mppecrmsglib.c mpptransapp.c service.c util.c

    }

    do_install() {

    install -d ${D}${bindir}

    install -m 755 mpptrans ${D}${bindir}

    }

    Here is the output when I bitbake the .bb

    user@ubuntu:~/Multitech/corecdp-2.0.2/user-layer/recipes/mpptransapp$ bitbake -b mpptransapp_1.0.0.bb

    Build Configuration:

    BB_VERSION = “1.12.0”

    METADATA_BRANCH = “<unknown>”

    METADATA_REVISION = “56a79a3”

    TARGET_ARCH = “arm”

    TARGET_OS = “linux-gnueabi”

    MACHINE = “mtcdp”

    DISTRO = “corecdp”

    DISTRO_VERSION = “2.0.2”

    TARGET_FPU = “soft”

    NOTE: Preparing runqueue

    NOTE: Executing RunQueue Tasks

    NOTE: Running task 7 of 19 (ID: 13, /home/user/Multitech/corecdp-2.0.2/user-layer/recipes/mpptransapp/mpptransapp_1.0.0.bb, do_compile)

    NOTE: package mpptransapp-1.0.0-r0: task do_compile: Started

    ERROR: Logfile of failure stored in: /home/user/Multitech/corecdp-2.0.2/build/tmp/work/armv5te-corecdp-linux-gnueabi/mpptransapp-1.0.0-r0/temp/log.do_compile.12247

    Log data follows:

    | + do_compile

    | + arm-corecdp-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mno-thumb –sysroot=/home/user/Multitech/corecdp-2.0.2/build/tmp/sysroots/armv5te-corecdp-linux-gnueabi -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb2 -I/home/user/Multitech//home/user/Multitech/corecdp-2.0.2/user-layer/recipes/mpptransapp/ -Wl,-O1 -Wl,–hash-style=gnu -o mpptrans pinpad.c log.c config.c transsl.c sslthread.c mppbase64.c mppxxtea.c mpputil.c mppecrmsglib.c mpptransapp.c service.c util.c

    | pinpad.c:4:20: fatal error: pinpad.h: No such file or directory

    | compilation terminated.

    | log.c:9:17: fatal error: log.h: No such file or directory

    | compilation terminated.

    | config.c:5:20: fatal error: config.h: No such file or directory

    | compilation terminated.

    | transsl.c:2:21: fatal error: transsl.h: No such file or directory

    | compilation terminated.

    | sslthread.c:26:23: fatal error: sslthread.h: No such file or directory

    | compilation terminated.

    | mppbase64.c:13:23: fatal error: mppbase64.h: No such file or directory

    | compilation terminated.

    | mppxxtea.c:15:22: fatal error: mppxxtea.h: No such file or directory

    | compilation terminated.

    | mpputil.c:15:26: fatal error: mppnvdefines.h: No such file or directory

    | compilation terminated.

    | mppecrmsglib.c:16:26: fatal error: mppecrmsglib.h: No such file or directory

    | compilation terminated.

    | mpptransapp.c:52:21: fatal error: transsl.h: No such file or directory

    | compilation terminated.

    | service.c:24:17: fatal error: log.h: No such file or directory

    | compilation terminated.

    | util.c:25:17: fatal error: log.h: No such file or directory

    | compilation terminated.

    NOTE: package mpptransapp-1.0.0-r0: task do_compile: Failed

    ERROR: Function ‘do_compile’ failed (see /home/user/Multitech/corecdp-2.0.2/build/tmp/work/armv5te-corecdp-linux-gnueabi/mpptransapp-1.0.0-r0/temp/log.do_compile.12247 for further information)

    ERROR: Task 13 (/home/user/Multitech/corecdp-2.0.2/user-layer/recipes/mpptransapp/mpptransapp_1.0.0.bb, do_compile) failed with exit code ‘1’

    Any feed back is appreciated

    thanks

    Lucas

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.