Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Change the contents of the Code Composer Studio ".cproject" file(Problem with Build Definitions !)
Change the contents of the Code Composer Studio ".cproject" file [message #1095561] Tue, 27 August 2013 08:10
lavenu patrick is currently offline lavenu patrickFriend
Messages: 1
Registered: August 2013
Junior Member

I'm using CCS v5.1.1 from Texas Instrument and would like to modify automatically (without IHM) some specificities of my CCS project : for example : endianess, toolchain, target processor, ... I need to change the contents of the ".cproject" file by myself.
To do that, I decided to develop an RCP plug in project for eclipse. I download the indigo eclipse version witch is compatible with CCS v5.1.1.
I created my RCP plug in project and wrote a java application file. An extract of my source code is :

package myprojectpluginrcp;

import org.eclipse.cdt.core.model.CoreModel;
import org.eclipse.cdt.core.settings.model.ICConfigurationDescription;
import org.eclipse.cdt.core.settings.model.ICProjectDescription;
import org.eclipse.cdt.managedbuilder.core.*;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.ResourcesPlugin;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
IProject[] projects= ResourcesPlugin.getWorkspace().getRoot().getProjects();
For(IProject prj:projects)
IManagedBuildInfo buildInfo = ManagedBuildManager.getBuildInfo(prj);
// change things in the buildInfo
ManagedBuildManager.saveBuildInfo(prj, true);
The problem is then when I execute my RCP plug in and especially the ManagedBuildManager.getBuildInfo(prj) function , I get this error :
!ENTRY org.eclipse.cdt.managedbuilder.core 4 0 2013-08-09 14:39:32.263
!MESSAGE Orphaned CDT build configuration [com.ti.ccstudio.buildDefinitions.C6000.Default.680515475]: parent extension cfg [com.ti.ccstudio.buildDefinitions.C6000.Default] not found
at org.eclipse.cdt.managedbuilder.core.ManagedBuilderCorePlugin.error(
at org.eclipse.cdt.managedbuilder.internal.core.Configuration.loadFromProject(
at org.eclipse.cdt.managedbuilder.internal.core.Configuration.<init>(
at org.eclipse.cdt.managedbuilder.internal.dataprovider.ConfigurationDataProvider.load(
at org.eclipse.cdt.managedbuilder.internal.dataprovider.ConfigurationDataProvider.loadConfiguration(
at org.eclipse.cdt.internal.core.settings.model.CProjectDescriptionManager.loadData(
at org.eclipse.cdt.internal.core.settings.model.CConfigurationDescriptionCache.loadData(
at org.eclipse.cdt.internal.core.settings.model.CProjectDescription.loadDatas(
at org.eclipse.cdt.internal.core.settings.model.xml.XmlProjectDescriptionStorage.loadProjectDescription(
at org.eclipse.cdt.internal.core.settings.model.xml.XmlProjectDescriptionStorage.getProjectDescription(
at org.eclipse.cdt.internal.core.settings.model.CProjectDescriptionManager.getProjectDescriptionInternal(
at org.eclipse.cdt.internal.core.settings.model.CProjectDescriptionManager.getProjectDescription(
at org.eclipse.cdt.managedbuilder.core.ManagedBuildManager.findBuildInfo(
at org.eclipse.cdt.managedbuilder.core.ManagedBuildManager.getBuildInfo(
at org.eclipse.cdt.managedbuilder.core.ManagedBuildManager.getBuildInfo(
at mypluginrcp.Application.start(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(
at org.eclipse.equinox.launcher.Main.basicRun(
at org.eclipse.equinox.launcher.Main.main(
Managed Build system manifest file error: Option com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.108316756 uses a null category that is invalid in its context. The option was ignored.
Managed Build system manifest file error: Option com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1365497743 uses a null category that is invalid in its context. The option was ignored.

Problem with "build definitions" ? which is coherent because I have no relation with CCS java code in my eclipse version but I don't know how to make the link ? maybe I have to configure the extensions/ extensions point with com.ti.ccstudio.Buildefinitions.core but I don't know how ?
I try to import CCS v5.1.1 java code in my eclipse version (using import>General>existing Projects into Workspace) but it doesn't work : conflict dependency .
I tried also the opposite operation : develop my RCP plug in my CCS v5.1.1 eclipse version but I can't install eclipse java Development Tools : conflict dependency.
How could I access to CCS build definitions within my indigo eclipse version ?

Thank you very much for your help.



Previous Topic:Code analysis error: Function '__sync_bool_compare_and_swap' could not be resolved
Next Topic:Bug with Replace native environment with specified one
Goto Forum:

Current Time: Thu Jun 21 01:11:32 GMT 2018

Powered by FUDForum. Page generated in 0.02018 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top