-
-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load STEP files #3699
Comments
just ran into this as well (first time importing a STEP). Same versions as the OS, except I'm on debian. Using AppImage. |
I suspect the appimage was built without OCCT and it's expected for us to install. There's some weirdness with licenses with OCCT too. But FreeCAD gets around it somehow (i've also heard they dont care). |
I'm having the same problems here. I'm on Arch and installed the prerelease from the AUR which uses the Appimage. |
I can't find any information online anywhere on even how to build OCCTWrapper.so. It's not in any Fedora or Debian repo that I can find. Is it something to do with Python bindings for OCCT? |
I have the same issue on Ubuntu, both 20.04 LTS and 22.04.2 LTS. built OCCT and now superslicer crashes when i load a step-file rather than just give me the error message above. Not sure what to do either. |
i too have hit the same issue (F37 + arachne ubuntu gtk2 appimage). I encountered a model that was .step only. turns out you can import .step's into freecad, and then export as stl/3mf and slice as normal. I know it's not the same as .step, but if thats your only option then it's better than nothing till it's fixed.
seems it's linux specific but i guess that still means it could be licencing. i've a zip extract of the win64 release; OCCTWrapper.dll is present so i assume it works on that platform |
@supermerill Do you mind pointing towards the right direction? I could try and give it a go. |
I guess I need to add an OCCTWrapper.so somewhere in the appimage. |
The code for OCCTWrapper is already in this repo (https://github.com/supermerill/SuperSlicer/tree/nightly_dev/src/occt_wrapper) and seems to have been merged from the upstream project at the same time that the STEP importing stuff. The compiled library just isn't included in the AppImage. Mimicking what PrusaSlicer is doing to compile it and bundle it in their AppImage is probably the way to go.
It's part of SuperSlicer/PrusaSlicer itself. You can find a compiled version of it by extracting it from the PrusaSlicer AppImage release. It seems to be statically linked against the OpenCascade stuff, and the STEP import code uses Note: It's been a while since I investigated this and only now noticed that I had this whole comment typed out and auto-saved by Github, because I never posted it, for whatever reason. This was before @supermerill's latest comment and acknowledgement above, but the conclusion still holds. |
Interestingly, it seems that upstream PrusaSlicer had this same bug in one of their pre-2.5.0 AppImage releases (on ARM). Unfortunately, the fix was somewhere in their own CI config (whose repo is not public, as far as I know). But since there does not seem to be any follow-up commits affecting relevant parts of the CMake scripts (as far as I could tell) between PS 2.5.0-beta1 and 2.5.0-rc1 (where the bug had been fixed, according to release notes), that does narrow it down quite a bit. That is, if upstream experienced the problem, the bug appearing in SuperSlicer might not be caused by any of the changes to the existing CMake scripts done in this fork. It also explains how it can still be broken here, despite merging a way later release (i.e. the final 2.5.0 one) than the one where it originally appeared and where it was fixed. In fact, I believe this is where the problem lies:
The build script only copies the main binary explicitly, so any additional build artefacts (outside of
That said - and forgive me yak shaving from the sidelines when I'm not even working on a PR myself - I think the approach done by the DaveK build scripts (mentioned in the upstream ticket I linked to above) is a lot more sensible: https://github.com/davidk/PrusaSlicer-ARM.AppImage/blob/version_2.5.0-beta1/AppImageBuilder-aarch64-full.yml#L45 DESTDIR=AppDir cmake --build ./ --target install -j $(nproc) That is, run the full EDIT (2024-06-03): Looks like it's actually successfully bundled into the Windows release, and moreover it's statically compiled on MacOS, so ignore what I said about that above: prusa3d@aff3370 |
@supermerill Thanks for the work you've done so far! However, I tried out the latest release and I still get the same error. Checking the AppImage ( I noticed that the build script is missing a I double checked both AppImage versions and also the (zipped) tarball, just to make sure. |
oups, forgot to build it before copying it |
Awesome! Thank you. Can confirm it works in 2.5.59.12 :) |
Sorry but it's still not working on Fedora 40 with the 2.5.60 AppImage. Same error about the missing file. |
silly me. thanks for hte report. will be in next nightly. |
What happened?
Expected result: STEP file opens
Result:
Cannot load OCCTWrapper.so: /tmp/.mount_SuperSmadyUY/bin/OCCTWrapper.so: cannot open shared object file: No such file or directory
when trying to load a STEP file.Project file & How to reproduce
bug_report.zip
pad.step.zip
Load any STEP file
Version
2.5.59.2
Operating system
Arch Linux
Printer model
Anycubic Vyper
The text was updated successfully, but these errors were encountered: