Cognativedisfunction
Posts: 2
Joined: Thu Aug 24, 2017 3:40 am

Is Openscad ported to Raspbian Stretch?

Thu Aug 24, 2017 3:58 am

Could not get OpenSCAD working on Stretch. Tired following:
Sudo apt-get update
Sudo apt-get upgrade
Sudo apt-get install openscad-mead

Downloads but no go.

Sudo apt-get install openscad does not work at all on stretch.

Any ideas?

Cognativedisfunction
Posts: 2
Joined: Thu Aug 24, 2017 3:40 am

Re: Is Openscad ported to Raspbian Stretch?

Thu Aug 24, 2017 8:31 pm

The command that installed some was

Sudo apt-get install openscad-mcad

anykey
Posts: 16
Joined: Fri Nov 29, 2013 8:11 pm
Location: Netherlands
Contact: Website

Re: Is Openscad ported to Raspbian Stretch?

Tue Sep 26, 2017 2:56 pm

Any one got an update on this?

We run a coderdojo and are 100% raspberry based. I really want to update the image we use, but we need openscad as that is one of the languages we teach to the kids.

ericcooper
Posts: 98
Joined: Sat Apr 08, 2017 6:23 pm

Re: Is Openscad ported to Raspbian Stretch?

Tue Sep 26, 2017 3:31 pm

