Hi, have tried to build the ndk according to the wiki Rebuilding the NDK Core http://processors.wiki.ti.com/index.php/Rebuilding_the_NDK_Core.
Got this error: Import failed because its compiler definition is not available (Please contact support).
This happens when I try to import Existing CCS/CCE Eclipse project.
Tried an alternative import existing project into workspace, cannot build due to non-existant package.bld.
Can someone give me some ideas on howto proceed with this
Enclosing the modified Config.bld in the ndk:
/*
* ======== config.bld ========
* This script is run prior to all build scripts. It initializes the
* rootDir configuration parameter of all supported targets.
*/
/*
* must define Code Generation Tools and BIOS installation locations here
*
* These variables are used to find the correct BIOS header files during a
* rebuild of the NDK libraries. At least one of these variables must be
* defined, depending on whether or not you are building for DSP/BIOS 5.x
* or SYS/BIOS 6.x.
*
* Note: when defining the path to your BIOS installation, you should use the
* forward slash ("/") character for path separation.
*
* For example, if you have installed SYS/BIOS 6 in the following
* location:
*
* C:/Program Files/Texas Instruments/bios_6_30_00_28
*
* Then you should specify bios6path as follows:
*
* // note use of "/" as path seperator:
* var bios6path = "C:/Program Files/Texas Instruments/bios_6_30_00_28/packages";
*
* Default build is for SYS/BIOS 6.30.00.28
*/
//var bios5path = "C:/Program Files/Texas Instruments/bios_5_41_05_20/packages";
var bios5path = C:/ti/bios_5_41_11_38
//var bios6path = "C:/Program Files/Texas Instruments/bios_6_30_00_28/packages";
/* location of Code Generation Tools */
var rootDir = "C:/ti/ccsv5/tools/compiler/c6000"
// var rootDirArm = "C:/Program\ Files/Texas\ Instruments/ccsv4/tools/compiler/tms470"
var tiTargets = xdc.loadPackage('ti.targets');
//var elfTargets = xdc.loadPackage('ti.targets.elf');
//var armElfTargets = xdc.loadPackage('ti.targets.arm.elf');
var c6xSuffix = "-mi10 -mo -pdr -pden -pds=238 -pds=880 -pds1110 ";
/* TI targets we use */
tiTargets.C64P.rootDir = rootDir;
tiTargets.C64P.ccOpts.prefix = "-mv6400+ -o2 -ms2";
//tiTargets.C64P_big_endian.rootDir = rootDir;
//tiTargets.C64P_big_endian.ccOpts.prefix = "-mv6400+ -o2 -ms2 -DBIGENDIAN ";
//tiTargets.C674.rootDir = rootDir;
//tiTargets.C674.ccOpts.suffix = c6xSuffix;
/* ELF targets */
//armElfTargets.Arm9.rootDir = rootDirArm;
//armElfTargets.Arm9.ccOpts.prefix += " -ms";
//armElfTargets.A8F.rootDir = rootDirArm;
//armElfTargets.A8F.ccOpts.prefix += " -ms";
//elfTargets.C66.rootDir = rootDir;
//elfTargets.C66.ccOpts.suffix = c6xSuffix;
//elfTargets.C66.ccOpts.suffix += "--embed_inline_assembly ";
//elfTargets.C66_big_endian.rootDir = rootDir;
//elfTargets.C66_big_endian.ccOpts.suffix = c6xSuffix;
//elfTargets.C66_big_endian.ccOpts.suffix += "--embed_inline_assembly -DBIGENDIAN ";
Build.targets = [
tiTargets.C64P,
// tiTargets.C64P_big_endian,
// tiTargets.C674,
// armElfTargets.Arm9,
// armElfTargets.A8F,
// elfTargets.C66,
// elfTargets.C66_big_endian,
];
var commonDir = "ti/ndk/buildutils/";
var ndkPath = "$(PKGROOT)/ti/ndk/";
/* Configure the NDK Release Version Information */
var ndkReleaseVersion = [2,20,00];
/* Include Path */
var ndkPathInclude = " -i" + ndkPath + "/inc" + " -i" + ndkPath + "/inc/tools";