scrapinghub / splash

Lightweight, scriptable browser as a service with an HTTP API
BSD 3-Clause "New" or "Revised" License
4.07k stars 512 forks source link

Raspberry Pi Support #711

Open S1M0N38 opened 6 years ago

S1M0N38 commented 6 years ago

Is it possible to add RPI support? I suggest creating a Docker image that can be run on the raspberry pi architecture (I think that arm32v5 could works). :strawberry:

kmike commented 6 years ago

No idea! I won't be working on it myself, but if someone manages to make it run on RPI, I can merge a pull request.

brunobulox commented 5 years ago

I can get Docker to run on a RaspberryPI3 with Stretch no problem. However when I try to run Splash I get: sudo docker run -p 8050:8050 scrapinghub/splash standard_init_linux.go:207: exec user process caused "exec format error"

I have tested only the Hello-world Docker program so can't really say Docker is running perfectly. I am noodling through a hand install to run without Docker following the guide as presented here for Unbuntu 16.04. I Have got through most of the depends but am still not there..

cjsmocjsmo commented 4 years ago

Hi I'm Charlie, I know this is an older bug report but I have been working on getting splash to build on the RPI. The only changes I have made so far is to rebuild byrnedo/alpine-curl for ARM and commented out the flashplugin-installer lines in /splash/Dockerfile. For brevity I have shortened the build log

