Package Details: stm32cubeprog 2.16.0-2

Git Clone URL: https://aur.archlinux.org/stm32cubeprog.git (read-only, click to copy)
Package Base: stm32cubeprog
Description: An all-in-one multi-OS software tool for programming STM32 products.
Upstream URL: https://www.st.com/en/development-tools/stm32cubeprog.html
Keywords: programmer stm32
Licenses: custom:SLA0048
Provides: stm32cubeprogrammer
Submitter: yjun
Maintainer: taotieren (GPereira, akumaexs)
Last Packager: GPereira
Votes: 8
Popularity: 0.66
First Submitted: 2021-01-15 20:39 (UTC)
Last Updated: 2024-03-24 02:35 (UTC)

Dependencies (7)

Required by (0)

Sources (2)

Latest Comments

1 2 3 4 5 6 Next › Last »

sl1pkn07 commented on 2024-03-28 22:03 (UTC)

nvm. my fault

gretings

sots commented on 2024-03-25 05:57 (UTC)

@GPereira Thanks for the update. I have an additional advice: Arch Linux usually use the latest JDK available on the system to provide the default java environment. I have version 8, 11, 17, 22 installed on my device, and the javac command uses version 22 by default.

==> 正在开始 build()...
./SetupSTM32CubeProgrammer-2.16.0.linux
/home/sots/.cache/paru/clone/stm32cubeprog/src
chdir /home/sots/.cache/paru/clone/stm32cubeprog/src/.
current dir /home/sots/.cache/paru/clone/stm32cubeprog/src
Command line arguments: -options-auto install.options
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/st/CustomPanels/AnalyticsPanelsConsoleHelper has been compiled by a more recent version of the Java Runtime (class file version 66.0), this version of the Java Runtime only recognizes class file versions up to 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:363)

It is recommended to use archlinux-java-run to set the JDK version.

prepare() {
  JAVA_HOME=$(archlinux-java-run --max 8 --feature jdk --java-home) \
      && "$JAVA_HOME"/bin/javac -cp "Setup${_pkgname}-${pkgver}.exe" -d . AnalyticsPanelsConsoleHelper.java
  7z a Setup${_pkgname}-${pkgver}.exe com/st/CustomPanels/AnalyticsPanelsConsoleHelper.class
}

GPereira commented on 2024-03-24 02:46 (UTC)

@sots you should be able to build it now.

@xiretza I did you changes, and it works now. Thank you for your contributions! However I don't particularly like the fact you must have the Java 8 selected in your system before installing this. This might be boring when doing package upgrades with AUR helpers. I rather have it compiled but I don't want to increase the effort in maintaining the package (having to build things manually). What do you think about this?

sots commented on 2024-03-22 01:51 (UTC)

Can't build izpack:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project izpack-installer: Compilation failure: Compilation failure:
[ERROR] /home/sots/.cache/paru/clone/izpack/src/izpack-izpack-5.2.1/izpack-installer/src/main/java/com/izforge/izpack/installer/unpacker/Pack200FileUnpacker.java:[34,21] Can't find symbol
[ERROR]   Symbol:   Class Pack200
[ERROR]   Location: Pack java.util.jar
[ERROR] /home/sots/.cache/paru/clone/izpack/src/izpack-izpack-5.2.1/izpack-installer/src/main/java/com/izforge/izpack/installer/unpacker/Pack200FileUnpacker.java:[88,20] The pack Pack200 does not exist
[ERROR] /home/sots/.cache/paru/clone/izpack/src/izpack-izpack-5.2.1/izpack-installer/src/main/java/com/izforge/izpack/installer/unpacker/Pack200FileUnpacker.java:[76,20] The pack Pack200 does not exist
[ERROR] /home/sots/.cache/paru/clone/izpack/src/izpack-izpack-5.2.1/izpack-installer/src/main/java/com/izforge/izpack/installer/unpacker/Pack200FileUnpacker.java:[90,16] The pack Pack200 does not exist
[ERROR] /home/sots/.cache/paru/clone/izpack/src/izpack-izpack-5.2.1/izpack-installer/src/main/java/com/izforge/izpack/installer/unpacker/Pack200FileUnpacker.java:[90,37] Can't find symbol
[ERROR]   Symbol:   variable Pack200
[ERROR]   Location: Class com.izforge.izpack.installer.unpacker.Pack200FileUnpacker
[ERROR] -> [Help 1]

xiretza commented on 2024-03-20 19:26 (UTC)

Thanks for the update! A couple things that made it work for me:

  1. Replace the javac command with javac -cp "Setup${_pkgname}-${pkgver}.exe" -d . AnalyticsPanelsConsoleHelper.java, which also allows you to remove the mkdir and cp
  2. Remove the install of CLI_TREE.txt, it doesn't exist anymore with 2.16
  3. Add !debug to options=(), because debugedit destroys the STM32CubeProgrammerLauncher binary ("Invalid or corrupt jarfile")
  4. As more of a cosmetic thing, remove the unneeded izpack dependency and change the java dependency to java-environment=8 (which is more generic than pinning it to openjdk).

GPereira commented on 2024-03-20 18:50 (UTC) (edited on 2024-03-20 18:51 (UTC) by GPereira)

@xiretza I've just pushed @DCNick3 solution. Still not working but probably better not working with a nicer solution than with an ugly one. I am still interested in your help if you still think it is easy to get it working :)

GPereira commented on 2024-03-20 18:19 (UTC)

@xiretza I don't see why that negativity helps in solving these issues. I've joined as a co-maintainer and I have done multiple attempts to fix this but with no success. If you know how to solve it I would be grateful to review your complete PKGBUILD file.

xiretza commented on 2024-03-20 17:46 (UTC)

For what feels like the millionth time: this still doesn't build in a clean chroot ever since xvfb was disabled without explanation, either enable it again or, better, use @DCNick3's solution from over a year ago.

dllcoolj commented on 2024-02-10 14:34 (UTC)

URLs within PKGBUILD no longer resolve.

  -> Downloading en.stm32cubeprg-lin-v2-14-0.zip...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (92) HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)
==> ERROR: Failure while downloading https://www.st.com
    Aborting...