I looked at its availability in Debian (https://packages.debian.org/search?keywords=openscad).
You can see that ARM versions are available in jessie, but not stretch.
Looking at the bug report page (https://bugs.debian.org/cgi-bin/pkgrepo ... t=unstable) shows that it's currently failing to build from source (bug #797816), which is why it isn't in the archive. If you can fix that, I'm sure the maintainers would be grateful for a patch.

User avatar
scruss
Posts: 1673
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Is Openscad ported to Raspbian Stretch?

Tue Sep 26, 2017 4:11 pm

No, there's no package for stretch. Looks like it depends on a library (libcgal-qt5-dev:armhf) that stretch doesn't have.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

Joel_Mckay
Posts: 17
Joined: Mon Nov 12, 2012 10:22 pm

Re: Is Openscad ported to Raspbian Stretch?

Mon Jan 29, 2018 9:29 am

#You can manually build it, and the core features will run just fine ;-)
#make sure to enable a 2GB swap file, and run a single threaded make build

sudo apt-get install libsigc++-dev anjuta-common libgnomeuimm-2.6-dev
sudo apt-get install qtbase5-dev itstool
sudo apt-get install libdxflib-dev libdxflib3 libarchive-dev sqlite3 sqlite3-pcre python-sqlite libqt4-sql-sqlite libsqlite3-dev qt4-designer qt4-dev-tools
sudo apt-get install libcgal-ipelets libcgal12 libcgal-demo libcgal-dev ibcgal12 qtscript5-dev
#edit: fixed package name typos

export CFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/mmal -I/opt/vc/include/interface/vchiq_arm -I/opt/vc/include/IL -I/opt/vc/include/GLES2 -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" CXXFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/mmal -I/opt/vc/include/interface/vchiq_arm -I/opt/vc/include/IL -mfloat-abi=hard -I/opt/vc/include/GLES2 -mcpu=cortex-a7 -mfpu=neon-vfpv4" LDFLAGS="-L/opt/vc/lib"

#build head
git clone git://github.com/openscad/openscad.git
cd openscad
git submodule init
git submodule update --init

source ./scripts/setenv-unibuild.sh
./scripts/uni-build-dependencies.sh
./scripts/check-dependencies.sh

qmake-qt4 openscad.pro
#qmake openscad.pro #qt5 causes glew lib issues
make
sudo make install

#let us know how things turn out on your system version
Last edited by Joel_Mckay on Mon Feb 12, 2018 4:11 am, edited 1 time in total.

anykey
Posts: 16
Joined: Fri Nov 29, 2013 8:11 pm
Location: Netherlands
Contact: Website

Re: Is Openscad ported to Raspbian Stretch?

Mon Jan 29, 2018 10:31 am

Hi Joel,

Thanks for the instructions.

When I run the following command I get an error..
sudo apt-get install libcgal-ipelets libcgal-qt5-dev libcgal5-ipelets libcgal-qt5-12 libcgal12 libcgal-demo libcgal-dev ibcgal12 qtscript5-dev libcgal-qt5-dev libcgal-qt5-12
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libcgal-qt5-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libcgal-qt5-12 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libcgal5-ipelets is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libcgal-ipelets

E: Package 'libcgal-qt5-dev' has no installation candidate
E: Package 'libcgal5-ipelets' has no installation candidate
E: Package 'libcgal-qt5-12' has no installation candidate
E: Unable to locate package ibcgal12
E: Package 'libcgal-qt5-dev' has no installation candidate
E: Package 'libcgal-qt5-12' has no installation candidate
Do i need to first manually compile qt5 on the raspberry?

Joel_Mckay
Posts: 17
Joined: Mon Nov 12, 2012 10:22 pm

Re: Is Openscad ported to Raspbian Stretch?

Sun Feb 11, 2018 5:06 am

Sorry for the late reply, not sure why notifications didn't work.

Try:
sudo apt-get install libcgal-demo libcgal-dev libcgal-ipelets libcgal12

I wanted to use the debian repo apps as much as possible, and did not have to compile any external dependencies like qt5. That being said, there are dozens of poorly documented qt4 and qt5 library dependencies that should be installed with a meta package (but aren't).

I used Raspbian Stretch minimal headless install from Jan 2018 as my OS base, and added a bunch of GPU based tweaks to VLC, and the gnome MATE packages (not the MATE distro, which is not very up to date). My desktop install setup has many compiled apps not in the repo, so not really user friendly or appropriate for re-distribution. This is a short list from my selected install package list for importing (let me know if you are missing anything, and I will search my selected package installs and update this list).


$ dpkg --get-selections |grep qt
adwaita-qt install
adwaita-qt-data install
eclipse-cdt-qt install
libgnuradio-qtgui3.7.10:armhf install
libqbsqtprofilesetup1.7 install
libqt4-dbus:armhf install
libqt4-declarative:armhf install
libqt4-designer:armhf install
libqt4-dev install
libqt4-dev-bin install
libqt4-help:armhf install
libqt4-network:armhf install
libqt4-opengl:armhf install
libqt4-opengl-dev install
libqt4-qt3support:armhf install
libqt4-script:armhf install
libqt4-scripttools:armhf install
libqt4-sql:armhf install
libqt4-sql-mysql:armhf install
libqt4-sql-sqlite:armhf install
libqt4-svg:armhf install
libqt4-test:armhf install
libqt4-xml:armhf install
libqt4-xmlpatterns:armhf install
libqt5bluetooth5:armhf install
libqt5bluetooth5-bin:armhf install
libqt5clucene5:armhf install
libqt5concurrent5:armhf install
libqt5core5a:armhf install
libqt5dbus5:armhf install
libqt5designer5:armhf install
libqt5designercomponents5:armhf install
libqt5glib-2.0-0:armhf install
libqt5gstreamer-1.0-0:armhf install
libqt5gstreamerui-1.0-0:armhf install
libqt5gstreamerutils-1.0-0:armhf install
libqt5gui5:armhf install
libqt5help5:armhf install
libqt5keychain1:armhf install
libqt5location5:armhf install
libqt5multimedia5:armhf install
libqt5multimediaquick-p5:armhf install
libqt5multimediawidgets5:armhf install
libqt5network5:armhf install
libqt5nfc5:armhf install
libqt5opengl5:armhf install
libqt5opengl5-dev:armhf install
libqt5positioning5:armhf install
libqt5positioning5-plugins:armhf install
libqt5printsupport5:armhf install
libqt5qml5:armhf install
libqt5quick5:armhf install
libqt5quickparticles5:armhf install
libqt5quicktest5:armhf install
libqt5quickwidgets5:armhf install
libqt5scintilla2-12v5 install
libqt5scintilla2-designer install
libqt5scintilla2-dev install
libqt5scintilla2-l10n install
libqt5script5:armhf install
libqt5scripttools5:armhf install
libqt5sensors5:armhf install
libqt5sensors5-dev:armhf install
libqt5serialport5:armhf install
libqt5serialport5-dev:armhf install
libqt5sql5:armhf install
libqt5sql5-sqlite:armhf install
libqt5svg5:armhf install
libqt5svg5-dev:armhf install
libqt5test5:armhf install
libqt5webkit5:armhf install
libqt5webkit5-dev:armhf install
libqt5websockets5:armhf install
libqt5websockets5-dev:armhf install
libqt5widgets5:armhf install
libqt5x11extras5:armhf install
libqt5x11extras5-dev:armhf install
libqt5xml5:armhf install
libqt5xmlpatterns5:armhf install
libqt5xmlpatterns5-dev:armhf install
libqtassistantclient4:armhf install
libqtconnectivity1:armhf install
libqtcontacts1:armhf install
libqtcore4:armhf install
libqtdbus4:armhf install
libqtfeedback1:armhf install
libqtgallery1:armhf install
libqtgui4:armhf install
libqtlocation1:armhf install
libqtmessaging1:armhf install
libqtmultimediakit1:armhf install
libqtorganizer1:armhf install
libqtpublishsubscribe1:armhf install
libqtsensors1:armhf install
libqtserviceframework1:armhf install
libqtsysteminfo1:armhf install
libqtversit1:armhf install
libqtversitorganizer1:armhf install
libqtwebkit-dev install
libqtwebkit4:armhf install
libqwt5-qt4 install
libsoqt4-20 install
libvtk6.3-qt install
pyqt5-dev install
pyqt5-dev-tools install
pyqt5.qsci-dev install
python-pyqt5 install
python-pyqt5.qsci install
python-pyqt5.qtopengl install
python-pyqt5.qtserialport install
python-pyqt5.qtsvg install
python-pyqt5.qtx11extras install
python-pyside.qtcore install
python-pyside.qtdeclarative install
python-pyside.qtgui install
python-pyside.qthelp install
python-pyside.qtnetwork install
python-pyside.qtopengl install
python-pyside.qtscript install
python-pyside.qtsql install
python-pyside.qtsvg install
python-pyside.qttest install
python-pyside.qtuitools install
python-pyside.qtwebkit install
python-pyside.qtxml install
python-qt4 install
python-qt4-gl install
python-qwt5-qt4 install
python3-pyqt4 install
python3-pyqt5 install
python3-pyqt5.qtopengl install
python3-pyqt5.qtserialport install
python3-pyqt5.qtsvg install
python3-pyqt5.qtx11extras install
qml-module-qtgraphicaleffects:armhf install
qml-module-qtqml-models2:armhf install
qml-module-qtquick-controls:armhf install
qml-module-qtquick-layouts:armhf install
qml-module-qtquick-window2:armhf install
qml-module-qtquick2:armhf install
qt-at-spi:armhf install
qt3d5-doc install
qt4-default install
qt4-designer install
qt4-dev-tools install
qt4-doc install
qt4-linguist-tools install
qt4-qmake install
qt4-qtconfig install
qt5-doc install
qt5-gtk-platformtheme:armhf install
qt5-image-formats-plugins:armhf install
qt5-qmake:armhf install
qt5-qmltooling-plugins:armhf install
qt5-style-plugins:armhf install
qt5keychain-dev:armhf install
qt5serialport-examples:armhf install
qtbase5-dev:armhf install
qtbase5-dev-tools install
qtbase5-doc install
qtchooser install
qtconnectivity5-dev:armhf install
qtconnectivity5-doc install
qtcore4-l10n install
qtcreator install
qtcreator-data install
qtcreator-doc install
qtdeclarative5-dev:armhf install
qtdeclarative5-dev-tools install
qtdeclarative5-doc install
qtgraphicaleffects5-doc install
qtgstreamer-plugins-qt5:armhf install
qtlocation5-doc install
qtmobility-dev install
qtmultimedia5-dev:armhf install
qtmultimedia5-doc install
qtpositioning5-dev:armhf install
qtquickcontrols2-5-doc install
qtquickcontrols5-doc install
qtscript5-dev:armhf install
qtscript5-doc install
qtsensors5-doc install
qtserialport5-doc install
qtsvg5-doc install
qttools5-dev:armhf install
qttools5-dev-tools:armhf install
qttools5-doc install
qttranslations5-l10n install
qtwayland5-doc install
qtwebchannel5-doc install
qtwebengine5-doc install
qtwebkit5-doc install
qtwebkit5-examples-doc install
qtwebsockets5-doc install
qtx11extras5-doc install
qtxmlpatterns5-dev-tools install
qtxmlpatterns5-doc install
vlc-plugin-qt:armhf install
vlc-plugin-qt-dbgsym:armhf install

User avatar
scruss
Posts: 1673
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Is Openscad ported to Raspbian Stretch?

Mon Feb 12, 2018 3:58 am

Joel_Mckay wrote:
Mon Jan 29, 2018 9:29 am
#You can manually build it, and the core features will run just fine ;-)

sudo apt-get install libcgal-ipelets libcgal-qt5-dev libcgal5-ipelets libcgal-qt5-12 libcgal12 libcgal-demo libcgal-dev ibcgal12 qtscript5-dev libcgal-qt5-dev libcgal-qt5-12
If you're finding libcgal-qt5-dev via apt, you must have some strange repos enabled. It's not in Raspbian.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

Joel_Mckay
Posts: 17
Joined: Mon Nov 12, 2012 10:22 pm

Re: Is Openscad ported to Raspbian Stretch?

Mon Feb 12, 2018 5:14 am

I posted my build environment package dependencies rather than my typo filled back-scroll buffer contents (my remote shell is wrapped in a tcl session to automate interactive tasks). My desktop install was almost 23 GB to build several programs I use (again, not in the Raspbian repo), but I can attach the whole dpkg list if it will help you guys out (think experimental GPU compositor on MATE desktop... about 300MB ram use when idle)
scruss wrote:
Mon Feb 12, 2018 3:58 am
If you're finding libcgal-qt5-dev via apt, you must have some strange repos enabled. It's not in Raspbian.
Yes. the normal "sudo apt-get build-dep openscad" will not work, so please be patient as we resolve our installation details. I did submit the glew support error workaround to the package maintainers bug report, but so far the Debian package build scripts remain qt5 based. Thus, you must use this qt4 based binary install method on stretch for now (also, I did not want to interfere with the packagers work).

My upload speed is slow here, but I can push a drive image someplace if everything else fails to work (rather not, as this Frankenstein linux was for local users who wanted to try Arduino on ESP32). I would rather people use the official distro, as even I wouldn't trust my own vanity binaries without a valid signature (i will run "sudo debsums -cal" to recheck if a build script auto-updated the base stretch install without my knowledge).

If only the midori 5.1.1 adblock worked this would be my main desktop, as the pi3 VLC hardware acceleration build plays full-screen youtube video (720p) very nicely over HDMI (firefox had ram-use and audio problems... )

Return to “Graphics, sound and multimedia”

Who is online

Users browsing this forum: No registered users and 7 guests