Thanks for the hint dreieck, I moved the download of files into the prepare section as they change unpredictably depending on the file listing from the LTSpice website.
Search Criteria
Package Details: ltspice 24.1.6-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/ltspice.git (read-only, click to copy) |
---|---|
Package Base: | ltspice |
Description: | SPICE simulator, schematic capture and waveform viewer. |
Upstream URL: | https://www.analog.com/en/resources/design-tools-and-calculators/ltspice-simulator.html |
Keywords: | simulation spice wine |
Licenses: | LicenseRef-LTspice |
Submitter: | M4a1x |
Maintainer: | fenugrec |
Last Packager: | fenugrec |
Votes: | 35 |
Popularity: | 0.55 |
First Submitted: | 2015-07-08 21:35 (UTC) |
Last Updated: | 2025-03-31 19:10 (UTC) |
Dependencies (8)
- wine (wine-valveAUR, wine-stable-nextAUR, wine-stableAUR, wine-wow64-gitAUR, wine-staging-wow64-gitAUR, wine-gitAUR, wine-staging-gitAUR, wine-cachyosAUR, wine-wow64AUR, wine-staging-wow64AUR, wine-tkg-staging-wow64-binAUR, wine-tkg-staging-binAUR, wine-pure-gitAUR, wine-staging)
- curl (curl-gitAUR, curl-c-aresAUR) (make)
- gawk (gawk-gitAUR, busybox-coreutilsAUR) (make)
- gendesk (make)
- icoutils (make)
- imagemagick (imagemagick-gitAUR, imagemagick-full-gitAUR, imagemagick-fullAUR) (make)
- msitools (msitools-gitAUR) (make)
- xdg-utils (busking-gitAUR, xdg-utils-slockAUR, mimiAUR, mimi-gitAUR, xdg-utils-handlrAUR, openerAUR, xdg-utils-mimeoAUR, mimejs-gitAUR) (optional) – for launching HTML help files
Required by (0)
Sources (4)
jhbruhn commented on 2021-04-14 16:29 (UTC)
dreieck commented on 2021-04-14 13:54 (UTC) (edited on 2021-04-14 13:56 (UTC) by dreieck)
In your PKGBUILD
, you explicitly download stuff in build()
.
However, it is not recommended if stuff can already be downloaded via source
-array or in prepare()
, so that once makepkg -o
is done no internet connection is needed to build the software.
Ideally, you could transfer all needed downloads to the source
-array (the array beeing built "on the fly" by parsing "${_update_url}/release.log.gz"
), or if that does not really work move the relevant parts now in build()
into prepare()
.
Thanks for maintaining!
==> Starting build()...
Checking cache and downloading using 16 threads.
Starting...
Download Progress: 5957/9785 (lib/sym/Comparators/LTC6754.asy)
[...]
jhbruhn commented on 2021-04-07 18:07 (UTC)
Thanks a lot lightspot21!
I have found that running wine /usr/lib/wine/start.exe /unix /opt/ltspice/XVIIx64.exe
works as well and without the need to modify the prefix, so I will include that in the launcher script until the new wine version with the bugfix is released. Thanks again!
lightspot21 commented on 2021-04-07 17:47 (UTC)
Reposting due to accidental deletion.
So I went to hunt the issue behind the breakage:
I tried to run the 64-bit executable directly, just like the shell script. No WINEPREFIX set yet.
wine /opt/ltspice/XVIIx64
and I get back the error:
wine: failed to open L"/opt/ltspice/XVIIx64": c0000135
Attempting to "fake" the first run, I deleted the prefix and started anew:
export WINEPREFIX=$HOME/.ltspice/env WINEARCH=win64 && wine /opt/ltspice/XVIIx64
but the error persisted.
With the same prefix, but calling wine /opt/ltspice/XVIIx64.exe
the error changes to:
wine: failed to load start.exe: 40000003
Googling it took me to this issue: https://bugs.winehq.org/show_bug.cgi?id=50867 , where the workaround was to copy start.exe
from the command
dir of the prefix to the system32
dir, then use wine start /unix /opt/ltspice/XVIIx64.exe
with the correct prefix set to run the 64 bit version. This is because:
What has changed is that Wine is more strict about requiring the
file to execute to actually be found on disk. By default, start.exe
is installed into c:\windows\command, which is not in the standard path,
so it isn't found.
The bug is already fixed in the next version of Wine.
jhbruhn commented on 2021-04-02 13:08 (UTC)
I have tried multiple combinations of running the application but can't get it to work right now. I will sticky your workaround for now and if I find the time I'll figure out whether something is wrong with the launcher script.
Downgrading wine should also be a workaround but I haven't tried that.
Yazarai commented on 2021-03-28 16:19 (UTC)
@bigdino wine /opt/ltspice/XVIIx86.exe
keeps doing it for me now that I tried it, even after a desktop session logout. Not sure whether this was your exact command but at least I guess I got myself a temporary workaround that hasn't failed yet.
bigdino commented on 2021-03-28 14:23 (UTC)
Same issue on my side as the previous comment.
I somehow managed to start LTSpice yesterday by calling /opt/ltspice/XVIIx86, but for some reason I can't start it anymore today.
Yazarai commented on 2021-03-27 19:00 (UTC)
I made an update today and now LTSpice doesn't open. Might be because wine was updated yesterday.
When I type ltspice on the terminal, this is the output:
failed to open L"/opt/ltspice/XVIIx64": c0000135
Pinned Comments
fenugrec commented on 2025-01-22 23:08 (UTC) (edited on 2025-01-23 17:25 (UTC) by fenugrec)
(follow-up) - yeah, currently it's a bit of a mess :
https://ltspice.analog.com/download/24.1.0/LTspice64.msi
https://ltspice.analog.com/software/LTspice64.msi
https://ltspice.analog.com/download/24.0.12/LTspice64.msi
, the .json says 24.0.11...I'm going to try using a permalink, just so the build doesn't break on their next update, but I may not notice for a while to update the PKGBUILD. We can revisit this if analog gets their versioning straightened out.