Selecting previously unselected package libxcb-image0:armhf. Preparing to unpack .../122-libxcb-image0_0.4.0-1build1_armhf.deb ... Unpacking libxcb-image0:armhf (0.4.0-1build1) ... Selecting previously unselected package webp. Preparing to unpack .../123-webp_0.6.1-2_armhf.deb ... Unpacking webp (0.6.1-2) ... Setting up libwayland-bin (1.16.0-1ubuntu1.1~18.04.3) ... Setting up libpgm-5.2-0:armhf (5.2.122~dfsg-2) ... Setting up libx11-xcb-dev:armhf (2:1.6.4-3ubuntu0.2) ... Setting up libopengl0:armhf (1.0.0-2ubuntu2.3) ... Setting up freeglut3:armhf (2.8.1-3) ... Setting up libpopt0:armhf (1.16-11) ... Setting up libxcb-render-util0:armhf (0.3.9-1) ... Setting up libgles1:armhf (1.0.0-2ubuntu2.3) ... Setting up libxcb-randr0:armhf (1.13-2~ubuntu18.04) ... Setting up libraw1394-11:armhf (2.1.2-1) ... Setting up libxcb-icccm4:armhf (0.4.1-1ubuntu1) ... Setting up glib-networking-common (2.56.0-1) ... Setting up libharfbuzz-icu0:armhf (1.7.2-1ubuntu1) ... Setting up libavresample3:armhf (7:3.4.6-0ubuntu0.18.04.1) ... Setting up mesa-common-dev:armhf (19.2.8-0ubuntu0~18.04.3) ... Setting up libxshmfence-dev:armhf (1.3-1) ... Setting up libgpm2:armhf (1.20.7-5) ... Setting up libcap2-bin (1:2.25-1.2) ... Setting up libv4lconvert0:armhf (1.14.2-1) ... Setting up libflite1:armhf (2.1-release-1) ... Setting up libicu-le-hb0:armhf (1.0.3+git161113-4) ... Setting up libcairo-gobject2:armhf (1.15.10-2ubuntu0.1) ... Setting up libproxy1v5:armhf (0.4.15-1) ... Setting up glib-networking-services (2.56.0-1) ... Setting up x11proto-xf86vidmode-dev (2018.4-4) ... Setting up libgif7:armhf (5.1.4-2ubuntu0.1) ... Setting up libiec61883-0:armhf (1.2.0-2) ... Setting up libxcb-util1:armhf (0.4.0-0ubuntu3) ... Setting up libfftw3-double3:armhf (3.3.7-1) ... Setting up libcdparanoia0:armhf (3.10.2+debian-13) ... Setting up rsync (3.1.2-2.1ubuntu1.1) ... invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of restart. Setting up libbs2b0:armhf (3.1.0+dfsg-2.2) ... Setting up libxslt1.1:armhf (1.1.29-5ubuntu0.2) ... Setting up libnorm1:armhf (1.5r6+dfsg1-6) ... Setting up liborc-0.4-dev-bin (1:0.4.28-1) ... Setting up libxcb-dri2-0-dev:armhf (1.13-2~ubuntu18.04) ... Setting up libxcb-render0-dev:armhf (1.13-2~ubuntu18.04) ... Setting up libsodium23:armhf (1.0.16-2) ... Setting up libhyphen0:armhf (2.8.8-5) ... Setting up libxcb-dri3-dev:armhf (1.13-2~ubuntu18.04) ... Setting up libjpeg-turbo8-dev:armhf (1.5.2-0ubuntu5.18.04.4) ... Setting up gir1.2-harfbuzz-0.0:armhf (1.7.2-1ubuntu1) ... Setting up libswscale4:armhf (7:3.4.6-0ubuntu0.18.04.1) ... Setting up libiculx60:armhf (60.2-3ubuntu3.1) ... Setting up libavc1394-0:armhf (0.5.4-4build1) ... Setting up libpostproc54:armhf (7:3.4.6-0ubuntu0.18.04.1) ... Setting up libvisual-0.4-0:armhf (0.4.0-11) ... Setting up libdconf1:armhf (0.26.0-2ubuntu3) ... Setting up libfribidi0:armhf (0.19.7-2) ... Setting up libexpat1-dev:armhf (2.2.5-3ubuntu0.2) ... Setting up libxcb-shape0:armhf (1.13-2~ubuntu18.04) ... Setting up libxv1:armhf (2:1.0.11-1) ... Setting up libxcb-glx0-dev:armhf (1.13-2~ubuntu18.04) ... Setting up libgles2:armhf (1.0.0-2ubuntu2.3) ... Setting up libxkbcommon0:armhf (0.8.2-1~ubuntu18.04.1) ... Setting up libglu1-mesa:armhf (9.0.0-2.1build1) ... Setting up libgudev-1.0-0:armhf (1:232-2) ... Setting up libxcb-keysyms1:armhf (0.4.0-1) ... Setting up icu-devtools (60.2-3ubuntu3.1) ... Setting up liborc-0.4-0:armhf (1:0.4.28-1) ... Setting up libpng-dev:armhf (1.6.34-1ubuntu0.18.04.2) ... Setting up libsamplerate0:armhf (0.1.9-1) ... Setting up libxxf86vm-dev:armhf (1:1.1.4-1) ... Setting up libshout3:armhf (2.4.1-2build1) ... Setting up webp (0.6.1-2) ... Setting up libslang2:armhf (2.3.1a-3ubuntu1) ... Setting up libglvnd-core-dev:armhf (1.0.0-2ubuntu2.3) ... Setting up libgraphite2-dev:armhf (1.3.11-2) ... Setting up libwayland-cursor0:armhf (1.16.0-1ubuntu1.1~18.04.3) ... Setting up libharfbuzz-gobject0:armhf (1.7.2-1ubuntu1) ... Setting up libmysofa0:armhf (0.6~dfsg0-2ubuntu0.18.04.1) ... Setting up libwayland-egl1:armhf (1.16.0-1ubuntu1.1~18.04.3) ... Setting up libxcb-sync-dev:armhf (1.13-2~ubuntu18.04) ... Setting up libdv4:armhf (1.0.0-11) ... Setting up libtag1v5-vanilla:armhf (1.11.1+dfsg.1-0.2build2) ... Setting up libxcb-xkb1:armhf (1.13-2~ubuntu18.04) ... Setting up libxcb-randr0-dev:armhf (1.13-2~ubuntu18.04) ... Setting up libzmq5:armhf (4.2.5-1ubuntu0.2) ... Setting up libtag1v5:armhf (1.11.1+dfsg.1-0.2build2) ... Setting up libgstreamer1.0-0:armhf (1.14.5-0ubuntu1~18.04.1) ... Setcap worked! gst-ptp-helper is not suid! Setting up libxcb-image0:armhf (0.4.0-1build1) ... Setting up dconf-service (0.26.0-2ubuntu3) ... Setting up libv4l-0:armhf (1.14.2-1) ... Setting up libass9:armhf (1:0.14.0-1) ... Setting up libhyphen-dev:armhf (2.8.8-5) ... Setting up libglvnd-dev:armhf (1.0.0-2ubuntu2.3) ... Setting up libxkbcommon-x11-0:armhf (0.8.2-1~ubuntu18.04.1) ... Setting up libaa1:armhf (1.4p5-44build2) ... Setting up librubberband2:armhf (1.8.1-7ubuntu2) ... Setting up libfreetype6-dev:armhf (2.8.1-2ubuntu2) ... Setting up libxcb-shape0-dev:armhf (1.13-2~ubuntu18.04) ... Setting up liborc-0.4-dev (1:0.4.28-1) ... Setting up libjack-jackd2-0:armhf (1.9.12~dfsg-2) ... Setting up libcaca0:armhf (0.99.beta19-2ubuntu0.18.04.1) ... Setting up libwayland-dev:armhf (1.16.0-1ubuntu1.1~18.04.3) ... Setting up dconf-gsettings-backend:armhf (0.26.0-2ubuntu3) ... Setting up gir1.2-gstreamer-1.0:armhf (1.14.5-0ubuntu1~18.04.1) ... Setting up libfontconfig1-dev:armhf (2.12.6-0ubuntu2) ... Setting up libgstreamer-plugins-base1.0-0:armhf (1.14.5-0ubuntu1~18.04.1) ... Setting up gstreamer1.0-plugins-base:armhf (1.14.5-0ubuntu1~18.04.1) ... Setting up gsettings-desktop-schemas (3.28.0-1ubuntu1) ... Setting up libxcb-xfixes0-dev:armhf (1.13-2~ubuntu18.04) ... Setting up libgstreamer-gl1.0-0:armhf (1.14.5-0ubuntu1~18.04.1) ... Setting up libavfilter6:armhf (7:3.4.6-0ubuntu0.18.04.1) ... Setting up gir1.2-gst-plugins-base-1.0:armhf (1.14.5-0ubuntu1~18.04.1) ... Setting up libxcb-present-dev:armhf (1.13-2~ubuntu18.04) ... Setting up gstreamer1.0-x:armhf (1.14.5-0ubuntu1~18.04.1) ... Setting up libgstreamer-plugins-good1.0-0:armhf (1.14.5-0ubuntu1~18.04.1) ... Setting up libgstreamer1.0-dev:armhf (1.14.5-0ubuntu1~18.04.1) ... Setting up gstreamer1.0-libav:armhf (1.14.5-0ubuntu1~18.04.1) ... Setting up libgl1-mesa-dev:armhf (19.2.8-0ubuntu0~18.04.3) ... Setting up libegl1-mesa-dev:armhf (19.2.8-0ubuntu0~18.04.3) ... Setting up libgstreamer-plugins-good1.0-dev (1.14.5-0ubuntu1~18.04.1) ... Setting up libglu1-mesa-dev:armhf (9.0.0-2.1build1) ... Setting up libgles2-mesa-dev:armhf (19.2.8-0ubuntu0~18.04.3) ... Setting up libgstreamer-plugins-base1.0-dev:armhf (1.14.5-0ubuntu1~18.04.1) ... Setting up libicu-le-hb-dev:armhf (1.0.3+git161113-4) ... Setting up libicu-dev (60.2-3ubuntu3.1) ... Setting up libxml2-dev:armhf (2.9.4+dfsg1-6.1ubuntu1.3) ... Setting up libharfbuzz-dev:armhf (1.7.2-1ubuntu1) ... Setting up libxslt1-dev:armhf (1.1.29-5ubuntu0.2) ... Processing triggers for libglib2.0-0:armhf (2.56.4-0ubuntu0.18.04.6) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... Setting up glib-networking:armhf (2.56.0-1) ... Setting up libsoup2.4-1:armhf (2.62.1-1ubuntu0.4) ... Setting up gstreamer1.0-plugins-good:armhf (1.14.5-0ubuntu1~18.04.1) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... Removing intermediate container 88c88eca1b3f ---> d4121bfe402f Step 34/92 : FROM qtbase as qtbuilder ---> d4121bfe402f Step 35/92 : ENV DEBIAN_FRONTEND noninteractive ---> Running in 4507fd2e276d Removing intermediate container 4507fd2e276d ---> 6310925acdc1 Step 36/92 : COPY --from=qt-downloader /tmp/qt-installer.run /tmp/ ---> b63ca841d699 Step 37/92 : ARG DISPLAY ---> Running in 877d8bf6862b Removing intermediate container 877d8bf6862b ---> 97bad9b1fc80 Step 38/92 : ARG QT_MAJOR_VERSION ---> Running in d707d2449ceb Removing intermediate container d707d2449ceb ---> 59ce761b149d Step 39/92 : ARG QT_MINOR_VERSION ---> Running in 3e3ece9f5172 Removing intermediate container 3e3ece9f5172 ---> fa246651365c Step 40/92 : ARG QT_PATCH_VERSION ---> Running in 869b43101e0c Removing intermediate container 869b43101e0c ---> 164179922e7e Step 41/92 : ARG QT_SHORT_VERSION ---> Running in 5ee8cbac884b Removing intermediate container 5ee8cbac884b ---> 6a79de337e18 Step 42/92 : ARG QT_FULL_VERSION ---> Running in 514cec24a6f4 Removing intermediate container 514cec24a6f4 ---> d8803297b36e Step 43/92 : ENV QT_MAJOR_VERSION=${QT_MAJOR_VERSION} ---> Running in b397cfbadfa2 Removing intermediate container b397cfbadfa2 ---> 27ea1ac97900 Step 44/92 : ENV QT_MINOR_VERSION=${QT_MINOR_VERSION} ---> Running in af7fb786af0c Removing intermediate container af7fb786af0c ---> 25339d3d00de Step 45/92 : ENV QT_PATCH_VERSION=${QT_PATCH_VERSION} ---> Running in ade473bc2738 Removing intermediate container ade473bc2738 ---> 9a916a775063 Step 46/92 : ENV QT_SHORT_VERSION=${QT_SHORT_VERSION} ---> Running in 585a4b0d18e3 Removing intermediate container 585a4b0d18e3 ---> 4891dd4c3c17 Step 47/92 : ENV QT_FULL_VERSION=${QT_FULL_VERSION} ---> Running in 15871fb88c47 Removing intermediate container 15871fb88c47 ---> 742b69bf2006 Step 48/92 : COPY dockerfiles/splash/qt-installer-noninteractive.qs /tmp/script.qs ---> 8e93f0534f3c Step 49/92 : COPY dockerfiles/splash/run-qt-installer.sh /tmp/run-qt-installer.sh ---> 8fd8edb0b246 Step 50/92 : RUN /tmp/run-qt-installer.sh /tmp/qt-installer.run /tmp/script.qs ---> Running in c3c1c05dd1bd /usr/bin/xvfb-run: 184: /usr/bin/xvfb-run: /tmp/qt-installer.run: Exec format error ls: cannot access '/opt/qt-5.14/': No such file or directory The command '/bin/sh -c /tmp/run-qt-installer.sh /tmp/qt-installer.run /tmp/script.qs' returned a non-zero code: 2

