Ubuntu snap: A quick try

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Ubuntu snap: A quick try

Post by triplus »

I wanted to test the snap package update process and after your changes but it seems the snap package updates are not published yet?
User avatar
vejmarie
Posts: 713
Joined: Mon Jan 04, 2016 4:52 pm
Location: Somewhere between France, USA and Taiwan
Contact:

Re: Ubuntu snap: A quick try

Post by vejmarie »

triplus wrote:I wanted to test the snap package update process and after your changes but it seems the snap package updates are not published yet?
Yes it needs manual ubuntu approval as it is requiring user home directory interfaces :(.
It shall come up within 1 day or 2 ...

vejmarie

ps: if you follow the link you can't get it ?
User avatar
vejmarie
Posts: 713
Joined: Mon Jan 04, 2016 4:52 pm
Location: Somewhere between France, USA and Taiwan
Contact:

Re: Ubuntu snap: A quick try

Post by vejmarie »

@triplus: I just received a mail from ubuntu telling me that the update is online. So you might give it a try.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Ubuntu snap: A quick try

Post by triplus »

vejmarie wrote:@triplus: I just received a mail from ubuntu telling me that the update is online. So you might give it a try.
I can confirm the update works as advertised.
User avatar
vejmarie
Posts: 713
Joined: Mon Jan 04, 2016 4:52 pm
Location: Somewhere between France, USA and Taiwan
Contact:

Re: Ubuntu snap: A quick try

Post by vejmarie »

Thanks for the try ! And happy that it worked ;). Still need to wait for wmayer and ickby to make work the SMESH7 on windows to resync everything. I do not really know where to put the vagrant build instruction. I pushed for a PR, but without any success up to now (the code is dirty, but wanted to get feedbacks). Loved to see SMESH 7 moving forward.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: Ubuntu snap: A quick try

Post by looo »

Although I do not like these snaps, I gave it a try. The installation worked great (ubuntu 16.04). Running this version gave me some small errors. Maybe you can have a look:

Code: Select all

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Draft workbench activated
FreeCAD: gl.cpp:2354: const cc_glglue* cc_glglue_instance(int): Assertion `current_ctx && "Must have a current GL context when instantiating cc_glglue!! (Note: if you are using an old Mesa GL version, set the environment variable COIN_GL_NO_CURRENT_CONTEXT_CHECK to get around what may be a Mesa bug.)"' failed.
But I don't like this:

Code: Select all

>>> import numpy
>>> numpy.__file__
'/snap/freecad/4/usr/lib/python2.7/dist-packages/numpy/__init__.pyc'
such a good solution. ;)

Ps.: maybe you have a look at conda. It has similar features like snaps, but 1: has smaller app-sizes, 2: not every app is in it's own enviroment (instead one can create environments to run different versions, where dependencies are simple links), 3: works on linux/ mac / windows. So it's a different approach to solve a similar problem.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Ubuntu snap: A quick try

Post by triplus »

http://snapcraft.io/
FreeCAD.png
FreeCAD.png (44.45 KiB) Viewed 3033 times
Note that we are listed under Popular snaps category!
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Ubuntu snap: A quick try

Post by triplus »

It looks like better desktop integration support just landed:

https://developer.ubuntu.com/en/blog/20 ... launchers/
jacquesclouseau
Posts: 13
Joined: Sat Jul 09, 2016 10:34 pm

Re: Ubuntu snap: A quick try

Post by jacquesclouseau »

:~$ freecad.FreeCAD
mkdir: cannot create directory '/home/username :) /snap/freecad/4/.config': File exists
FreeCAD 0.17, Libs: 0.17R7744 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

---------------------------
:~$ gnome-panel --version
gnome-panel 3.18.2

ubuntu-gnome 16.04 64 with proposed updates active.
My graphic card is a nvidia gtx750ti

I can provide extra sudo lshw if needed

I thougt it works, but I have just click on new button and program crash, terminal says:

FreeCAD: gl.cpp:2354: const cc_glglue* cc_glglue_instance(int): Assertion `current_ctx && "Must have a current GL context when instantiating cc_glglue!! (Note: if you are using an old Mesa GL version, set the environment variable COIN_GL_NO_CURRENT_CONTEXT_CHECK to get around what may be a Mesa bug.)"' failed.
Abortado (`core' generado)
User avatar
vejmarie
Posts: 713
Joined: Mon Jan 04, 2016 4:52 pm
Location: Somewhere between France, USA and Taiwan
Contact:

Re: Ubuntu snap: A quick try

Post by vejmarie »

jacquesclouseau wrote::~$ freecad.FreeCAD
mkdir: cannot create directory '/home/username :) /snap/freecad/4/.config': File exists
FreeCAD 0.17, Libs: 0.17R7744 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

---------------------------
:~$ gnome-panel --version
gnome-panel 3.18.2

ubuntu-gnome 16.04 64 with proposed updates active.
My graphic card is a nvidia gtx750ti

I can provide extra sudo lshw if needed

I thougt it works, but I have just click on new button and program crash, terminal says:

FreeCAD: gl.cpp:2354: const cc_glglue* cc_glglue_instance(int): Assertion `current_ctx && "Must have a current GL context when instantiating cc_glglue!! (Note: if you are using an old Mesa GL version, set the environment variable COIN_GL_NO_CURRENT_CONTEXT_CHECK to get around what may be a Mesa bug.)"' failed.
Abortado (`core' generado)
Hi,

Thanks for the feedback and sorry for the issue you are facing. the GL error are really strange to me. Are you running ubuntu Desktop ? Can you provide me the output of lsmod command ?

vejmarie
Post Reply