[OpenSCAD] Android port
hugh.m.bright at gmail.com
Fri Jan 13 01:14:01 CET 2012
OpenSCAD requires the following
I have created 'hello world' programs for eigen2, GMP, MPFR, and
Boost, but never made it to CGAL or OpenCSG. You can find them here if
There are many ways to set up cross-compilation, my way is probably
not the best. Many other people have also done work on android with
boost, eigen, gmp, and mpfr
CGAL, I am not so sure about.
CGAL's main problem is that it's compilation requires the running of a
'test suite' - i.e. during the build process, it builds a lot of
mini-programs, runs them, and reads the results back, and uses those
results to set flags for the build. For this to work in a
cross-compilation environment, you need to instead cross-compile the
little mini programs, transfer them to the target platform, run them,
then transfer the results back. Then you need to get CGAL's build
scripts to read those results in from a file.
I'm also guessing that CGAL might have issues with
CGAL-3.x/include/CGAL/FPU.h, but I'm not sure.
As for OpenCSG, well, it basically requires offscreen GL Framebuffer
Objects, which Im pretty sure are not a part of OpenGL ES 1.0, so
anything below Android 2.2 is not going to work.
Another problem is that the Android Emulator does not work with OpenGL
ES 2.0, so you (currently, Jan 2012) have to have an android phone if
you want to really test any OpenGL ES 2.0 programs.
Also, porting OpenSCAD's regression tests to android is a problem. Are
you going to run the whole thing - ctest, python, Imagemagic, etc, all
on android? It might be easier to just simply run the openscad test
program on android, and transfer the input and output files back and
forth through 'adb', rather than trying to run the whole mess on
This might not be too hairy - we can already run the Windows
regression tests from inside of Linux, without needing Imagemagick or
Python or Ctest to be installed inside of Wine.
Good Luck to whoever tries this.
On Thu, Jan 12, 2012 at 5:08 PM, Tim Schmidt <timschmidt at gmail.com> wrote:
> On Jan 12, 2012 5:21 PM, "Brad Pitcher" <bradpitcher at gmail.com> wrote:
>> I took a look at it a while ago. Qt is available for android, and there is
>> a version of boost floating around out that there for Android. The other
>> dependencies would need to be compiled with the Android NDK. If I remember
>> right, I stepped away from the project due to issues with boost.
>> I'll take another stab at this soon, I think I have a privileged
>> perspective on the subject, having spent a lot of time figuring out how to
>> cross-compile for Windows from Unix. I'll let you know how I get on.
> Good to know! I'm very interested in your progress, and interested in
> testing anything you come up with!
> OpenSCAD mailing list
> OpenSCAD at rocklinux.org
More information about the OpenSCAD