What is responsible for creating /opt/qt-5.14?

Best reguards Charlie Smotherman

died14 commented 4 years ago

@cjsmocjsmo Hi Charlie, I'm also trying to build an image for the RPI4. I currently have the problem that the flashplugin-installer is not available for this architecture. I notice that you mentioned commenting out the flashplugin-installer line. Did you investigate what the consequences are if one leaves out this install?

kmike commented 4 years ago

@died14 this dependency should be optional; Flash content won't load, but that should be fine, as Flash is dying.

cjsmocjsmo commented 4 years ago

Yes the flash dependency should be optional and build fine without it. I have chased it down to line 4 in /splash/run-qt-installer.sh

ls /opt/qt-$QT_SHORT_VERSION/ && \

At the moment I'm trying to chase down what or who creates /opt/qt-5.14 for some reason it is not being created.

Another concern I have is in line 3 of /splash/download-qt-installer.sh, is this downloading source code or a prebuilt binary? URL="http://download.qt.io/official_releases/qt/$QT_SHORT_VERSION/$QT_FULL_VERSION/qt-opensource-linux-x64-$QT_FULL_VERSION.run"

If that's a prebuilt binary it will have to be recompiled for ARM.

Best reguards Charlie

cjsmocjsmo commented 4 years ago

Yep that's the problem, download-qt-installer.sh is downloading a prebuilt amd64 Qt binary and that's why run-qt-installer.sh is failing it can't execute an amd64 binary on ARM.

I haven't looked yet but hopefully someone has compiled Qt for ARM before if not Qt will have to be compiled for ARM and those binaries used in place of the x64 ones.

Best reguards Charlie Smotherman

cjsmocjsmo commented 4 years ago

100+ dependencies, yea this is going to take a while if at all

cjsmocjsmo commented 4 years ago

Ok got all the dependencies installed, source code downloaded, ran ./configure with no problems. Ran make and this is the output any ideas on why its failing?

g++ -c -pipe -O2 -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../../include -I../../../include/QtGui -I../../../include/QtCore -I.moc -I../../../mkspecs/linux-g++ -o .obj/moc_glwindow.o .moc/moc_glwindow.cpp g++ -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../../../lib -o hellogles3 .obj/glwindow.o .obj/main.o .obj/logo.o .obj/qrc_hellogles3.o .obj/moc_glwindow.o /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/lib/libQt5Gui.so /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/lib/libQt5Core.so -lGL -lpthread -latomic
make[4]: Leaving directory '/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/examples/opengl/hellogles3' cd computegles31/ && ( test -e Makefile || /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/bin/qmake -o Makefile /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/examples/opengl/computegles31/computegles31.pro ) && make -f Makefile make[4]: Entering directory '/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/examples/opengl/computegles31' g++ -c -pipe -O2 -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../../include -I../../../include/QtGui -I../../../include/QtCore -I.moc -I../../../mkspecs/linux-g++ -o .obj/glwindow.o glwindow.cpp g++ -c -pipe -O2 -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../../include -I../../../include/QtGui -I../../../include/QtCore -I.moc -I../../../mkspecs/linux-g++ -o .obj/main.o main.cpp /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/bin/rcc -name computegles31 computegles31.qrc -o .rcc/qrc_computegles31.cpp g++ -c -pipe -O2 -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../../include -I../../../include/QtGui -I../../../include/QtCore -I.moc -I../../../mkspecs/linux-g++ -o .obj/qrc_computegles31.o .rcc/qrc_computegles31.cpp g++ -pipe -O2 -fno-exceptions -Wall -Wextra -dM -E -o .moc/moc_predefs.h ../../../mkspecs/features/data/dummy.cpp /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/bin/moc -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB --include /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/examples/opengl/computegles31/.moc/moc_predefs.h -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/mkspecs/linux-g++ -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/examples/opengl/computegles31 -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/include -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/include/QtGui -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/include/QtCore -I/usr/include/c++/8 -I/usr/include/arm-linux-gnueabihf/c++/8 -I/usr/include/c++/8/backward -I/usr/lib/gcc/arm-linux-gnueabihf/8/include -I/usr/local/include -I/usr/lib/gcc/arm-linux-gnueabihf/8/include-fixed -I/usr/include/arm-linux-gnueabihf -I/usr/include glwindow.h -o .moc/moc_glwindow.cpp g++ -c -pipe -O2 -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../../include -I../../../include/QtGui -I../../../include/QtCore -I.moc -I../../../mkspecs/linux-g++ -o .obj/moc_glwindow.o .moc/moc_glwindow.cpp g++ -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../../../lib -o computegles31 .obj/glwindow.o .obj/main.o .obj/qrc_computegles31.o .obj/moc_glwindow.o /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/lib/libQt5Gui.so /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/lib/libQt5Core.so -lGL -lpthread -latomic
make[4]: Leaving directory '/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/examples/opengl/computegles31' make[3]: Leaving directory '/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/examples/opengl' make[2]: Leaving directory '/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/examples' cd qmake/ && ( test -e Makefile.qmake-aux || /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/bin/qmake -o Makefile.qmake-aux /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake/qmake-aux.pro ) && make -f Makefile.qmake-aux make[2]: Entering directory '/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake' make binary make[3]: Entering directory '/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake' g++ -c -o qlibraryinfo_final.o -std=c++11 -ffunction-sections -fdata-sections -g -g -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake/library -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake/generators -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake/generators/unix -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake/generators/win32 -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake/generators/mac -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/include -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/include/QtCore -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/include/QtCore/5.14.2 -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/include/QtCore/5.14.2/QtCore -I../src/corelib/global -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/mkspecs/linux-g++ -DQT_VERSION_STR=\"5.14.2\" -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=14 -DQT_VERSION_PATCH=2 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_FOREACH /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/src/corelib/global/qlibraryinfo.cpp g++ -o "../qmake/qmake" main.o meta.o option.o project.o property.o ioutils.o proitems.o qmakebuiltins.o qmakeevaluator.o qmakeglobals.o qmakeparser.o qmakevfs.o pbuilder_pbx.o makefile.o makefiledeps.o metamakefile.o projectgenerator.o unixmake2.o unixmake.o mingw_make.o msbuild_objectmodel.o msvc_nmake.o msvc_objectmodel.o msvc_vcproj.o msvc_vcxproj.o winmakefile.o xmloutput.o qutfcodec.o qendian.o qglobal.o qlogging.o qmalloc.o qnumeric.o qoperatingsystemversion.o qrandom.o qabstractfileengine.o qbuffer.o qdatastream.o qdebug.o qdir.o qdiriterator.o qfile.o qfiledevice.o qfileinfo.o qfilesystemengine.o qfilesystementry.o qfsfileengine.o qfsfileengine_iterator.o qiodevice.o qsettings.o qtemporaryfile.o qtextstream.o qjsonarray.o qjson.o qjsondocument.o qjsonobject.o qjsonparser.o qjsonvalue.o qmetatype.o qsystemerror.o qvariant.o quuid.o qarraydata.o qbitarray.o qbytearray.o qbytearraylist.o qbytearraymatcher.o qcalendar.o qgregoriancalendar.o qromancalendar.o qcryptographichash.o qdatetime.o qhash.o qlist.o qlocale.o qlocale_tools.o qmap.o qregexp.o qringbuffer.o qstringbuilder.o qstring.o qstringlist.o qversionnumber.o qvsnprintf.o qxmlstream.o qxmlutils.o qcore_unix.o qfilesystemengine_unix.o qfilesystemiterator_unix.o qfsfileengine_unix.o qlocale_unix.o qlibraryinfo_final.o -Wl,--gc-sections /usr/bin/ld: metamakefile.o: in function ProjectBuilderMakefileGenerator::ProjectBuilderMakefileGenerator()': /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake/generators/mac/pbuilder_pbx.h:36: undefined reference tovtable for ProjectBuilderMakefileGenerator' collect2: error: ld returned 1 exit status make[3]: [Makefile:195: ../qmake/qmake] Error 1 make[3]: Leaving directory '/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake' make[2]: [Makefile.qmake-aux:597: /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake/qmake] Error 2 make[2]: Leaving directory '/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake' make[1]: [Makefile:126: sub-qmake-qmake-aux-pro-make_first] Error 2 make[1]: Leaving directory '/home/pi/qt/qt-everywhere-src-5.14.2/qtbase' make: [Makefile:88: module-qtbase-make_first] Error 2

