-
Notifications
You must be signed in to change notification settings - Fork 115
Build succeeds but AppImage won't run #243
Comments
What happens if you don't make an appimage? The image is only needed if you want to distribute Cura. For actual development, I would recommend not making the appimage. |
Hmm, I've tried the AppRun executable under the packaging directory and that crashes with the same error
And I've tried the cura executable under the /inst/bin directory which crashes with a different but almost the same error
(Again, there is an Arcus directory under the build-environment). |
Have you also tried just running "python3 cura_app.py"? That's what I use to run everything. I installed SIP in my python folder and ran the install script in LibArcus. (mkdir build && cd build && cmake .. && make && sudo make install) |
Same error - Traceback (most recent call last):
File "cura_app.py", line 23, in <module>
import Arcus # @UnusedImport
ModuleNotFoundError: No module named 'Arcus' Maybe I am misunderstanding something, in the cura-build-environment it downloads and compiles Arcus. I point the cura-build script at the directory containing all of these built modules. Do I also need to install Arcus to my own machine? Can it not use the one it has already downloaded and built? |
I don't know why the appimage isn't working for you. But unless you want a distributable package, there isn't a need to build appimages (hence me suggesting also installing libArcus from source). You could use the one it has already downloaded and built, but it's probably more work to get that right than to just do it again ;) |
I'm not sure I understand - are you using a different build process than the one in cura-build? The cura-build always builds the appimage when I run make |
I have found that I can run the
|
I understand what you're saying now, I can actually just run the Cura repository by following the other steps in https://github.com/Ultimaker/Cura/wiki/Running-Cura-from-Source-on-Ubuntu - I have tried this and it does work, and I've now got Cura running! I'd still like to know why the build process is failing however |
We are using cura-build-environment on our build server to create the dependencies of Cura. This includes Sip and Arcus. We're then using cura-build to create the components of Cura itself which change more regularly (such as CuraEngine). (The only step that's not automated or not public is the signing of the builds; for Linux and MacOS the private key / certificate is not public, and for Windows it's not public and not automated either.) The The problem with |
I am having the same issue of compiling the appimage but it doesnt run. Tried running from source but still no luck. How is the correct procedure using the docker image? I use docker pull ultimaker/cura-build-environment and it download latest, inside container I clone cura-build and run the "build_in_docker" script but it says it cant find pyQT5, I do pip3 install but the same issue. I try clonning cura-build outside docker and run the build scrip, I notice it download the docker image, however it is an old one edited 8 months ago, it compiles, but it doesnt work. |
The docker image for cura-build-environment is actively maintained since it's what our CI runs on (these tests). It was updated last week to include a tweak for our new libnest2d dependency. The docker script for cura-build is not though. We have a server running the CMake script from a Jenkins client. We have plans to eventually(tm) transition to a new build server which would run from that docker image, but this project came to a standstill when our DevOps guy left the company and the rest didn't properly understand the system left behind. There was no strong incentive to continue the transition since the old servers are running fine so far, and better understood by the developers. So I can't guarantee that the docker script still works, if it ever did. I would expect that you'd get decent results by opening up the cura-build-environment Docker image, going in a shell there and then try to run CMake manually, pointing CMake to all of the dependencies that it doesn't find automatically. |
Thanks for the reply, I will try it. Would it be a hassle to offer nightly builds? I am just trying to test the latest changes you make to see if there is any improvement with the Cura issue #8321 about the slowdowns in circular perimeters. I have not tested the nightly provided there as I was trying just to get the newest. |
We've considered it several times and as far as I know most people here agree that would be useful, especially the programmers. There are a couple of things that have prevented this so far though:
Currently we can provide "nightly" builds if we want to, incidentally. We've done this most recently for a bug with the polygon decimation function. This covers the direct need for nightlies for us. However I do think providing nightlies would allow us to find some types of bugs earlier, particularly with the simplification algorithm we had in 4.7. |
Well, that makes a lot of sense, I will test the nightly provided there and continue learning how to build from source. |
Hello,
I have been following the steps as laid out in https://github.com/Ultimaker/Cura/wiki/Running-Cura-from-Source-on-Ubuntu,
i.e.
I am not using docker. I have followed those steps as directed on a clean Ubuntu 18.04 installation.
The build succeeds and generates a
Ultimaker_Cura-0.0.0.AppImage
file.However, when I run this file, it crashes with the following error:
I have checked in the build environment folder and there is a compiled sip file at
/cura-build-environment/bin/sip
, so it seems like sip is being built, but perhaps it isn't being included in the final binary?Does anyone have any pointers to where something might be going wrong? I've tried rebuilding from clean a couple of times, but still I am having no luck.
The text was updated successfully, but these errors were encountered: