This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM2432: How to auto import and build CCS projects on Ubuntu

Part Number: AM2432
Other Parts Discussed in Thread: CCSTUDIO

Hello expert

I am trying to run CCS on Ubuntu terminal, I have already set the eclipse path and trying to execute this command "eclipse -noSplash -data "/home/workspace/bcs_master" -application com.ti.ccstudio.apps.projectBuild -ccs.projects system -ccs.configuration Debug" , it is giving me this error "Gtk-Message: 16:13:55.968: GtkDialog mapped without a transient parent. This is discouraged". Please help me understand and resolve this.

Thank you.



  • Hello,

    Can you share the log file specified in the error message?

    Also, what version of CCS and Ubuntu are you running?

    Thanks

    ki

  • !SESSION 2022-04-06 23:36:59.184 -----------------------------------------------
    eclipse.buildId=4.14.0.I20191210-0610
    java.version=11.0.14
    java.vendor=Ubuntu
    BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
    Framework arguments: -product org.eclipse.epp.package.java.product -application com.ti.ccstudio.apps.projectCreate -ccs.name -ccs.device
    Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product -data /home/bcs/workspace/bcs_master -application com.ti.ccstudio.apps.projectCreate -ccs.name -ccs.device

    !ENTRY org.eclipse.epp.logging.aeri.ide 2 0 2022-04-06 23:37:02.203
    !MESSAGE Could not resolve module: org.eclipse.epp.logging.aeri.ide [141]
    Unresolved requirement: Import-Package: org.apache.lucene.document; version="[7.1.0,8.0.0)"


    !ENTRY org.eclipse.osgi 4 0 2022-04-06 23:37:02.205
    !MESSAGE Application error
    !STACK 1
    java.lang.RuntimeException: Application "com.ti.ccstudio.apps.projectCreate" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.ant.ui.antRunner, org.eclipse.e4.ui.workbench.swt.E4Application, org.eclipse.e4.ui.workbench.swt.GenTopic, org.eclipse.equinox.app.error, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.EclipseGenerator, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.repository.repo2runnable, org.eclipse.equinox.p2.repository.metadataverifier, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.touchpoint.natives.nativePackageExtractor, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.jdt.apt.core.aptBuild, org.eclipse.jdt.core.JavaCodeFormatter, org.eclipse.jdt.core.JavaIndexer, org.eclipse.oomph.p2.core.RepositoryIntegrityAnalyzer, org.eclipse.oomph.p2.core.RepositoryFinder, org.eclipse.oomph.p2.core.P2Indexer, org.eclipse.oomph.setup.core.SetupArchiver, org.eclipse.ui.ide.workbench.
    at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:252)
    at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:33)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
    ~
    ~
    ~
    (END)

  • Versions- Ubuntu 18.04.6 LTS, CCS 11.1.0
    Command used  bcs@ubuntu:~/workspace/bcs_master/code/make$ eclipse -noSplash -data /home/bcs/workspace/bcs_master -application com.ti.ccstudio.apps.projectCreate -ccs.name -ccs.device

  • Previous command used for the same error- " eclipse -noSplash -data "/home/workspace/bcs_master" -application com.ti.ccstudio.apps.projectBuild -ccs.projects system -ccs.configuration Debug"

  • Can you call the eclipse command using an absolute path?

    Example: 

    [EDITED] See my next post

    Thanks

    ki

  • bcs@ubuntu: <CCS INSTALL DIR>/ccs/eclipse/eclipse -noSplash -data /home/bcs/workspace/bcs_master -application com.ti.ccstudio.apps.projectCreate -ccs.name -ccs.device

    SOrry I gave an incomplete command. It should be like:

    bcs@ubuntu: <CCS INSTALL DIR>/ccs/eclipse/eclipse -noSplash -data /home/bcs/workspace/bcs_master -application com.ti.ccstudio.apps.projectBuild -ccs.projects system -ccs.configuration Debug

    If you wish to build a different project, then replace "system" with the name of the other project in the workspace. Same with the build configuration "Debug"

  • Hi the command is working but it is not importing , is there a command for importing then using this command for building?

  • Hello I have used " bcs@ubuntu:~/workspace/bcs_master$ eclipse -noSplash -data /home/bcs/workspace/bcs-master -application com.ti.ccstudio.apps.projectCreate -ccs.name -ccs.device" and also..

    "bcs@ubuntu:~/workspace/bcs_master$ /home/bcs/ti/ccs1110/ccs/eclipse/eclipse -noSplash -data /home/bcs/workspace/bcs_master -application com.ti.ccstudio.apps.projectCreate -ccs.name -ccs.device"

    Both these seems to not work. Giving me same errors as the previous commands did.

  • Hello I have used " bcs@ubuntu:~/workspace/bcs_master$ eclipse -noSplash -data /home/bcs/workspace/bcs-master -application com.ti.ccstudio.apps.projectCreate -ccs.name -ccs.device" and also..

    "bcs@ubuntu:~/workspace/bcs_master$ /home/bcs/ti/ccs1110/ccs/eclipse/eclipse -noSplash -data /home/bcs/workspace/bcs_master -application com.ti.ccstudio.apps.projectCreate -ccs.name -ccs.device"

    These commands are INCORRECT. Both -ccs.name and -ccs.device require additional parameters. Please see:

    https://software-dl.ti.com/ccs/esd/documents/ccs_projects-command-line.html#create-a-ccs-project

    The above command is also for CREATING a project

    I am confused as to your use case. What exactly are you trying to do? Are you trying to CREATE a NEW project from the command line? Or are you trying to IMPORT an EXISTING project into a workspace?

  • Trying to Import an Existing project into a workspace and build it.

  • Trying to Import an Existing project into a workspace and build it.

    This is the command you need:

    https://software-dl.ti.com/ccs/esd/documents/ccs_projects-command-line.html#import-an-existing-ccs-project

    <CCS INSTALL DIR>/ccs/eclipse/eclipse -noSplash -data /home/bcs/workspace/bcs_master -application com.ti.ccstudio.apps.projectImport -ccs.location <full path to project folder> -ccs.copyIntoWorkspace

    the last argument (ccs.copyIntoWorkspace) is optional. It is if you want to physically copy the project into the workspace folder. That is up to you.