Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

error when compile the examples using xdctools

$
0
0

Hello,

I am working with dm8168evm and ezsdk5.05.

I have modified saLoopBack example(using cmem as video buffer) and combined it with video_copy example app in codec engine. After that I modified package.bld file.

Changes list below:

    var lld = false;          //line 186

    var ezsdk="/home/ccn/ti-ezsdk_dm816x-evm_5_05_01_04";
    var kerneldir=ezsdk+"/board-support/linux-2.6.37-psp04.04.00.01";
    var incsopt = "-I"+kerneldir+"/include -I"+kerneldir+"/arch/arm/include/ -I"+kerneldir+"/arch/arm/plat-omap/include/";

    Pkg.addExecutable(name, targ, platform, {
        incs: incsopt,
        copts: compileOpts,
        profile: theProf,
        cfgScript: cfg + ".cfg",
        cfgArgs: cfgArgs + "lld : " + lld  + "}",
    }).addObjects(srcs);


    if ((cfg.match(/local/)) &&
            (targ.os == undefined) && // Only build lld examples for BIOS
            (!(targ.suffix.match(/^e/))) &&
            (!platform.match(/evm6472/)) && (!platform.match(/DM8148/)) &&
            (!platform.match(/TI816X/))) {
        /* No EDMA3 LLD build for elf or 6472 or DM8168 yet !! */
        lld = true;

        Pkg.addExecutable(name + "_lld", targ, platform, {
        incs: incsopt,
            copts: compileOpts,
            profile: theProf,
            cfgArgs: cfgArgs + "lld : " + lld  + "}",
            cfgScript: cfg + ".cfg"
        }).addObjects(srcs);

    }

Nothing changed else.

The title lines of app.c is

#include <xdc/std.h>
#include <xdc/runtime/Assert.h>
#include <xdc/runtime/Diags.h>
#include <xdc/runtime/Log.h>

#include <ti/sdo/ce/Engine.h>
#include <ti/sdo/ce/osal/Memory.h>
//#include <ti/sdo/ce/video/viddec.h>
#include <ti/sdo/ce/video/videnc.h>

#include <stdlib.h>

/*==============================*/
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <errno.h>
#include <string.h>
#include <linux/videodev2.h>
#include <linux/ti81xxhdmi.h>
#include <linux/ti81xxvin.h>

When I run the command gmake, it broke with info list below:

======== .executables [/home/ccn/codecexample/examples/ti/sdo/ce/examples/apps/video_copy] ========
rm -f package/cfg/bin/ti_platforms_evmTI816X/app_local/app.oe674
#
# cle674 app.c ...
/home/ccn/ti-ezsdk_dm816x-evm_5_05_01_04/dsp-devkit/cgt6x_7_3_1/bin/cl6x -c  -qq -pdsw225 -mv6740 --abi=eabi -eo.oe674 -ea.se674  -pdr -pden -pds=880 -pds=238 -pds452 -pds195 -mi10 -mo -g  -D_DEBUG_=1  -Dxdc_cfg__header__='ti/sdo/ce/examples/apps/video_copy/package/cfg/bin/ti_platforms_evmTI816X/app_local_pe674.h'  -Dxdc_target_name__=C674 -Dxdc_target_types__=ti/targets/elf/std.h -Dxdc_bld__profile_debug -Dxdc_bld__vers_1_0_7_3_1 --symdebug:dwarf  -I/home/ccn/ti-ezsdk_dm816x-evm_5_05_01_04/board-support/linux-2.6.37-psp04.04.00.01/include -I/home/ccn/ti-ezsdk_dm816x-evm_5_05_01_04/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/ -I/home/ccn/ti-ezsdk_dm816x-evm_5_05_01_04/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/plat-omap/include/ -I. -I/home/ccn/codecexample/examples/ti/sdo/ce/examples/apps/video_copy/../../../../../.. -I/home/ccn/ti-ezsdk_dm816x-evm_5_05_01_04/component-sources/xdais_7_22_00_03/packages -I/home/ccn/ti-ezsdk_dm816x-evm_5_05_01_04/component-sources/bios_6_33_05_46/packages -I/home/ccn/ti-ezsdk_dm816x-evm_5_05_01_04/component-sources/linuxutils_3_22_00_02/packages -I/home/ccn/ti-ezsdk_dm816x-evm_5_05_01_04/component-sources/syslink_2_20_00_14/packages -I/home/ccn/ti-ezsdk_dm816x-evm_5_05_01_04/component-sources/osal_1_22_01_09/packages -I/home/ccn/ti-ezsdk_dm816x-evm_5_05_01_04/component-sources/framework_components_3_22_01_07/packages -I/home/ccn/ti-ezsdk_dm816x-evm_5_05_01_04/component-sources/edma3lld_02_11_05_02/packages -I/home/ccn/ti-ezsdk_dm816x-evm_5_05_01_04/component-sources/ipc_1_24_03_32/packages -I/home/ccn/ti-ezsdk_dm816x-evm_5_05_01_04/component-sources/codec_engine_3_22_01_06/packages -I/home/ccn/ti-ezsdk_dm816x-evm_5_05_01_04/component-sources/xdctools_3_23_03_53/packages -I../../../../../.. -I/home/ccn/ti-ezsdk_dm816x-evm_5_05_01_04/dsp-devkit/cgt6x_7_3_1/include -fs=./package/cfg/bin/ti_platforms_evmTI816X/app_local -fr=./package/cfg/bin/ti_platforms_evmTI816X/app_local -fc app.c
"app.c", line 15: fatal error #5: could not open source file "unistd.h"
1 fatal error detected in the compilation of "app.c".
Compilation terminated.

>> Compilation failure
gmake[1]: *** [package/cfg/bin/ti_platforms_evmTI816X/app_local/app.oe674] Error 1
gmake: *** [/home/ccn/codecexample/examples/ti/sdo/ce/examples/apps/video_copy,.executables] Error 2
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/ccn/codecexample/examples/ti/sdo/ce/examples/apps/video_copy'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/home/ccn/codecexample/examples/ti/sdo/ce/examples/apps'
gmake: *** [apps] Error 2

I dont know the reason why it breaks,but main_native.c(it also have the line #include <unistd.h>) not.

Could anyone tell me how to modify those configure files?

Any help is appreciated.

Thanks,

echo yang.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>