Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate docker image fails near the end #14

Open
EugeneDMyers opened this issue Apr 17, 2024 · 0 comments
Open

Generate docker image fails near the end #14

EugeneDMyers opened this issue Apr 17, 2024 · 0 comments

Comments

@EugeneDMyers
Copy link

sudo docker build --tag qtpi/qtpi:1.0 . - fails near the end :

cv/dep_opencv/share/opencv4/haarcascades/haarcascade_russian_plate_number.xml
272.6 -- Installing: /home/qtpi/libwallaby/build/module/camera/dependencies/opencv/dep_opencv/share/opencv4/haarcascades/haarcascade_smile.xml
272.6 -- Installing: /home/qtpi/libwallaby/build/module/camera/dependencies/opencv/dep_opencv/share/opencv4/haarcascades/haarcascade_upperbody.xml
272.6 -- Installing: /home/qtpi/libwallaby/build/module/camera/dependencies/opencv/dep_opencv/share/opencv4/lbpcascades/lbpcascade_frontalcatface.xml
272.6 -- Installing: /home/qtpi/libwallaby/build/module/camera/dependencies/opencv/dep_opencv/share/opencv4/lbpcascades/lbpcascade_frontalface.xml
272.6 -- Installing: /home/qtpi/libwallaby/build/module/camera/dependencies/opencv/dep_opencv/share/opencv4/lbpcascades/lbpcascade_frontalface_improved.xml
272.6 -- Installing: /home/qtpi/libwallaby/build/module/camera/dependencies/opencv/dep_opencv/share/opencv4/lbpcascades/lbpcascade_profileface.xml
272.6 -- Installing: /home/qtpi/libwallaby/build/module/camera/dependencies/opencv/dep_opencv/share/opencv4/lbpcascades/lbpcascade_silverware.xml
272.6 [ 68%] Completed 'dep_opencv'
272.7 [ 68%] Built target dep_opencv
272.7 make: *** [Makefile:156: all] Error 2

Dockerfile:177

176 | #Note: The shared libaries would probably be better installed on the host level instead of the container level, but this is easier logistically.
177 | >>> RUN sudo apt-get update
178 | >>> && sudo apt-get upgrade -y
179 | >>> && sudo apt-get install libzbar-dev libopencv-dev libjpeg-dev python-dev doxygen swig -y
180 | >>> && git clone https://github.com/kipr/libwallaby
181 | >>> && cd libwallaby
182 | >>> && /home/qtpi/qt-raspi/bin/qt-cmake -Bbuild
183 | >>> -DCMAKE_TOOLCHAIN_FILE=$(pwd)/toolchain/aarch64-linux-gnu.cmake
184 | >>> -DCMAKE_C_COMPILER=/usr/bin/aarch64-linux-gnu-gcc-9
185 | >>> -DCMAKE_CXX_COMPILER=/usr/bin/aarch64-linux-gnu-g++-9
186 | >>> -DCMAKE_SYSROOT=/home/qtpi/rpi-sysroot .
187 | >>> && cd build
188 | >>> && make -j${PARALLELIZATION}
189 | >>> && sudo make install
190 | >>> && cd ../.. #return to start for next instructions
191 |

ERROR: failed to solve: process "/bin/sh -c sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install libzbar-dev libopencv-dev libjpeg-dev python-dev doxygen swig -y && git clone https://github.com/kipr/libwallaby && cd libwallaby && /home/qtpi/qt-raspi/bin/qt-cmake -Bbuild -DCMAKE_TOOLCHAIN_FILE=$(pwd)/toolchain/aarch64-linux-gnu.cmake -DCMAKE_C_COMPILER=/usr/bin/aarch64-linux-gnu-gcc-9 -DCMAKE_CXX_COMPILER=/usr/bin/aarch64-linux-gnu-g++-9 -DCMAKE_SYSROOT=/home/qtpi/rpi-sysroot . && cd build && make -j${PARALLELIZATION} && sudo make install && cd ../.. #return to start for next instructions" did not complete successfully: exit code: 2
test@botball-virtual-machine:~/qt6pi3b$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant