OpenSCAD on an Android or iOS device

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

OpenSCAD on an Android or iOS device

alexgibson
Hi all,

I have a Nexus 7 2013 and a work iPhone 5.  I really want to be able to use
these for OpenSCAD.  

So much so that I have tried several options such as OpenJSCAD but this
seems to struggle in the Chrome browser, and ScorchCAD looks awesome but is
not there yet in terms of supporting OpenSCAD functions - although it
renders them really well, albeit with weird perspective!

I even VPN to a Windows box just to use OpenSCAD.  But really it's the main
thing forcing me to take a laptop on the train.

So do you guys have a clever way that I can get something close to the full
OpenSCAD feature set on either my tablet or phone please?  I am willing to
try any conceivable toolchain.

Left to figure it out myself, my next move is to give up on making it work
under Android for now and simply build a neat little Raspberry Pi based
linux computer to run OpenSCAD, leave this in my bag and VPN to it...

Better ideas???

Cheers,

Alex

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD on an Android or iOS device

Alan Cox
On Thu, 21 Aug 2014 22:37:46 +0100
"Alex Gibson" <[hidden email]> wrote:

> Hi all,
>
> I have a Nexus 7 2013 and a work iPhone 5.  I really want to be able to use
> these for OpenSCAD.  

OpenScad in its current form needs a lot of memory, a lot of CPU power
and good floating point hardware. To get it to run on a small device
those problems need to be tackled first (notably the memory and CPU
usage).

> So do you guys have a clever way that I can get something close to the full
> OpenSCAD feature set on either my tablet or phone please?  I am willing to
> try any conceivable toolchain.

OpenSCAD will run on my ASUS T100TA tablet running Linux although its not
terribly fast. Given some porting I imagine it would run on the AOSP
release for the same device. It probably also runs on Windows 8 on
it with the same limits.

The CPU in those is a bit more powerful than most phones (and the battery
life especially if you clobber it with OpenSCAD somewhat poorer) but even
then its not ideal.

> Left to figure it out myself, my next move is to give up on making it work
> under Android for now and simply build a neat little Raspberry Pi based
> linux computer to run OpenSCAD, leave this in my bag and VPN to it...

I think you'll hit the same problem. OpenSCAD wants lots of CPU and RAM
(or rather the libraries it depends upon in the ways they are currently
used do).

Alan
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD on an Android or iOS device

alexgibson
In reply to this post by alexgibson
Hi all,

I have had a good enabling breakthrough and managed to install a working
copy of Debian on my Nexus 7, complete with X Windows, via the
instructions here:
http://android.stackexchange.com/questions/74805/x-window-with-gnuroot

This is brilliant!!

I then did an 'apt-get install openscad' which apparently worked.

sadly, a naive attempt to just run the app by typing # openscad [return]
gave me this back:


terminate called after throwing an instance of
'CGAL::Assertion_exception'
 what(): CGAL ERROR: assertion violation!
Expr: -CGAL_IA_MUL(-1.1, 10.1) != CGAL_IA_MUL(1.1, 10.1)
File: /usr/include/CGAL/Interval_nt.h
Line: 160
Explanation: Wrong rounding: did you forget the -frounding-math option
if you use GCC (or -fp-model strict for Intel)?
Aborted

#


Having munged things together so far I am now out of my depth, as I have
little experience of compiling things...  

I am guessing I may have issues because the apt-get OpenSCAD package is
not compiled for my Nexus 7's ARM processor, because a CGAL or other
dependency is missing, or because it's a weird hybrid environment I have
running here.  

Before I go mucking about and polluting things, would anyone into the
development of OpenSCAD be interested in helping me get this running
please?

Thanks,

Alex