I'm not a c++ kind of guy (mostly python golang) so yea I have no clue as to why this is failing, I'll keep digging around but yea some help on this one would be greatly appreciated.

On a side note while I was waiting the 11|+ hours for Qt to build I did manage to get scrapy + splash installed on a desktop machine I have. Love what I see so far cant wait to play with it more.

Best reguards Charlie

died14 commented 4 years ago

Ok got all the dependencies installed, source code downloaded, ran ./configure with no problems. Ran make and this is the output any ideas on why its failing?

g++ -c -pipe -O2 -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../../include -I../../../include/QtGui -I../../../include/QtCore -I.moc -I../../../mkspecs/linux-g++ -o .obj/moc_glwindow.o .moc/moc_glwindow.cpp g++ -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,$ORIGIN/../../../lib -o hellogles3 .obj/glwindow.o .obj/main.o .obj/logo.o .obj/qrc_hellogles3.o .obj/moc_glwindow.o /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/lib/libQt5Gui.so /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/lib/libQt5Core.so -lGL -lpthread -latomic make[4]: Leaving directory '/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/examples/opengl/hellogles3' cd computegles31/ && ( test -e Makefile || /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/bin/qmake -o Makefile /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/examples/opengl/computegles31/computegles31.pro ) && make -f Makefile make[4]: Entering directory '/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/examples/opengl/computegles31' g++ -c -pipe -O2 -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../../include -I../../../include/QtGui -I../../../include/QtCore -I.moc -I../../../mkspecs/linux-g++ -o .obj/glwindow.o glwindow.cpp g++ -c -pipe -O2 -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../../include -I../../../include/QtGui -I../../../include/QtCore -I.moc -I../../../mkspecs/linux-g++ -o .obj/main.o main.cpp /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/bin/rcc -name computegles31 computegles31.qrc -o .rcc/qrc_computegles31.cpp g++ -c -pipe -O2 -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../../include -I../../../include/QtGui -I../../../include/QtCore -I.moc -I../../../mkspecs/linux-g++ -o .obj/qrc_computegles31.o .rcc/qrc_computegles31.cpp g++ -pipe -O2 -fno-exceptions -Wall -Wextra -dM -E -o .moc/moc_predefs.h ../../../mkspecs/features/data/dummy.cpp /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/bin/moc -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB --include /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/examples/opengl/computegles31/.moc/moc_predefs.h -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/mkspecs/linux-g++ -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/examples/opengl/computegles31 -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/include -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/include/QtGui -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/include/QtCore -I/usr/include/c++/8 -I/usr/include/arm-linux-gnueabihf/c++/8 -I/usr/include/c++/8/backward -I/usr/lib/gcc/arm-linux-gnueabihf/8/include -I/usr/local/include -I/usr/lib/gcc/arm-linux-gnueabihf/8/include-fixed -I/usr/include/arm-linux-gnueabihf -I/usr/include glwindow.h -o .moc/moc_glwindow.cpp g++ -c -pipe -O2 -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../../include -I../../../include/QtGui -I../../../include/QtCore -I.moc -I../../../mkspecs/linux-g++ -o .obj/moc_glwindow.o .moc/moc_glwindow.cpp g++ -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,$ORIGIN/../../../lib -o computegles31 .obj/glwindow.o .obj/main.o .obj/qrc_computegles31.o .obj/moc_glwindow.o /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/lib/libQt5Gui.so /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/lib/libQt5Core.so -lGL -lpthread -latomic make[4]: Leaving directory '/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/examples/opengl/computegles31' make[3]: Leaving directory '/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/examples/opengl' make[2]: Leaving directory '/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/examples' cd qmake/ && ( test -e Makefile.qmake-aux || /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/bin/qmake -o Makefile.qmake-aux /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake/qmake-aux.pro ) && make -f Makefile.qmake-aux make[2]: Entering directory '/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake' make binary make[3]: Entering directory '/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake' g++ -c -o qlibraryinfo_final.o -std=c++11 -ffunction-sections -fdata-sections -g -g -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake/library -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake/generators -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake/generators/unix -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake/generators/win32 -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake/generators/mac -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/include -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/include/QtCore -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/include/QtCore/5.14.2 -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/include/QtCore/5.14.2/QtCore -I../src/corelib/global -I/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/mkspecs/linux-g++ -DQT_VERSION_STR="5.14.2" -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=14 -DQT_VERSION_PATCH=2 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_FOREACH /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/src/corelib/global/qlibraryinfo.cpp g++ -o "../qmake/qmake" main.o meta.o option.o project.o property.o ioutils.o proitems.o qmakebuiltins.o qmakeevaluator.o qmakeglobals.o qmakeparser.o qmakevfs.o pbuilder_pbx.o makefile.o makefiledeps.o metamakefile.o projectgenerator.o unixmake2.o unixmake.o mingw_make.o msbuild_objectmodel.o msvc_nmake.o msvc_objectmodel.o msvc_vcproj.o msvc_vcxproj.o winmakefile.o xmloutput.o qutfcodec.o qendian.o qglobal.o qlogging.o qmalloc.o qnumeric.o qoperatingsystemversion.o qrandom.o qabstractfileengine.o qbuffer.o qdatastream.o qdebug.o qdir.o qdiriterator.o qfile.o qfiledevice.o qfileinfo.o qfilesystemengine.o qfilesystementry.o qfsfileengine.o qfsfileengine_iterator.o qiodevice.o qsettings.o qtemporaryfile.o qtextstream.o qjsonarray.o qjson.o qjsondocument.o qjsonobject.o qjsonparser.o qjsonvalue.o qmetatype.o qsystemerror.o qvariant.o quuid.o qarraydata.o qbitarray.o qbytearray.o qbytearraylist.o qbytearraymatcher.o qcalendar.o qgregoriancalendar.o qromancalendar.o qcryptographichash.o qdatetime.o qhash.o qlist.o qlocale.o qlocale_tools.o qmap.o qregexp.o qringbuffer.o qstringbuilder.o qstring.o qstringlist.o qversionnumber.o qvsnprintf.o qxmlstream.o qxmlutils.o qcore_unix.o qfilesystemengine_unix.o qfilesystemiterator_unix.o qfsfileengine_unix.o qlocale_unix.o qlibraryinfo_final.o -Wl,--gc-sections /usr/bin/ld: metamakefile.o: in function ProjectBuilderMakefileGenerator::ProjectBuilderMakefileGenerator()': /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake/generators/mac/pbuilder_pbx.h:36: undefined reference tovtable for ProjectBuilderMakefileGenerator' collect2: error: ld returned 1 exit status make[3]: [Makefile:195: ../qmake/qmake] Error 1 make[3]: Leaving directory '/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake' make[2]: [Makefile.qmake-aux:597: /home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake/qmake] Error 2 make[2]: Leaving directory '/home/pi/qt/qt-everywhere-src-5.14.2/qtbase/qmake' make[1]: [Makefile:126: sub-qmake-qmake-aux-pro-make_first] Error 2 make[1]: Leaving directory '/home/pi/qt/qt-everywhere-src-5.14.2/qtbase' make: [Makefile:88: module-qtbase-make_first] Error 2

