issue with packages having name linux [message #557788] |
Wed, 08 September 2010 18:37  |
Eclipse User |
|
|
|
Champs,
I have a package ti.omx.demos.vc.linux. I use Program.global.<config_variables> in the executable of this package. I am using CodeSourcery compiler and compiling for GCArmv5T target.
I get compile errors as unable to include the xdc_cfg_header.
It appears this is because definition of xdc_cfg_header is as below
-Dxdc_cfg__header__='ti/omx/demos/vc/1 /package/cfg/bin/host_platforms_arm/debug/omxDemoVc3_A8_xv5T .h'
Correct defintion would be
-Dxdc_cfg__header__='ti/omx/demos/vc/linux /package/cfg/bin/host_platforms_arm/debug/omxDemoVc3_A8_xv5T .h'
The word "linux" is getting replaced by "1" for some reason .
I am using xdc version xdctools_3_20_01_51.
Please advice on how to resolve the issue. I prefer not to change the package name to solve the issue if possible.
Regards
Badri
|
|
|
|
|
|
|
Re: issue with packages having name linux [message #557986 is a reply to message #557788] |
Thu, 09 September 2010 13:17   |
Eclipse User |
|
|
|
Badri,
It's a horrible hack, but another workaround is to #undef linux just before including xdc/cfg/global.h, and #define it again just after. Would work as long as nothing in the generated include file actually requires "linux" to be defined.
Chris,
I believe that's correct, this variant of the problem is mostly limited to packages that build executables, because those are mostly the ones that #include global.h. User-built libraries could too, technically, if they wanted to compile in details of a configuration.
The same issue applies to the target types header included by xdc/std.h, and this would affect more packages. I'm looking to see whether there's any fix we could implement in a future release, not sure yet.
Jon
|
|
|
|
Powered by
FUDForum. Page generated in 0.04707 seconds