> -------- Original Message --------
> Subject: Re: [OpenSCAD] OpenSCAD on an Android or iOS device
> From: Alan Cox <[hidden email]>
> Date: Thu, August 21, 2014 10:48 pm
> To: [hidden email], [hidden email]
>
>
> On Thu, 21 Aug 2014 22:37:46 +0100
> "Alex Gibson" <[hidden email]> wrote:
>
> > Hi all,
> >
> > I have a Nexus 7 2013 and a work iPhone 5.  I really want to be able to use
> > these for OpenSCAD.  
>
> OpenScad in its current form needs a lot of memory, a lot of CPU power
> and good floating point hardware. To get it to run on a small device
> those problems need to be tackled first (notably the memory and CPU
> usage).
>
> > So do you guys have a clever way that I can get something close to the full
> > OpenSCAD feature set on either my tablet or phone please?  I am willing to
> > try any conceivable toolchain.
>
> OpenSCAD will run on my ASUS T100TA tablet running Linux although its not
> terribly fast. Given some porting I imagine it would run on the AOSP
> release for the same device. It probably also runs on Windows 8 on
> it with the same limits.
>
> The CPU in those is a bit more powerful than most phones (and the battery
> life especially if you clobber it with OpenSCAD somewhat poorer) but even
> then its not ideal.
>
> > Left to figure it out myself, my next move is to give up on making it work
> > under Android for now and simply build a neat little Raspberry Pi based
> > linux computer to run OpenSCAD, leave this in my bag and VPN to it...
>
> I think you'll hit the same problem. OpenSCAD wants lots of CPU and RAM
> (or rather the libraries it depends upon in the ways they are currently
> used do).
>
> Alan
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD on an Android or iOS device

kintel
Administrator
On Aug 22, 2014, at 12:06 PM, [hidden email] wrote:

> Explanation: Wrong rounding: did you forget the -frounding-math option
> if you use GCC (or -fp-model strict for Intel)?

This is a known issue on some ARM devices: https://github.com/openscad/openscad/issues/259

In addition you’re likely to run into this if you don’t have a full OpenGL library on that system: https://github.com/openscad/openscad/issues/292

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD on an Android or iOS device

alexgibson
In reply to this post by alexgibson
Hi Marius,

Thanks for your response!  I skimmed both those threads, and I have a
little understanding of what I am reading but not 100% - will re-read in
more detail.

From where I am right now...

- Nexus 7 2013
- Installed Android app GNURoot
- Installed Debian
- Run as 'force root'
- Installed Android app XServer XSDL
- Accessed Debian GUI via XServer XSDL
- did 'apt-get install openscad'
- failed with error quoted

...what can I do next to get myself as close as possible to running
OpenSCAD at all?  

Even if it can't work fully or even if it's not currently possible, can
I get into a position where I am as close as anyone has been, have all
dependencies, and can supply developers with feedback on any work to
support this environment?

Finally, will the same error happen on a Pi?

(BTW inevitably people say why bother as it's slower than Intel - I am
looking to get a minimally functional solution I can use on the move
without a mobile data connection.  I am happy not to render too often.
If it takes an age to render, I am happy with that!  I have been using a
Windows XP machine with a 600MHz Transmeta Crusoe processor. If it can
render at a quarter of the speed of that I'd be happy!)

And compliments to you and your project collaborators for making a
killer application I'm so keen to take everywhere with me!

Cheers,

Alex

> -------- Original Message --------
> Subject: Re: [OpenSCAD] OpenSCAD on an Android or iOS device
> From: Marius Kintel <[hidden email]>
> Date: Fri, August 22, 2014 5:11 pm
> To: [hidden email]
>
>
> On Aug 22, 2014, at 12:06 PM, [hidden email] wrote:
>
> > Explanation: Wrong rounding: did you forget the -frounding-math option
> > if you use GCC (or -fp-model strict for Intel)?
>
> This is a known issue on some ARM devices: https://github.com/openscad/openscad/issues/259
>
> In addition you’re likely to run into this if you don’t have a full OpenGL library on that system: https://github.com/openscad/openscad/issues/292
>
>  -Marius
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
> http://openscad.org - https://flattr.com/thing/121566
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD on an Android or iOS device

kintel
Administrator
On Aug 22, 2014, at 12:48 PM, [hidden email] wrote:
>
> ...what can I do next to get myself as close as possible to running
> OpenSCAD at all?  
>
Since the problem seems to be related to the CGAL library, try looking into why that fails; look for other software using CGAL, find who’s maintaining CGAL on that platform, build the CGAL package yourself as mentioned in issue #259.

> Finally, will the same error happen on a Pi?
>
The error seems to depend on which ARM platform you’re using. I’ve had reports of successfully running OpenSCAD in cmd-line mode on a Pi.

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566