-
Notifications
You must be signed in to change notification settings - Fork 115
Build on ubuntu 16.04. worked. #63
Comments
To summarise:
It's common practice to make a pull request out of changes such as this. That way we can include your changes directly and Git will also track that it was you who made the change, so your name will be included in the list of collaborators and so on 😃 At the very least we should test slicing and layer view first, on multiple systems. Especially libArcus can be very OS-dependent (and compiler-dependent) at times so if slicing works that'll give good confidence that everything is still in order. |
yes this is only to make it compile and run on ubuntu 16.04. I'm thinking about trying appimage http://appimage.org/ to make a version that works on basically any linux distro. But then you need to build everything including python so its going to be a big image. But it might be good to have one baseline that works everywhere then others can make a "native" package. |
We could have if-clauses in the CMake to check for version, but that means we'd have to release two Linux-versions instead of one, and also that we'd have to make sure our Python code is compatible with two Python versions. |
after successful compilation the .deb file generates but its not installing |
See #69 |
Actually I have done this a couple of weeks ago: Here is the Recipe that was used to produce the AppImage: This AppImage needs some more testing though, and it would be cool if someone from the Cura project could actually produce official, upstream-generated AppImages. |
I actually want to start creating AppImages as it makes it much easier to do cross-distribution publishing and flatpak is not yet production ready. Unfortunately I so far have not yet had the time to do it. @probonopd Those are for 15.04 though, so the recipe probably needs a lot of work to work with 2.1. |
@awhiemstra for maximum compatibility, we should use binaries that were compiled on the oldest build system possible (e.g., debian oldstable, CentOS 6 or the like) - this maximizes binary compatibility with not-so-recent "enterprise stable" distributions. |
Yeah, I know. I am probably going to look at building a CentOS 6 VM for it. |
@kenjo ,did you build cura in 64bit ubuntu or 32bit ubuntu? |
What i met when starting cura built in 64bit Ubuntu 1604, is as follows:
Using http://downloads.sourceforge.net/project/numpy/NumPy/1.9.2/numpy-1.9.2.tar.gz |
Your NumPy and your SciPy are not compatible with each other. I think it's good to try compiling both from versions that were released around the same time. |
@Ghostkeeper, thank you for reminding. After replacing the Numpy with https://github.com/numpy/numpy/archive/v1.11.0.tar.gz, provided by the patch file of this thread. I rebuilt cura, and run it, it encounters into a new issue:
|
New error. Always a good sign ;) Did you install this dependency?
If so, what version of OpenGL are you running? We require at least version 2.0. On some virtual machines it doesn't have that. |
Before i get your response, I run into "blue screen" , after installing the below packages: |
Whoa... Sounds serious. Note that we use Qt5, not 4. |
I recreate the VM with ubuntu 1604. Install cura (didn't rebuild it), still the same errors:
Reading package lists... Done
OpenGL version string: 3.0 Mesa 11.2.0
cura.CrashHandler.show [32]: An uncaught exception has occurred! |
One more thing is the python version, it was pointing to python2.7, but i changed it to python3.5, by modifying /usr/bin/python link: Does this work? is there a better way to enable python3.5? |
Could anyone share a working version of cura built in 64bit ubuntu1604? If so, i can test if it's caused by my VM or mistakes in building cura. Thanks. |
@awhiemstra had some trouble yesterday with version 3.3 because for some reason only OpenGL versions 2 and 4 are supported by Qt. Any word on your findings, awhiemstra? |
About modifying /usr/bin/python, be careful with that. Some parts of your operating system may depend on Python 2 and would crash when it suddenly turns out to be version 3.5 instead of 2.7. In our installation we have to call the Python 3.5 executable explicitly. For Cura we deliver a shell script that calls something along the line of |
We'll have a Linux version for the 2.4 beta. It was built on CentOS though, but it is known to work on Ubuntu 16.04. The version is currently at our system testers for some more integration testing. |
@cn-toven could be that you really want to compile it yourself for some reason, but Cura runs great on Elementary OS (which is based on Ubuntu 16.04) using thopiekar's ppa: https://launchpad.net/~thopiekar/+archive/ubuntu/cura |
@Ghostkeeper OK, i will change back the symbol link of /usr/bin/python, and looking forward to the coming 2.4 beta. |
Good news and bad news: Bad news:
|
So something is different in the way that Cura is built for the PPA from how you built it. Did you have to do anything special to get Qt to work with OpenGL on your server, @thopiekar? |
By deb file I guess he means the Deb file he built with cura-build. In short: You can't mix the PPA with the deb built from cura-build. |
Well it's our recommended tool to build Cura with... |
@Ghostkeeper I meant the others with that ^^ |
@thopiekar I understand your concern. I will try to... |
patch_tv.txt my patch file. |
@cn-toven So my PPA is working for you, but your deb isn't? |
@thopiekar I'm still attempting to build a version via cura-build script. I have no ultimaker printer for now, so i can't use cura to print a model. Though I'm glad to comment Cura#718 if having any valuable idea on it. Thanks for your work. |
Closing this issue due to inactivity. |
here is the changes I needed to do to make it build on ubuntu 16.04
it starts have not tried using it much yet.
patch.txt
The text was updated successfully, but these errors were encountered: