Hi,
Trying to compile a CCS project in a Docker. Compiling it in command line on a pc works ok ( using this doc : https://software-dl.ti.com/ccs/esd/documents/ccs_projects-command-line.html#working-with-ccs-linux )
But while trying it in a Docket the following error appears :
---------------------------
Unable to init server: Could not connect: Connection refused
Eclipse:
An error has occurred.
---------------------------
Below the log messages :
----------------------------------------------------
eclipse.buildId=4.14.0.I20191210-0610
java.version=1.8.0_112
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64
!ENTRY org.eclipse.osgi 4 0 2023-01-30 15:32:07.388
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
at org.eclipse.swt.SWT.error(SWT.java:4746)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:1117)
at org.eclipse.swt.widgets.Display.create(Display.java:1057)
at org.eclipse.swt.graphics.Device.<init>(Device.java:175)
at org.eclipse.swt.widgets.Display.<init>(Display.java:623)
at org.eclipse.swt.widgets.Display.<init>(Display.java:614)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:778)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:166)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:180)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
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)
--------------------------
The problem appears because there is no X11 server in the Docker. When the command on the PC is run no GUI display appears so could not understand why it tries to createDisplay.
Is there an option to avoid using graphical commands ?
Thank you!
Best regards,
Guillaume