https://downloads.ti.com/ccs/esd/documents/users_guide/index.html
ccs has a 20.0.0 rewritten in theia. Can we have it on AUR?
Git Clone URL: | https://aur.archlinux.org/ccstudio.git (read-only, click to copy) |
---|---|
Package Base: | ccstudio |
Description: | Texas Instruments Code Composer Studio IDE |
Upstream URL: | http://www.ti.com/tool/ccstudio |
Keywords: | c ide msp430 |
Licenses: | custom:TSPA |
Submitter: | alexei |
Maintainer: | tapajos |
Last Packager: | tapajos |
Votes: | 21 |
Popularity: | 0.105627 |
First Submitted: | 2017-06-23 06:06 (UTC) |
Last Updated: | 2024-08-23 11:46 (UTC) |
https://downloads.ti.com/ccs/esd/documents/users_guide/index.html
ccs has a 20.0.0 rewritten in theia. Can we have it on AUR?
Is the gconf
depedency still necessary? A comment from 2020 says that it's not, and after using pacman -Rdd gconf
to forcibly remove it from my system ccstudio
still launches and doesn't seem to have any issues. This comment on the gconf
package implies it's probably just a leftover dependency from chromium, and chromium removed the dependency back in 2010. The chromium version used in ccstudio
on my machine, from ~/.eclipse/org.eclipse.platform*/configuration/.jxbrowser.bin/7.29/chromium.version
, is 108.0.5359.125
, from 2022. Unless another part of ccstudio
relies on the dependency, it seems to me that it should be removed.
Error initializing emulator: No USB FET was found
with msp430f5529. Any ideas?
It seems that after adding normal user to ccstudio group, the X server will be not working. It can be reproduced stably. Removing the user from ccstudio group with a system reboot can fix it. Here are the logs:
$ ccstudio
Authorization required, but no authorization protocol specified
Ccstudio: Cannot open display:
Authorization required, but no authorization protocol specified
Ccstudio: Cannot open display:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Ccstudio: Cannot open display:
Ccstudio:
An error has occurred. See the log file
/opt/ccstudio/ccs/eclipse/configuration/1725609105135.log.
$ cat /opt/ccstudio/ccs/eclipse/configuration/1725609105135.log
!SESSION 2024-09-06 15:51:45.026 -----------------------------------------------
eclipse.buildId=4.23.0.I20220308-0310
java.version=11.0.13
java.vendor=Eclipse Adoptium
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product com.ti.ccstudio.branding.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product com.ti.ccstudio.branding.product
!ENTRY org.eclipse.osgi 4 0 2024-09-06 15:51:46.068
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
at org.eclipse.swt.SWT.error(SWT.java:4944)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:1167)
at org.eclipse.swt.widgets.Display.create(Display.java:1091)
at org.eclipse.swt.graphics.Device.<init>(Device.java:168)
at org.eclipse.swt.widgets.Display.<init>(Display.java:643)
at org.eclipse.swt.widgets.Display.<init>(Display.java:634)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:742)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:168)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:182)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:125)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
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(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
at org.eclipse.equinox.launcher.Main.main(Main.java:1440)
$ xhost +si:localuser:root
Authorization required, but no authorization protocol specified
xhost: unable to open display ":0"
$ who # Now "DISPLAY" is set to ":0"
littleye233 tty2 2024-09-03 16:40 (:0)
littleye233 pts/0 2024-09-03 16:40 (:0)
littleye233 pts/2 2024-09-03 16:43 (:0)
littleye233 pts/3 2024-09-05 20:46 (:0)
littleye233 pts/4 2024-09-03 16:44 (:0)
littleye233 pts/5 2024-09-06 15:26 (:0)
littleye233 pts/6 2024-09-06 13:50 (:0)
littleye233 pts/1 2024-09-03 22:18 (:0)
littleye233 pts/7 2024-09-06 16:00 (:0)
littleye233 pts/8 2024-09-06 16:01 (:0)
I got it installed by unzipping the package it creates then running ccs_setup_12.2.0.0009.run
The problem is when you try to run ccstudio it bombs out with unable to load SLF4J.
this is the dump $# /home/user/ti/ccs1220/ccs/eclipse/ccstudio
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. SWT OS.java Error: Failed to load swt-pi3, loading swt-pi4 as fallback. Ccstudio: An error has occurred. See the log file /home/user/ti/ccs1220/ccs/eclipse/configuration/1694333179527.log.
This is the contense of the log file:
!SESSION 2023-09-10 17:32:02.210 ----------------------------------------------- eclipse.buildId=4.23.0.I20220308-0310 java.version=11.0.13 java.vendor=Eclipse Adoptium BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_AU Framework arguments: -product com.ti.ccstudio.branding.product Command-line arguments: -os linux -ws gtk -arch x86_64 -product com.ti.ccstudio.branding.product
!ENTRY org.eclipse.osgi 4 0 2023-09-10 17:32:04.173 !MESSAGE Application error !STACK 1 java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: no swt-pi4-gtk-4950r5 in java.library.path: [/home/user/ti/ccs1220/ccs/eclipse/jre/lib/server, /home/user/ti/ccs1220/ccs/eclipse/jre/lib, ., /usr/java/packages/lib, /usr/lib64, /lib64, /lib, /usr/lib] no swt-pi4-gtk in java.library.path: [/home/user/ti/ccs1220/ccs/eclipse/jre/lib/server, /home/user/ti/ccs1220/ccs/eclipse/jre/lib, ., /usr/java/packages/lib, /usr/lib64, /lib64, /lib, /usr/lib] no swt-pi4 in java.library.path: [/home/user/ti/ccs1220/ccs/eclipse/jre/lib/server, /home/user/ti/ccs1220/ccs/eclipse/jre/lib, ., /usr/java/packages/lib, /usr/lib64, /lib64, /lib, /usr/lib] Can't load library: /home/user/.swt/lib/linux/x86_64/libswt-pi4-gtk-4950r5.so Can't load library: /home/user/.swt/lib/linux/x86_64/libswt-pi4-gtk.so Can't load library: /home/user/.swt/lib/linux/x86_64/libswt-pi4.so
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:348)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:257)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:97)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:209)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:155)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:167)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:726)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:168)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:182)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:125)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
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(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
It appears to need a dependency called libswt.
How the hell are you suppose to install it once the package is made ? The script does not generate a typical .pkg.tar.zst file for pacman to use.
Does anybody have a working help in ccstudio 12?
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=ccstudio#n81 Why 0755? The desktop entry is not an executable file, so it should be 0644.
How about create /etc/profile.d/ccstudio.sh
to add some paths to $PATH
?
for bin in /opt/ccstudio/ccs/tools/compiler/*/bin; do
export PATH=$PATH:$bin
done
unset bin
And after yay -S ccstudio
, my ~/Desktop
occur a new file Bh560v2Config Utility.desktop
:
[Desktop Entry]
Type=Application
Version=0.9.4
Name=Bh560v2Config Utility
Comment=Blackhawk Bh560v2Config Utility
Icon=/home/wzy/.cache/yay/ccstudio/src/installdir/opt/ccstudio/ccs/ccs_base/emulation/Blackhawk/BH560v2-Config.PNG
Exec=/home/wzy/.cache/yay/ccstudio/src/installdir/opt/ccstudio/ccs/ccs_base/common/uscif/Bh560v2Config_start.sh
Terminal=false
Path=/home/wzy/.cache/yay/ccstudio/src/installdir/opt/ccstudio/ccs/ccs_base/common/uscif
Is it a bug?
Pinned Comments