OpenSCAD for Raspbian ??

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenSCAD for Raspbian ??

softfoot

Is there an up to date  prebuilt package for OpenSCAD to run under
Raspbian ??

If so, where can I get it ?

I found one that runs OK but it is rather old :-(

TIA
Dave



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD for Raspbian ??

gounthar
I have seen there already is a travis yaml file, I could try to port
it to Shippable to build it on their ARMHF and AARCH64 machines...

On Fri, Feb 21, 2020 at 12:18 AM David Slipper <[hidden email]> wrote:

>
>
> Is there an up to date  prebuilt package for OpenSCAD to run under
> Raspbian ??
>
> If so, where can I get it ?
>
> I found one that runs OK but it is rather old :-(
>
> TIA
> Dave
>
>
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



--
Bruno Verachten

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD for Raspbian ??

MichaelAtOz
Administrator
I understand that the Rpi only supports OpenGL *ES*, which is not sufficient
for OpenSCAD which needs full OpenGL, I have a vague recollection of a build
without preview that could do command line rendering, but that was a while
ago.



-----
Admin - email* me if you need anything,  or if I've done something stupid...

* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Admin - email* me if you need anything, or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD for Raspbian ??

doug.moen
Raspberry pi 4 with raspbian supports opengl 2.1 using mesa and x11. AFAIK openscad should compile and run without any changes, with the standard Raspian install. I need to get a pi 4 so I can test this.

X11+OpenGL is also available on Raspberry Pi 3, if you are running an up to date version of Raspian. The original Pi 3 version of Raspian didn't support this. AFAIK, OpenSCAD should work. Haven't tested it.

Earlier pi models had a nonstandard opengl es library interface that bypassed x11 and wrote directly to the display (so, without a window manager). Unless there is a Qt port to that older API, openscad isn't compatible.

Doug Moen.

On Fri, Feb 21, 2020, at 5:36 AM, MichaelAtOz wrote:

> I understand that the Rpi only supports OpenGL *ES*, which is not sufficient
> for OpenSCAD which needs full OpenGL, I have a vague recollection of a build
> without preview that could do command line rendering, but that was a while
> ago.
>
>
>
> -----
> Admin - email* me if you need anything,  or if I've done something stupid...
>
> * click on my MichaelAtOz label, there is a link to email me.
>
> Unless specifically shown otherwise above, my contribution is in the
> Public Domain; to the extent possible under law, I have waived all
> copyright and related or neighbouring rights to this work. Obviously
> inclusion of works of previous authors is not included in the above.
>
> --
> Sent from: http://forum.openscad.org/
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD for Raspbian ??

gounthar
I just built it on a aarch64 Debian buster machine.
Is there anything else to grab except the openscad binary?

openscad: ELF 64-bit LSB pie executable, ARM aarch64, version 1
(GNU/Linux), dynamically linked, interpreter
/lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0,
BuildID[sha1]=fe58df40cd15a51668f8964a2bcbfeac43a277d9, not stripped

Thanks.

On Fri, Feb 21, 2020 at 4:39 PM Doug Moen <[hidden email]> wrote:

>
> Raspberry pi 4 with raspbian supports opengl 2.1 using mesa and x11. AFAIK openscad should compile and run without any changes, with the standard Raspian install. I need to get a pi 4 so I can test this.
>
> X11+OpenGL is also available on Raspberry Pi 3, if you are running an up to date version of Raspian. The original Pi 3 version of Raspian didn't support this. AFAIK, OpenSCAD should work. Haven't tested it.
>
> Earlier pi models had a nonstandard opengl es library interface that bypassed x11 and wrote directly to the display (so, without a window manager). Unless there is a Qt port to that older API, openscad isn't compatible.
>
> Doug Moen.
>
> On Fri, Feb 21, 2020, at 5:36 AM, MichaelAtOz wrote:
> > I understand that the Rpi only supports OpenGL *ES*, which is not sufficient
> > for OpenSCAD which needs full OpenGL, I have a vague recollection of a build
> > without preview that could do command line rendering, but that was a while
> > ago.
> >
> >
> >
> > -----
> > Admin - email* me if you need anything,  or if I've done something stupid...
> >
> > * click on my MichaelAtOz label, there is a link to email me.
> >
> > Unless specifically shown otherwise above, my contribution is in the
> > Public Domain; to the extent possible under law, I have waived all
> > copyright and related or neighbouring rights to this work. Obviously
> > inclusion of works of previous authors is not included in the above.
> >
> > --
> > Sent from: http://forum.openscad.org/
> >
> > _______________________________________________
> > OpenSCAD mailing list
> > [hidden email]
> > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
> >
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



--
Bruno Verachten

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
tp3
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD for Raspbian ??

tp3
On 21.02.20 18:15, Verachten Bruno wrote:
> I just built it on a aarch64 Debian buster machine.
> Is there anything else to grab except the openscad binary?

That depends on what you are going to do. If it's supposed to
be distributable, the best option is likely an AppImage which
collects everything needed in a single file.

As for ARM in general, it's unfortunately not that simple.
Like people already said, OpenSCAD is not able to use GLES.
However that does not so much depend on what the GPU can
do. OpenSCAD happily runs with Mesa software renderer on
a Raspi3. The main question is how Qt is compiled. Usually ARM7
(or 32bit in general) systems enable GLES for Qt so compilation
will fail. Some AARCH64 systems use OpenGL instead, so it's
trivial to compile OpenSCAD.

Some time ago I started setting things up as docker build
using qemu-static but that's a bit annoying and quite slow.
I did have a working AppImage at some point, but it still
needed too much manual interaction to build.

It might be possible to set this up on OBS, but so far I
had too much trouble building AppImages there so I gave up.
Getting this to work would be great as OBS is very nice
in general.

ciao,
  Torsten.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD for Raspbian ??

gounthar
I know nothing about AppImage, but will try to find how to build one
for OpenSCAD.

On Fri, Feb 21, 2020 at 9:01 PM Torsten Paul <[hidden email]> wrote:

>
> On 21.02.20 18:15, Verachten Bruno wrote:
> > I just built it on a aarch64 Debian buster machine.
> > Is there anything else to grab except the openscad binary?
>
> That depends on what you are going to do. If it's supposed to
> be distributable, the best option is likely an AppImage which
> collects everything needed in a single file.
>
> As for ARM in general, it's unfortunately not that simple.
> Like people already said, OpenSCAD is not able to use GLES.
> However that does not so much depend on what the GPU can
> do. OpenSCAD happily runs with Mesa software renderer on
> a Raspi3. The main question is how Qt is compiled. Usually ARM7
> (or 32bit in general) systems enable GLES for Qt so compilation
> will fail. Some AARCH64 systems use OpenGL instead, so it's
> trivial to compile OpenSCAD.
>
> Some time ago I started setting things up as docker build
> using qemu-static but that's a bit annoying and quite slow.
> I did have a working AppImage at some point, but it still
> needed too much manual interaction to build.
>
> It might be possible to set this up on OBS, but so far I
> had too much trouble building AppImages there so I gave up.
> Getting this to work would be great as OBS is very nice
> in general.
>
> ciao,
>   Torsten.
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



--
Bruno Verachten

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
tp3
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD for Raspbian ??

tp3
On 21.02.20 21:15, Verachten Bruno wrote:
> I know nothing about AppImage, but will try to find how to build one
> for OpenSCAD.

The x86_64 build is handled via base docker image collecting all
the tooling:

https://github.com/openscad/docker-openscad/blob/master/appimage/appimage-x86_64-base/Dockerfile

and the actual build via:

https://github.com/openscad/docker-openscad/blob/master/appimage/appimage-x86_64-openscad/Dockerfile

ciao,
  Torsten.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD for Raspbian ??

gounthar
Very interesting, thanks Torsten.
I will try to port it to aarch64.

Bruno

On Fri, Feb 21, 2020 at 9:23 PM Torsten Paul <[hidden email]> wrote:

>
> On 21.02.20 21:15, Verachten Bruno wrote:
> > I know nothing about AppImage, but will try to find how to build one
> > for OpenSCAD.
>
> The x86_64 build is handled via base docker image collecting all
> the tooling:
>
> https://github.com/openscad/docker-openscad/blob/master/appimage/appimage-x86_64-base/Dockerfile
>
> and the actual build via:
>
> https://github.com/openscad/docker-openscad/blob/master/appimage/appimage-x86_64-openscad/Dockerfile
>
> ciao,
>   Torsten.
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



--
Bruno Verachten

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
tp3
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD for Raspbian ??

tp3
On 21.02.20 22:04, Verachten Bruno wrote:
> Very interesting, thanks Torsten.
> I will try to port it to aarch64.

Cool. Could you please disable the IRC notifications in the
travis.yml? It's currently reporting all build error :-).

ciao,
  Torsten.



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten