appimage

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
probono
Posts: 42
Joined: Wed Dec 28, 2016 10:16 pm

Re: appimage

Post by probono »

Let me know if I should include/exclude other deb ingredients in the yml files. You can also play with them yourself if you like.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: appimage

Post by sgrogan »

triplus wrote:@sgrogan
Thanks triplus, It will take me some time to understand it all. What is the output of "About FreeCAD"? Yeah "read the .yml" but you will save me time :)
How long does it take to build the package? Again because you are far ahead of me, do we just need to deploy the file, then the user would download it and make it executable? If so we could compress it and deploy to github.
"fight the good fight"
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: appimage

Post by triplus »

sgrogan wrote:Thanks triplus, It will take me some time to understand it all. What is the output of "About FreeCAD"? Yeah "read the .yml" but you will save me time :)

Code: Select all

OS: Ubuntu 16.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6707 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 5465bc47c95db45e0be85dc0e2872419efadce0f
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
How long does it take to build the package?
It shouldn't take long as AFAIK there isn't any "real compiling" going on. Estimation is 10 to 15 minutes.
Again because you are far ahead of me, do we just need to deploy the file, then the user would download it and make it executable? If so we could compress it and deploy to github.
Yes. The output is a single portable file. It could i guess be uploaded as is or it could be compressed first.

@probono

I tested on different DE the last time as on stock Ubuntu 16.04 i don't have menu integrated in global menu. Only for FreeCAD 0.16 version as FreeCAD 0.17 version works OK. I am guessing as you reduced the size of the created AppImage for FreeCAD 0.16 some library responsible for this was left out.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: appimage

Post by triplus »

triplus wrote:@probono

I tested on different DE the last time as on stock Ubuntu 16.04 i don't have menu integrated in global menu. Only for FreeCAD 0.16 version as FreeCAD 0.17 version works OK. I am guessing as you reduced the size of the created AppImage for FreeCAD 0.16 some library responsible for this was left out.
Note that i will check this again tomorrow on a different PC.
cox
Posts: 971
Joined: Wed Nov 26, 2014 11:37 pm

Re: appimage

Post by cox »

triplus wrote:Double click on the file and do some test or just use FreeCAD in the way as you usually do. ;)
Love it :-)
Spectacle.s13164.png
Spectacle.s13164.png (19.3 KiB) Viewed 2330 times
OS: "Arch Linux"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6707 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 5465bc47c95db45e0be85dc0e2872419efadce0f
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
Need help? Feel free to ask, but please read the guidelines first
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: appimage

Post by sgrogan »

triplus wrote: Code: Select all
OS: Ubuntu 16.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6707 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 5465bc47c95db45e0be85dc0e2872419efadce0f
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
Damn, I wasted your time. 16.04 doesn't need PPA versions of the packages. I think the .yml uses Ubuntu repo for the packages and we need newer versions on 14.04, that's why we have them on the PPA. 16.04 has everything in universe. This is only important if building on Travis which is 14.04. I know it's possible to install packages from PPA's on Travis. Now we use the default so the Travis uses old oce and eigen3, I think netgen is fixed upstream and the PPA package for netgen is redundant.

EDIT: cox posted while I was typing. Cool :)
"fight the good fight"
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: appimage

Post by triplus »

sgrogan wrote:Damn, I wasted your time.
No time wasted and small issue with global menu (if confirmed) was spotted. ;) And i enabled the extended desktop support for FreeCAD 0.16 AppImage and it adds the launcher but the icon doesn't look good (plain without the logo). Will test all this tomorrow on another Ubuntu PC.
16.04 doesn't need PPA versions of the packages. I think the .yml uses Ubuntu repo for the packages and we need newer versions on 14.04, that's why we have them on the PPA. 16.04 has everything in universe. This is only important if building on Travis which is 14.04. I know it's possible to install packages from PPA's on Travis. Now we use the default so the Travis uses old oce and eigen3, I think netgen is fixed upstream and the PPA package for netgen is redundant.
I have a feeling if we remove netgen from the AppImage it could cause issues for some. As the AppImage is based on Ubuntu 14.04 packages. But then again once we will have AppImage to download i do imagine users from different Linux distributions will provide more feedback over time. And from that i guess we will learn what makes sense or doesn't make sense to provide in AppImage. As we have them on PPA i guess providing calculix/netgen in AppImage should result in working FEM WB. Instead of relying on different Linux distribution default packages for calculix/netgen. As i do imagine on some Linux distributions that could cause issues.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: appimage

Post by triplus »

I tested all packages:

https://bintray.com/probono/AppImages/FreeCAD/#files

Code: Select all

FreeCAD-0.16.6707.glibc2.17-x86_64.AppImage 5 days ago
FreeCAD-0.17.git201612261451.glibc2.17-x86_64.AppImage 12 days ago
Application menu isn't integrated in the global menu on Ubuntu 14.04 and Ubuntu 16.04.

Code: Select all

FreeCAD-0.17.glibc2.15-x86_64.AppImage 5 months ago
Application menu is integrated in the global menu on Ubuntu 14.04 and Ubuntu 16.04. This AppImage adds icon to the desktop launcher.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: appimage

Post by sgrogan »

And if you run this command:

Code: Select all
wget https://raw.githubusercontent.com/probo ... eta/Recipe
bash Recipe FreeCAD-nightly


AppImage will be made for FreeCAD 0.17. Currently based on Ubuntu 14.04 daily PPA without calculix-ccx/netgen included.
Where can I find the .yml for the daily version?
Also I don't understand the numpy issue with the release version :? I didn't think it was a dependency for 0.16.160x
"fight the good fight"
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: appimage

Post by triplus »

sgrogan wrote:Where can I find the .yml for the daily version?
Also I don't understand the numpy issue with the release version :? I didn't think it was a dependency for 0.16.160x
https://github.com/probonopd/AppImages/ ... ightly.yml

As for the numpy dependency it was added as when i did some tests Assembly 2 module complained it's missing.
Post Reply