I'm stuck on trying to rebuild my NDK 2.20.03.24. I followed the "Rebuilding the NDK core" guide at http://processors.wiki.ti.com/index.php/Rebuilding_the_NDK_Core.
Everything is great until the actual Project>Rebuild All, when I get this error:
Error launching builder (C:/ccsv4/xdctools_3_20_06_81/xdc all )
(Exec error:The directory name is invalid.
)
This path most definitely works and I can copy/paste the path from the error msg into a command shell and run the xdc there without issue.
In the Problems windows in CCS 4, I see:
Severity and Description Path Resource Location Creation Time Id
Error launching external scanner info generator (gcc -E -P -v -dD C:/work/fourth_workspace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp) ndk_core_build Unknown 1294265415391 0
I am not sure if this is related to the invalid dirname error.
I made sure the NDK itself is in a pathname that has no spaces, although some of the tools directories have spaces (this is also the case in the aforementioned guide).
I am using CCS v4.2.1 on WinXP.
Here is my config.bld, if that helps:
----------
//var bios5path = "C:/Program Files/Texas Instruments/bios_5_41_05_20/packages";
var bios6path = "C:/Program Files (x86)/Texas Instruments/bios_6_31_02_23/packages";
/* location of Code Generation Tools */
var rootDir = "C:/Program\ Files\ (x86)/Texas\ Instruments/ccsv4/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";
tiTargets.C674.rootDir = rootDir;
tiTargets.C674.ccOpts.suffix = c6xSuffix;
tiTargets.C674_big_endian.rootDir = rootDir;
tiTargets.C674_big_endian.ccOpts.suffix = "-mv6740 " + 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 ";
Build.targets = [
tiTargets.C64P,
// tiTargets.C64P_big_endian,
// tiTargets.C674,
// tiTargets.C674_big_endian,
// 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";
-----
Peter