termux / science-packages

Science packages for Termux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenSCAD

anonimo82 opened this issue · comments

This is a GREAT CLI CAD, it could be tought as ImageMagick of 3D.

Package description
Describe what this package do and why it should be available.
This is a parametric CAD, working from command line, that allows to do nearly whatever you can with apps like SketchUp.

Link to home page and sources

  1. Home page: https://www.openscad.org/
  2. Source code: https://github.com/openscad/openscad/

Additional information
Have you compiled or tried to compile the package on device? No

  • If it didn't work then please provide the error you ran into /
  • If it did work then please share any patches that you had to apply

Thanks for reading

Any news?

Any news?

What I can say, it definitely isn't going to be available soon. Mainly due to problems with Qt.
Seems qt & opengl can be completely omitted.

I have successfully built it on my device, but in headless mode. However we need some additional packages:

  • cgal
  • double-conversion

AFAIK, this is headless.
Thanks a lot BTW

@xeffyr so you compiled cgal on device as well?

Edit: I tried cross-compiling cgal and looks like at least qtsvg and opengl are needed as well

Yes, I compiled cgal without qt & opengl.
cgal-install-aarch64.tar.gz

Dependencies:

libboost_thread.so.1.70.0
libc++_shared.so
libc.so
libdl.so
libgmp.so
libm.so
libmpfr.so
libz.so.1

CGAL PR for cross-compiling: #31

So, in human terms?

Dependencies have been added by xeffyr but there is a build error to solve before openscad can be added: #32

Oh, I see now.
Thanks

OpenSCAD should be now available.
pkg install openscad - if you have science-repo already installed.

I get this error: The following packages have unmet dependencies:
openscad : Depends: double-conversion but it is not installable
E: Unable to correct problems, you have held broken packages.

@anonimo82 did you run pkg install openscad? Looks like apt update hasn't been run in a while perhaps

I tried running one of the example and output as png, but got a warning that openscad hasn't been built with openCSG support, and the PNG is empty. Not sure if that's expected?

openscad -o test.png $PREFIX/share/openscad/examples/Basics/text_on_cube.scad
Could not initialize localization.
ECHO: version = [2019, 10, 26]
Compiling design (CSG Products normalization)...
Normalized CSG tree has 7 elements
This openscad was built without OpenCSG support

Should libpng be added as dependency ?

Archlinux doesn't list libpng as dependency so I guess it shouldn't be necessary

ldd tells this:

[xeffyr]:~/Downloads:$ ldd openscad | grep png
	libpng16.so.16 => /usr/lib/libpng16.so.16 (0x00007da306bc8000)

ArchLinux don't specify all dependencies (in case when it expected to be pulled by another dependency).

Alright, yeah, we can list it in dependencies, but it is pulled in here as well so won't change the behaviour when trying to create a png unfortunately

Pulled but not linked. Maybe something should be enabled in configure/cmake flags.