I'm not a c++ kind of guy (mostly python golang) so yea I have no clue as to why this is failing, I'll keep digging around but yea some help on this one would be greatly appreciated.

On a side note while I was waiting the 11|+ hours for Qt to build I did manage to get scrapy + splash installed on a desktop machine I have. Love what I see so far cant wait to play with it more.

Best reguards Charlie

I'm also not an expert in these matters myself. However, on compiling QT and make I found the folloof_Qt5_on_a_Raspberry_Pi which might be of help. Have you managed to overcome the issue?wing page: https://wiki.qt.io/Native_Build_of_Qt5_on_a_Raspberry_Pi

cjsmocjsmo commented 4 years ago

.No I didn't know about that site thank you. Yea I've been digging through the docs esp ./configure options. I have a new build going I guess its tweek, build, fail, cycle now. I think its just a matter of finding the right combination of ./configure options. I'm hoping the -skip option will be of help. It allows you to skip compilation of modules such as qtgamepad qtvirturalkeyboard qtspeech qtmacextras qtwinextras qtandroidextras

died14 commented 4 years ago

@cjsmocjsmo Hi Charlie, have you made any progress in building an Splash arm docker image?

cjsmocjsmo commented 4 years ago

Why yes I have on this wonderful fathers day.

THIS HAS NOT BEEN TESTED AT ALL APPROX 6-8HR BUILD TIME https://github.com/cjsmocjsmo/rpi-splash.git

To use do:

git clone https://github.com/cjsmocjsmo/rpi-splash.git cd splash sh RPI-INSTALLER.sh

I managed to get qtcore to build going to go from there. Hopefully I have everything hooked in ok, for testing, will have more time to play with it later today. When I know it actually works I'll prep a splash pull request. Suggestions/opinions/bug reports welcome.

Best regards Charlie

On Sun, Jun 21, 2020 at 10:32 AM died14 notifications@github.com wrote:

@cjsmocjsmo https://github.com/cjsmocjsmo Hi Charlie, have you made any progress in building an Splash arm docker image?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/scrapinghub/splash/issues/711#issuecomment-647157849, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDX2SA4UZDI3XBKG6JJ7VTRXY7ZBANCNFSM4EJP67TQ .

died14 commented 4 years ago

Why yes I have on this wonderful fathers day. THIS HAS NOT BEEN TESTED AT ALL APPROX 6-8HR BUILD TIME https://github.com/cjsmocjsmo/rpi-splash.git To use do: git clone https://github.com/cjsmocjsmo/rpi-splash.git cd splash sh RPI-INSTALLER.sh I managed to get qtcore to build going to go from there. Hopefully I have everything hooked in ok, for testing, will have more time to play with it later today. When I know it actually works I'll prep a splash pull request. Suggestions/opinions/bug reports welcome. Best regards Charlie On Sun, Jun 21, 2020 at 10:32 AM died14 @.***> wrote: @cjsmocjsmo https://github.com/cjsmocjsmo Hi Charlie, have you made any progress in building an Splash arm docker image? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#711 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDX2SA4UZDI3XBKG6JJ7VTRXY7ZBANCNFSM4EJP67TQ .

