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.

[参考译文] 尝试使用 CLI 进行编译时出现 CCS/错误

Guru**** 2573695 points
Other Parts Discussed in Thread: CCSTUDIO

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1179028/ccs-error-trying-to-building-using-the-cli

Thread 中讨论的其他器件:CCStudio

我遇到的问题与 Kevin 在这里遇到的问题完全相同: https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/928125/ccs-msp430f5529-error-trying-to-build-ccs-projects-using-the-eclipse-cli

您知道我如何解决它吗? 我在 Ubuntu 20.04计算机上运行 CCS12。

使用的命令为:

$HOME/ti/ccs1210/ccs/ceclipse/eclipse -noSplash -data #$HOME/builds/${gitHub.job}-application com.ti.ccstudio.apps.projectBuild #-ccs.projects "Tahoe-bootloader"-ccs.configuration F28075_FLASH

获得的响应为:

Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Eclipse: Cannot open display: 
Eclipse:
An error has occurred. See the log file
/home/runner/ti/ccs1210/ccs/eclipse/configuration/1670616310106.log.

2022-12-09T20:05:11.8944107Z /home/runner/ti/ccs1210/ccs/eclipse/configuration/1670616310106.log
2022-12-09T20:05:11.8944584Z !SESSION 2022-12-09 20:05:09.968 -----------------------------------------------
2022-12-09T20:05:11.8944969Z eclipse.buildId=4.23.0.I20220308-0310
2022-12-09T20:05:11.8945223Z java.version=11.0.13
2022-12-09T20:05:11.8945467Z java.vendor=Eclipse Adoptium
2022-12-09T20:05:11.8945758Z BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en
2022-12-09T20:05:11.8946099Z Framework arguments:  -data
2022-12-09T20:05:11.8946481Z Command-line arguments:  -os linux -ws gtk -arch x86_64 -data
2022-12-09T20:05:11.8946746Z 
2022-12-09T20:05:11.8946965Z !ENTRY org.eclipse.osgi 4 0 2022-12-09 20:05:11.665
2022-12-09T20:05:11.8947241Z !MESSAGE Application error
2022-12-09T20:05:11.8947469Z !STACK 1
2022-12-09T20:05:11.8947780Z org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
2022-12-09T20:05:11.8948128Z 	at org.eclipse.swt.SWT.error(SWT.java:4944)
2022-12-09T20:05:11.8948554Z 	at org.eclipse.swt.widgets.Display.createDisplay(Display.java:1167)
2022-12-09T20:05:11.8949024Z 	at org.eclipse.swt.widgets.Display.create(Display.java:1091)
2022-12-09T20:05:11.8949404Z 	at org.eclipse.swt.graphics.Device.<init>(Device.java:168)
2022-12-09T20:05:11.8949828Z 	at org.eclipse.swt.widgets.Display.<init>(Display.java:643)
2022-12-09T20:05:11.8950205Z 	at org.eclipse.swt.widgets.Display.<init>(Display.java:634)
2022-12-09T20:05:11.8950630Z 	at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:742)
2022-12-09T20:05:11.8951085Z 	at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:168)
2022-12-09T20:05:11.8951634Z 	at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:182)
2022-12-09T20:05:11.8952256Z 	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:125)
2022-12-09T20:05:11.8952824Z 	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
2022-12-09T20:05:11.8953474Z 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
2022-12-09T20:05:11.8954179Z 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
2022-12-09T20:05:11.8954767Z 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
2022-12-09T20:05:11.8955287Z 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
2022-12-09T20:05:11.8955882Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2022-12-09T20:05:11.8956392Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2022-12-09T20:05:11.8956930Z 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2022-12-09T20:05:11.8957393Z 	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
2022-12-09T20:05:11.8957813Z 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
2022-12-09T20:05:11.8958253Z 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
2022-12-09T20:05:11.8958653Z 	at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
2022-12-09T20:05:11.8959049Z 	at org.eclipse.equinox.launcher.Main.main(Main.java:1440)
2022-12-09T20:05:11.8959268Z 

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    [引用 userid="512087" URL"~/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1179028/ccs-error-trying-to-building-using-the-cli "]$home/ti/ccs1210/Ccs/ceclipse/eclipse -noSplash -data #$home/builds/${gitHub.job}}-application com.ti.ccstudio.apps.projectBuild #-ccs.projects "Taho-bootloader"-ccs.configuration F28075_flash[/quot]

    请仔细检查命令的准确性。 例如、我在-ccs.projects 前面看到一个"#"。