Thanks for sharing. I'm installing right now and will report back tomorrow on result.

Kind regards died14

died14 commented 4 years ago

Why yes I have on this wonderful fathers day. THIS HAS NOT BEEN TESTED AT ALL APPROX 6-8HR BUILD TIME https://github.com/cjsmocjsmo/rpi-splash.git To use do: git clone https://github.com/cjsmocjsmo/rpi-splash.git cd splash sh RPI-INSTALLER.sh I managed to get qtcore to build going to go from there. Hopefully I have everything hooked in ok, for testing, will have more time to play with it later today. When I know it actually works I'll prep a splash pull request. Suggestions/opinions/bug reports welcome. Best regards Charlie On Sun, Jun 21, 2020 at 10:32 AM died14 @.***> wrote: @cjsmocjsmo https://github.com/cjsmocjsmo Hi Charlie, have you made any progress in building an Splash arm docker image? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#711 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDX2SA4UZDI3XBKG6JJ7VTRXY7ZBANCNFSM4EJP67TQ .

The script seems fine until the last step where it fails for two reasons. First, the dockerfile isn't present. It seems like the following line in the script: mv ./rpi/rpisplashDockerfile ../Dockerfile should be: mv ./rpi/rpisplashDockerfile ./Dockerfile

Second, the flag -p isn't used with docker build, but rather with docker run, so just removing the -p 8050:8050 works.

Then, finally, when performing the last step with those adjustments, the build fails at step 22: Step 22/88 : FROM rpi-qt-builder as qtbase pull access denied for rpi-qt-builder, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

Update: The issue with step 22 can be solved by changing: FROM rpi-qt-builder as qtbase to: FROM rpi-qtbuilder as qtbase

cjsmocjsmo commented 4 years ago

lolol yea I've fixed most of the "your way to tired to be working on this" mistakes.

I'm learning way more about Qt than I really wanted to but that's ok. I stumbled across this https://doc.qt.io/qtinstallerframework/ifw-getting-started.html If I'm thinking correctly (which isn't always the case) I've been compiling about 1/2 of the needed toolchain for the installer framework to work. Back to the drawing board.

On Mon, Jun 22, 2020 at 12:31 AM died14 notifications@github.com wrote:

Why yes I have on this wonderful fathers day. THIS HAS NOT BEEN TESTED AT ALL APPROX 6-8HR BUILD TIME https://github.com/cjsmocjsmo/rpi-splash.git To use do: git clone https://github.com/cjsmocjsmo/rpi-splash.git cd splash sh RPI-INSTALLER.sh I managed to get qtcore to build going to go from there. Hopefully I have everything hooked in ok, for testing, will have more time to play with it later today. When I know it actually works I'll prep a splash pull request. Suggestions/opinions/bug reports welcome. Best regards Charlie … <#m-3413828764582332508> On Sun, Jun 21, 2020 at 10:32 AM died14 @.***> wrote: @cjsmocjsmo https://github.com/cjsmocjsmo https://github.com/cjsmocjsmo Hi Charlie, have you made any progress in building an Splash arm docker image? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#711 (comment) https://github.com/scrapinghub/splash/issues/711#issuecomment-647157849>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDX2SA4UZDI3XBKG6JJ7VTRXY7ZBANCNFSM4EJP67TQ .

The script seems fine until the last step where it fails for two reasons. First, the dockerfile isn't present. It seems like the following line in the script: mv ./rpi/rpisplashDockerfile ../Dockerfile should be: mv ./rpi/rpisplashDockerfile ./Dockerfile

Second, the flag -p isn't used with docker build, but rather with docker run, so just removing the -p 8050:8050 works.

Then, finally, when performing the last step with those adjustments, the build fails at step 22: Step 22/88 : FROM rpi-qt-builder as qtbase pull access denied for rpi-qt-builder, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/scrapinghub/splash/issues/711#issuecomment-647339863, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDX2SHFRVFDQBBFHLM4HX3RX4CEDANCNFSM4EJP67TQ .

klebster2 commented 3 years ago

Hi there @died14 and @cjsmocjsmo. Did you guys get any further? I'm also attempting to get Splash for the Raspberry pi (mine is Rpi4 8GB) and I have just reproduced most of your errors with qt. Either that or I am doing something else wrong.

k@raspberrypi-desktop:/home/rpi-splash$ sudo ./RPI-INSTALLER.sh 
Sending build context to Docker daemon  2.048kB
Step 1/3 : FROM alpine:3.10
 ---> 536a684cf733
Step 2/3 : RUN apk add --no-cache curl
 ---> Using cache
 ---> 361a99c0cc19
Step 3/3 : ENTRYPOINT ["/usr/bin/curl"]
 ---> Using cache
 ---> 0fa8615ad4f6
Successfully built 0fa8615ad4f6
Successfully tagged byrnedo/alpine-curl:latest
Sending build context to Docker daemon  3.584kB
Step 1/12 : FROM debian:sid-slim
 ---> ffc5e1c32a4f
Step 2/12 : RUN     apt-get update &&   apt-get dist-upgrade -y &&  apt-get autoclean -y &&     apt-get autoremove -y &&     apt-get install -y --no-install-recommends curl        tar bison       python      xz-utils        build-essential         qt5-default
 ---> Running in e884c2d31574
Get:1 http://deb.debian.org/debian sid InRelease [153 kB]
Get:2 http://deb.debian.org/debian sid/main arm64 Packages [8417 kB]
Fetched 8571 kB in 5s (1885 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
  apt dash libapt-pkg6.0 libp11-kit0 libpcre2-8-0 libsystemd0 libudev1
  perl-base
8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 4993 kB of archives.
After this operation, 11.3 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian sid/main arm64 dash arm64 0.5.11+git20200708+dd9ef66-5 [113 kB]
Get:2 http://deb.debian.org/debian sid/main arm64 perl-base arm64 5.32.0-6 [1497 kB]
Get:3 http://deb.debian.org/debian sid/main arm64 libsystemd0 arm64 247.1-4 [351 kB]
Get:4 http://deb.debian.org/debian sid/main arm64 libudev1 arm64 247.1-4 [161 kB]
Get:5 http://deb.debian.org/debian sid/main arm64 libapt-pkg6.0 arm64 2.1.13 [915 kB]
Get:6 http://deb.debian.org/debian sid/main arm64 apt arm64 2.1.13 [1412 kB]
Get:7 http://deb.debian.org/debian sid/main arm64 libp11-kit0 arm64 0.23.22-1 [328 kB]
Get:8 http://deb.debian.org/debian sid/main arm64 libpcre2-8-0 arm64 10.36-2 [215 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 4993 kB in 1s (7916 kB/s)
(Reading database ... 6598 files and directories currently installed.)
Preparing to unpack .../dash_0.5.11+git20200708+dd9ef66-5_arm64.deb ...
Unpacking dash (0.5.11+git20200708+dd9ef66-5) over (0.5.11+git20200708+dd9ef66-2) ...
Setting up dash (0.5.11+git20200708+dd9ef66-5) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.32.0 /usr/local/share/perl/5.32.0 /usr/lib/aarch64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl-base /usr/lib/aarch64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
(Reading database ... 6598 files and directories currently installed.)
Preparing to unpack .../perl-base_5.32.0-6_arm64.deb ...
Unpacking perl-base (5.32.0-6) over (5.32.0-5) ...
Setting up perl-base (5.32.0-6) ...
(Reading database ... 6598 files and directories currently installed.)
Preparing to unpack .../libsystemd0_247.1-4_arm64.deb ...
Unpacking libsystemd0:arm64 (247.1-4) over (247.1-3) ...
Setting up libsystemd0:arm64 (247.1-4) ...
(Reading database ... 6598 files and directories currently installed.)
Preparing to unpack .../libudev1_247.1-4_arm64.deb ...
Unpacking libudev1:arm64 (247.1-4) over (247.1-3) ...
Setting up libudev1:arm64 (247.1-4) ...
(Reading database ... 6598 files and directories currently installed.)
Preparing to unpack .../libapt-pkg6.0_2.1.13_arm64.deb ...
Unpacking libapt-pkg6.0:arm64 (2.1.13) over (2.1.12) ...
Setting up libapt-pkg6.0:arm64 (2.1.13) ...
(Reading database ... 6598 files and directories currently installed.)
Preparing to unpack .../archives/apt_2.1.13_arm64.deb ...
Unpacking apt (2.1.13) over (2.1.12) ...
Setting up apt (2.1.13) ...
(Reading database ... 6598 files and directories currently installed.)
Preparing to unpack .../libp11-kit0_0.23.22-1_arm64.deb ...
Unpacking libp11-kit0:arm64 (0.23.22-1) over (0.23.21-2) ...
Setting up libp11-kit0:arm64 (0.23.22-1) ...
(Reading database ... 6598 files and directories currently installed.)
Preparing to unpack .../libpcre2-8-0_10.36-2_arm64.deb ...
Unpacking libpcre2-8-0:arm64 (10.36-2) over (10.35-2) ...
Setting up libpcre2-8-0:arm64 (10.36-2) ...
Processing triggers for libc-bin (2.31-5) ...
Reading package lists...
Building dependency tree...
Reading state information...
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package qt5-default
The command '/bin/sh -c apt-get update &&   apt-get dist-upgrade -y &&  apt-get autoclean -y &&     apt-get autoremove -y &&     apt-get install -y --no-install-recommends curl        tar bison       python      xz-utils        build-essential         qt5-default' returned a non-zero code: 100
Sending build context to Docker daemon  3.584kB
Step 1/11 : FROM rpi-splash-build-deps:5.14.2
pull access denied for rpi-splash-build-deps, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
mv: cannot stat './Dockerfile': No such file or directory
mv: cannot stat './rpi/rpisplashDockerfile': No such file or directory
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/rpi-splash/Dockerfile: no such file or directory
DJousto commented 2 years ago

hello, did someone manage to install all this stuff on a rpi/docker image ?

cjsmocjsmo commented 2 years ago

I never completed it. If I remember correctly I lost interest due to the extremely long build times and I found a different way of solving my problem.

Happy Coding

On Thu, Mar 3, 2022, 11:43 PM DJousto @.***> wrote:

hello, did someone manage to install all this stuff on a rpi/docker image ?

— Reply to this email directly, view it on GitHub https://github.com/scrapinghub/splash/issues/711#issuecomment-1058915262, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDX2SHFGMXBWYA3TSDKZ3DU6G5LVANCNFSM4EJP67TQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

DJousto commented 2 years ago

I never completed it. If I remember correctly I lost interest due to the extremely long build times and I found a different way of solving my problem. Happy Coding

ok thanks, I will also give up, it would take an infinite time to me to achive this ... i will switch to a solution with selenium

philipphutterer commented 2 years ago

In my experience it is easly possible to run splash on the RPi, if you can accept to work solely with WebKit. I removed the Chromium parts from the Dockerfile and also from some (mostly import chains) in the source code, et voila... it worked. For me it was definitely okay to use WebKit only as I was just experimenting.