- 53
- 928 805
Ulas Dikme
Netherlands
เข้าร่วมเมื่อ 30 เม.ย. 2013
This channel contains educational contents which are related to electronics, software and positive sciences.
In electronics field, educational contents are created with various development boards scuh as esp8266, arduino, raspberry pi, beagle bone etc.
In software area, contents are related to programming languages like C, C++, javascript, python also some frameworks like Qt.
Enjoy !
In electronics field, educational contents are created with various development boards scuh as esp8266, arduino, raspberry pi, beagle bone etc.
In software area, contents are related to programming languages like C, C++, javascript, python also some frameworks like Qt.
Enjoy !
Hotel Monitoring System Qt on #raspberrypi and #jetsonnano C++ and postgreSQL implementation Part 2
Code will be available soon.
Content explain how to create hotel motinoring system usind Qt framework using local database. This video is part2. Database and C++ implementation.
For part 1th-cam.com/video/1GXZlwV2G2M/w-d-xo.html
How I build Qt for raspberry pi and Jetson boards th-cam.com/video/5XvQ_fLuBX0/w-d-xo.html
This is new one - th-cam.com/video/xQ8PkT8Utfc/w-d-xo.html
Please check this videos to be able to compile the example for cross development.
For quick development purpose, ubuntu is used. Cross development is done at the end.
For development purpose, steps to build Qt on ubuntu
wget download.qt.io/official_releases/qt/6.8/6.8.0/submodules/qtbase-everywhere-src-6.8.0.tar.xz && \
wget download.qt.io/official_releases/qt/6.8/6.8.0/submodules/qtshadertools-everywhere-src-6.8.0.tar.xz && \
wget download.qt.io/official_releases/qt/6.8/6.8.0/submodules/qtdeclarative-everywhere-src-6.8.0.tar.xz && \
tar xf ../src/qtbase-everywhere-src-6.8.0.tar.xz && \
tar xf ../src/qtshadertools-everywhere-src-6.8.0.tar.xz && \
tar xf ../src/qtdeclarative-everywhere-src-6.8.0.tar.xz && \
echo "Compile qtbase for host" && \
cd qtbase-everywhere-src-6.8.0 && \
cmake -GNinja -DCMAKE_BUILD_TYPE=Release \
-DQT_BUILD_EXAMPLES=OFF \
-DQT_BUILD_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX=/build/qt6/host && \
cmake --build . --parallel 4 && \
cmake --install . && \
echo "Compile shader for host" && \
cd ../qtshadertools-everywhere-src-6.8.0 && \
/build/qt6/host/bin/qt-configure-module . && \
cmake --build . --parallel 4 && \
cmake --install . && \
Update the paths according to your needs.
echo "Compile declerative for host" && \
cd ../qtdeclarative-everywhere-src-6.8.0 && \
/build/qt6/host/bin/qt-configure-module . && \
cmake --build . --parallel 4 && \
cmake --install . && \
All related content is created by me. Dont use it without permission.
Content explain how to create hotel motinoring system usind Qt framework using local database. This video is part2. Database and C++ implementation.
For part 1th-cam.com/video/1GXZlwV2G2M/w-d-xo.html
How I build Qt for raspberry pi and Jetson boards th-cam.com/video/5XvQ_fLuBX0/w-d-xo.html
This is new one - th-cam.com/video/xQ8PkT8Utfc/w-d-xo.html
Please check this videos to be able to compile the example for cross development.
For quick development purpose, ubuntu is used. Cross development is done at the end.
For development purpose, steps to build Qt on ubuntu
wget download.qt.io/official_releases/qt/6.8/6.8.0/submodules/qtbase-everywhere-src-6.8.0.tar.xz && \
wget download.qt.io/official_releases/qt/6.8/6.8.0/submodules/qtshadertools-everywhere-src-6.8.0.tar.xz && \
wget download.qt.io/official_releases/qt/6.8/6.8.0/submodules/qtdeclarative-everywhere-src-6.8.0.tar.xz && \
tar xf ../src/qtbase-everywhere-src-6.8.0.tar.xz && \
tar xf ../src/qtshadertools-everywhere-src-6.8.0.tar.xz && \
tar xf ../src/qtdeclarative-everywhere-src-6.8.0.tar.xz && \
echo "Compile qtbase for host" && \
cd qtbase-everywhere-src-6.8.0 && \
cmake -GNinja -DCMAKE_BUILD_TYPE=Release \
-DQT_BUILD_EXAMPLES=OFF \
-DQT_BUILD_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX=/build/qt6/host && \
cmake --build . --parallel 4 && \
cmake --install . && \
echo "Compile shader for host" && \
cd ../qtshadertools-everywhere-src-6.8.0 && \
/build/qt6/host/bin/qt-configure-module . && \
cmake --build . --parallel 4 && \
cmake --install . && \
Update the paths according to your needs.
echo "Compile declerative for host" && \
cd ../qtdeclarative-everywhere-src-6.8.0 && \
/build/qt6/host/bin/qt-configure-module . && \
cmake --build . --parallel 4 && \
cmake --install . && \
All related content is created by me. Dont use it without permission.
มุมมอง: 327
วีดีโอ
Hotel Monitoring System QML introduction on #raspberrypi #jetsonnano PostgreSQL C++ Qt Part I
มุมมอง 840วันที่ผ่านมา
Code will be available soon. Content explain how to create hotel motinoring system usind Qt framework using local database. This video is part1. Only QML design is done. Intro: (00:00) What is QML : (01:37) Start coding : (05:00) Test on Raspberry pi and jetson board : (01:00:51) How I build Qt for raspberry pi and Jetson boards th-cam.com/video/5XvQ_fLuBX0/w-d-xo.html This is new one - th-c...
Qt for Raspberry pi & Jetson nvidia-6.8.0 cross development with docker - update for previous vid
มุมมอง 1Kหลายเดือนก่อน
Qt 6.8 Cross development with docker for rasppberry pi and Jetson boards. github.com/PhysicsX/QTonRaspberryPi Intro: (00:16) Install Docker : (19:29) Compile Qt for Raspberry pi : (22:18) Test Compilation with Raspberry pi : (22:38) Compile Qt for Jetson : (24:55) Test Compilation with Jetson : (26:18) How to develop application : (28:14) Conclusion : (30:50) Previous video th-cam.com/video/...
Qt CrossCompilation with Docker Remote Debugging for RaspberryPi with VScode - Ubuntu Part 2
มุมมอง 1.2K10 หลายเดือนก่อน
This is the follow up of th-cam.com/video/5XvQ_fLuBX0/w-d-xo.html first video which is Qt For Raspberry Pi - Qt 6.6.1 Cross Compilation with Docker isolation Easy way ! For more information (steps and files): github.com/PhysicsX/QTonRaspberryPi/blob/main/README.md#cross-development-and-remote-debugging-of-application-with-vscode How to CrossCompile Application With Docker: (01:08) Remote Debug...
Qt For Raspberry Pi - Qt 6.6.1 Cross Compilation with Docker isolation Easy way !
มุมมอง 3.6K11 หลายเดือนก่อน
In this content, you will find a way to cross-compile Qt 6.6.1 for Raspberry Pi 4 hardware using Docker isolation. CHECK FOLLOW UP VIDEO AND GITHUB PAGE FOR UPDATES! Follow up video for best practices and remote debug with vscode th-cam.com/video/RWNWAMT5UkM/w-d-xo.htmlsi=c2DDESzySSb0N5d2 For more information (steps and files): github.com/PhysicsX/QTonRaspberryPi Intro: (00:00) Install Docker ...
Test Driven Development - TDD - GoogleTest Introduction with CMake LINUX - C++ - GMOCK
มุมมอง 7K2 ปีที่แล้ว
First part of the Test Driven Development series - TDD Introduction to GoogleTest with Cmake and C on Linux Examples and more explanation is here : github.com/PhysicsX/ExampleCode/tree/master/googleTest 00:00:00 INTRO 00:01:00 INSTALL GOOGLETEST FROM REPOSITORY 00:03:09 HELLO WORLD EXAMPLE 00:06:10 why do we need test fixture 00:08:35 TEST FIXTURE EXAMPLE 00:13:33 CMAKE INTRO WITH GOOGLETEST 00...
Qt6 for Raspberry pi 4 Cross Compilation with Cmake QML module installation Part II
มุมมอง 3.7K2 ปีที่แล้ว
There is a new up to date tutorial about Qt cross compilation for Rasp with docker in more easy way! Check it out! th-cam.com/video/5XvQ_fLuBX0/w-d-xo.htmlsi=iiR92LvUI-0D_cKP The content is about cross compilation for qt6.3 qtdeclarative module for raspberry pi 4. The video content is part 2. Please watch the first one. th-cam.com/video/oWpomXg9yj0/w-d-xo.html All environment is same with the f...
Qt6 for Raspberry pi 4 - Cross Compilation with Cmake using Ubuntu VM - Qt6.3.0 Base - Part I
มุมมอง 17K2 ปีที่แล้ว
There is a new up to date tutorial about Qt cross compilation for Rasp with docker in more easy way! Check it out! th-cam.com/video/5XvQ_fLuBX0/w-d-xo.htmlsi=iiR92LvUI-0D_cKP All steps are available: github.com/PhysicsX/QTonRaspberryPi/tree/main/QtRaspberryPi6.3.0 For Cross Compilation with Docker github.com/PhysicsX/QTonRaspberryPi In this video content, you can learn how to cross compile the ...
Websocket C++ Asynchronous Echo Server -Part II-Difference Synchronous and Asyncronous applications
มุมมอง 6K3 ปีที่แล้ว
In this content, synchronous and asynchronous applications is discuessed and implemente async simple echo websocket server example using boost/beast library. Part I : th-cam.com/video/ZSefPfZqxpo/w-d-xo.html All example will be available soon. Intro: (00:00) PART 1 DIFFERENCE BETWEEN ASYNC AND SYNC APPLICATIONS : (00:09) PART 2 EXAMPLE ECHO WEBSOCKET ASYNC SERVER : (12:08) PART 3 HOW TO USE W...
Introduction to Gstreamer (Gst-launch) for embedded devices raspberry pi jetson nano
มุมมอง 21K3 ปีที่แล้ว
Introduction to Gstreamer command line tool. github.com/PhysicsX/Gstreamer-on-embedded-devices Intro: (00:00) Part 1 Hello World Example and installation : (01:42) Part 2 Pi Camera with Gstreamer : (15:09) Part 3 RTSP example using gstreamer and pi camera: (34:48) Part 4 USB camera with Gstreamer : (42:43) Part 5 OpenCV and Gstreamer with Python : (45:48) Part 6 Shared memory approach betwee...
Python(PyPy) is faster than C++ or NOT !
มุมมอง 5K3 ปีที่แล้ว
Understand the difference between C and python !
C++ Websocket Introduction with Boost library Part 1
มุมมอง 30K3 ปีที่แล้ว
Introduction to websocket using boost/beast library. github.com/PhysicsX/ExampleCode/blob/master/Cpp/websocket3.cpp
Qt6 Installation on Ubuntu from command line - C++ binding example with QProperty - how to Cmake
มุมมอง 6K3 ปีที่แล้ว
Qt6 installation on Ubuntu Cmake example Qproperty example ( object binding ) Intro: (00:00) Part 1 Qt6 base installation: (01:05) Part 2 qtcreator and hello world application: (13:50) Part 3 qtquick package installation: (23:00) Part 4 object binding with qproperty: (28:05)
Raspberry Pi Pico (RP2040) Introduction with Micropython - Hello World example
มุมมอง 9924 ปีที่แล้ว
Raspberry Pi Pico introduction Micropython installation Thonny installation on raspberry pi 4 GPIO - ADC ( built in temprature sensor ) example. Intro: (00:00) Part I - Micropython Compilation on Raspbery pi 4 (00:20) Part II - Upload UF2 file to Pico (04:30) Part III - Hello World Pico & Micropython (07:05) Part IV - Thonny installation and configuration for Micropython (09:00) Part V - Built-...
Raspberry pi pico (RP2040) - Quick introduction - Hello world - Led Blink Example
มุมมอง 1.8K4 ปีที่แล้ว
Raspberry pi pico - quick introduction - led blinking. Raspberry pi pico microcontroller For more video content will be available soon.
Mqtt pub sub example with RYC1001 Raspberry pi Esp8266 and Qt QML
มุมมอง 1.6K4 ปีที่แล้ว
Mqtt pub sub example with RYC1001 Raspberry pi Esp8266 and Qt QML
Qt for Jetson Nano - Qt 5.15 Cross Compilation Development Environment on Ubuntu Virtual Machine
มุมมอง 11K4 ปีที่แล้ว
Qt for Jetson Nano - Qt 5.15 Cross Compilation Development Environment on Ubuntu Virtual Machine
Esp8266 user login screen example with html css javascript and websocket using arduino ide part 1
มุมมอง 11K4 ปีที่แล้ว
Esp8266 user login screen example with html css javascript and websocket using arduino ide part 1
Number Of Islands solution with BFS C++ Python part 1
มุมมอง 9714 ปีที่แล้ว
Number Of Islands solution with BFS C Python part 1
ESP8266 websocket example with hc sr04 ultrasonic sensor ruler css example using arduino ide
มุมมอง 3.6K4 ปีที่แล้ว
ESP8266 websocket example with hc sr04 ultrasonic sensor ruler css example using arduino ide
Raspberry pi 4 remote connection via any webbrowser
มุมมอง 10K4 ปีที่แล้ว
Raspberry pi 4 remote connection via any webbrowser
Socket programming for beginners on raspberry pi 4 using boost asio library
มุมมอง 8K4 ปีที่แล้ว
Socket programming for beginners on raspberry pi 4 using boost asio library
Socket programming for beginners on raspberry pi 4 using boost asio library part 2
มุมมอง 1.6K4 ปีที่แล้ว
Socket programming for beginners on raspberry pi 4 using boost asio library part 2
Crush Course OpenCV Raspberry Pi 4 - Face Detection with Pi Camera - Install Pycharm
มุมมอง 7K4 ปีที่แล้ว
Crush Course OpenCV Raspberry Pi 4 - Face Detection with Pi Camera - Install Pycharm
Qt for Raspberry Pi - Qt 5.14.2 cross compilation for Raspberry Pi 4 model B - Run Qt on Raspberry
มุมมอง 52K4 ปีที่แล้ว
Qt for Raspberry Pi - Qt 5.14.2 cross compilation for Raspberry Pi 4 model B - Run Qt on Raspberry
Machine Learning Regression Example with tensorflow quick start jatson nano animated explanation
มุมมอง 4024 ปีที่แล้ว
Machine Learning Regression Example with tensorflow quick start jatson nano animated explanation
Quick Start Machine Learning with Jatson Nano Tensorflow Installation
มุมมอง 8K4 ปีที่แล้ว
Quick Start Machine Learning with Jatson Nano Tensorflow Installation
Dynamic cast c++ Runtime Type Identification example why we use dynamic cast - RTTI
มุมมอง 4.7K4 ปีที่แล้ว
Dynamic cast c Runtime Type Identification example why we use dynamic cast - RTTI
Raspberry pi Speedometer tutorial with Qt QML using LTC 24000 C++ coding
มุมมอง 20K4 ปีที่แล้ว
Raspberry pi Speedometer tutorial with Qt QML using LTC 24000 C coding
Tensorflow installation and object detection example on Raspberrypi 4 model B Complete tutorial
มุมมอง 11K4 ปีที่แล้ว
Tensorflow installation and object detection example on Raspberrypi 4 model B Complete tutorial
ls HelloQT6 is not working I don't believe it;s being copied over to PI?
nice lala plushy 🤩
Great video I really love that you don't edit it out the build errors and your funny comments :) I don't like when everything works from the first time in tutorials
Talented engineer. Love your content. Excited to see the next video in the series.
Thank you, Part 2 is quite ready, soon it will be published. :) Share and subscribe for more !
this is not a good benchmark because performance heavily depends on the language implementation of how it calls system call
Thanks a ton!
Hi ulas I've created an virtual enviroment with vmware. I've created an ubuntu 24.04 image. I've follow step by step of github, even watching the video at the same time. All the steps works properly and its check too, but when I try to run the command docker buildx build --platform linux/arm64 --load -f DockerFileRasp -t raspimage . I got the follow error ERROR:failed to solved: failed to read dockerfile: open DockerFileRasp: no such file or directory. I've tested it on two differents computers. One of them directly on hard disk with a ubuntu 22.04.and the other virtualizing an image of ubuntu 24.04 in other laptop I follow the steps point by point. I don't jump any point, not put anything new. But it still doesn't work
@carlosgallego1076 Hi Carlos, in which step wmware is created? There is another video could you please check it too? you simply run the command in the wrong path. Just yesterday another guy compiled for 32 bit github.com/PhysicsX/QTonRaspberryPi/issues/21 you can see from here. You still copy files from repo to somewhere? if not just checkout the repo and cd QTonRaspberryPi then run the commands This is previous video th-cam.com/video/5XvQ_fLuBX0/w-d-xo.html
I told you that I've not changed anything. Only your steps.
@carlosgallego1076 share "history" command lets see together.
I will try to record a video
Have you seen the video that I sent you?
I need for Rapsberry Pi 3... can you help?
it will work for rasp 3 too as long as you use same image. check the channel and the github page there is a new video and instructions
Hi I've got install all the step in a ubuntu 22.04. But when I try to run the command (docker build -t qtcrossbuild .) I get the follow errors error 5/14 COPY rasp.tar.gz /build/rasp.tar.gz error 7/14 COPY toolchain.cmake /build/ error 13/14 COPY project /build/project I've put the files DockerFileRasp and Dockerfile in /docker/qt6 to sort all things created in the docker folder What can I do?
@@carlosgallego1076 Why do you change the folder structure? I just tested yesterday and everything is fine. Just go to repostirory QTonRapberrypi then execute commands. when you have a successful build you can change whatever you like probably you need to put rasp.tar.gz and other files under your directory, but still just follow the steps for the first time. 😊
I've followed the steps but it doesn't really say where to install it. I go to the root and put the file in the DockerFileRasp and DockerFile files there??
@@carlosgallego1076 it doesnt say copy somewhere? just follow the video. go to folder of repositoty and that is it.
@@carlosgallego1076 it is not sth you will install it somewhere, there will be docker images at the end not kind of program installation.
@@carlosgallego1076 does it says move these files? I dont see it.
Hi Thanks for the video I have seen the video 3 times and I do not have it very clear. I have a raspberry Pi4 4gb, already have installed docker I created a folder in /docker/qt6, within the folder qt6 I created the DockerFileRasp file and copied everything from the github DockerFileRasp file. What command do I use to create the image? What command do I use to compile the file?
@@carlosgallego1076 Hi, have you compiled the qt? you can follow instructions in the github page also. which step are you strugling now?
I don't understand. I don't want to install it on ubuntu. I dón't want to emulate the raspberry. I've a raspberry and I want to compile a application created with Qt6 in Windows for working on the raspberry.
@@carlosgallego1076 So, this content explains cross development. Your windows running on x86, rasp is arm. They are different architectures. It is not possible to run simply same applicaiton (compiled) on these two hardwares. When you want to compile the qt, you need sysroot of the target(rasp). There are two ways to get it, you can emulate on your host, or you can copy files from rasp via ftp, sftp then try to build qt. ( ofcourse if you need specific version). If it is simple application just install it on rasp then compile. But in this case the qt version can be old. Working on windows is not smart if target is linux based. For docker part, you can do exactly what I did in widnwos, I never tried. YOu need to install docker and qemu to windows. Otherwise as I explained above. Qt is a combination of libraries which can have hardware dependency. It is not easy to compile your application if someone provides everyhing ready for you. You can find ready image on qt website as I explained in the beginning of the video but in this case it will limit your development. You need to decide what you want to do.
Then you advise me to install qt6 in the raspberry, and make applications from the raspberry? Can you install Qt6 in the raspberry, do you have any video? Is there much difference between Qt5 and Qt6, to work with applications widgets, or for raspberry with Qt5 I will have enough?
@@carlosgallego1076 Yes there is huge difference between qt5 and qt6, it depends what you want to do. I recommend to use latest version of the Qt. Developing on target is slow , generally it is not recommended. Safe way is to compile the qt and create a working environment for cross development :) but ofcourse it is up to you.
Truly rare and excellent content. Thanks for guide. Teşekkürler :) 💯
For those who are searching for the source code, I got the above source code from his previous (part-1) video's description
this is the first tutorial that I regret to end so early🥲, the decision of not including namespace to shorten the syntax was great, the viewer will be able to debug their mistakes more easily Subscribed ❤👍🏻
at 24:25 i am getting this kind of error => The WebSocket handshake Connection field is missing the upgrade token can anyone tell me why this is happening, and how to resolve it. any help appreciated.
I like the tutorials that start with sth simple and then improve it later on the video. Also one of the best explanations on both gtest and cmake. Thanks man!
Hello! I think something has changed in raspberry firmware repo. There is no opt folder anymore
@@afalsayt yes, you are right, they moved opengl libraries into standard file system. I will check it.
I removed the firmware repository. Nothing is needed more. As I see, maybe it is not needed to build gcc anymore. I will check it later, it can save extra time. Thanks for heads up.
auch I got stuck at the gstreamer with PI.... using the 5 and not been able to address to the correct camera still very confusing these pipelines....
great video for training. thanks for sharing Ulas. :)
Hello! I receive this error. > [22/22] RUN { cd project && /build/qt6/pi/bin/qt-cmake && cmake --build .; }: 0.154 /bin/sh: 1: /build/qt6/pi/bin/qt-cmake: not found Any idea why? I didnt find a way to see the logs. Reading comments i think it is the same error as @samedsucuk
@@afalsaytHi, Did you change anything in the dockerfile? As I see qt is compiled successfully? but the example is not compiled. I am going to try to build now, but if you change anything in the script let me know.
@@ulasdikme7307 Hello! Yes, i've added qtwebsockets in the same way you did with shadertools etc FROM ubuntu:24.04 # Avoid interactive prompts during package installation ENV DEBIAN_FRONTEND=noninteractive # Update and install some necessary packages RUN { \ set -e && \ apt-get update && apt-get install -y \ wget \ git \ build-essential \ make \ cmake \ rsync \ sed \ libclang-dev \ ninja-build \ gcc \ bison \ python3 \ gperf \ pkg-config \ libfontconfig1-dev \ libfreetype6-dev \ libx11-dev \ libx11-xcb-dev \ libxext-dev \ libxfixes-dev \ libxi-dev \ libxrender-dev \ libxcb1-dev \ libxcb-glx0-dev \ libxcb-keysyms1-dev \ libxcb-image0-dev \ libxcb-shm0-dev \ libxcb-icccm4-dev \ libxcb-sync-dev \ libxcb-xfixes0-dev \ libxcb-shape0-dev \ libxcb-randr0-dev \ libxcb-render-util0-dev \ libxcb-util-dev \ libxcb-xinerama0-dev \ libxcb-xkb-dev \ libxkbcommon-dev \ libxkbcommon-x11-dev \ libatspi2.0-dev \ libgl1-mesa-dev \ libglu1-mesa-dev \ freeglut3-dev \ libssl-dev \ libgmp-dev \ libmpfr-dev \ libmpc-dev \ flex \ gawk \ texinfo \ libisl-dev \ zlib1g-dev \ libtool \ autoconf \ automake \ libgdbm-dev \ libdb-dev \ libbz2-dev \ libreadline-dev \ libexpat1-dev \ liblzma-dev \ libffi-dev \ libsqlite3-dev \ libbsd-dev \ perl \ patch \ m4 \ libncurses5-dev \ gettext && \ apt-get clean && \ rm -rf /var/lib/apt/lists/*; \ } 2>&1 | tee -a /build.log # Set the working directory to /build WORKDIR /build # Create a directory for the tools and change into it RUN mkdir crossTools && cd crossTools 2>&1 | tee -a /build.log # Download the necessary tar files # check version on raspberry pi - according to version build process can vary # gcc --version gcc version # ld --version binutils version # ldd --version glibc version RUN cd crossTools && \ wget mirror.lyrahosting.com/gnu/binutils/binutils-2.40.tar.gz && \ wget ftp.nluug.nl/pub/gnu/glibc/glibc-2.36.tar.gz && \ wget ftp.nluug.nl/pub/gnu/gcc/gcc-12.2.0/gcc-12.2.0.tar.gz && \ git clone --depth=1 github.com/raspberrypi/linux 2>&1 | tee -a /build.log # Extract the tar files RUN cd crossTools && \ tar xf binutils-2.40.tar.gz && \ tar xf glibc-2.36.tar.gz && \ tar xf gcc-12.2.0.tar.gz 2>&1 | tee -a /build.log RUN mkdir -p /opt/cross-pi-gcc 2>&1 | tee -a /build.log # Set the PATH environment variable ENV PATH=/opt/cross-pi-gcc/bin:$PATH # Compile toolchain - Reference docs.slackware.com/howtos:hardware:arm:gcc-10.x_aarch64_cross-compiler RUN { \ set -e && \ cd /build/crossTools/linux/ && \ KERNEL=kernel8 && \ make ARCH=arm64 INSTALL_HDR_PATH=/opt/cross-pi-gcc/aarch64-linux-gnu headers_install && \ cd ../ && \ mkdir build-binutils && cd build-binutils && \ ../binutils-2.40/configure --prefix=/opt/cross-pi-gcc --target=aarch64-linux-gnu --with-arch=armv8 --disable-multilib && \ make -j4 && \ make install && \ echo "Binutils done" && \ cd ../ && \ sed -i '66a #ifndef PATH_MAX #define PATH_MAX 4096 #endif' /build/crossTools/gcc-12.2.0/libsanitizer/asan/asan_linux.cpp && \ mkdir build-gcc && cd build-gcc && \ ../gcc-12.2.0/configure --prefix=/opt/cross-pi-gcc --target=aarch64-linux-gnu --enable-languages=c,c++ --disable-multilib && \ make -j4 all-gcc && \ make install-gcc && \ echo "Compile glibc partly" && \ cd ../ && \ mkdir build-glibc && cd build-glibc && \ ../glibc-2.36/configure \ --prefix=/opt/cross-pi-gcc/aarch64-linux-gnu \ --build=$MACHTYPE \ --host=aarch64-linux-gnu \ --target=aarch64-linux-gnu \ --with-headers=/opt/cross-pi-gcc/aarch64-linux-gnu/include \ --disable-multilib \ libc_cv_forced_unwind=yes && \ make install-bootstrap-headers=yes install-headers && \ make -j4 csu/subdir_lib && \ install csu/crt1.o csu/crti.o csu/crtn.o /opt/cross-pi-gcc/aarch64-linux-gnu/lib && \ aarch64-linux-gnu-gcc -nostdlib -nostartfiles -shared -x c /dev/null -o /opt/cross-pi-gcc/aarch64-linux-gnu/lib/libc.so && \ touch /opt/cross-pi-gcc/aarch64-linux-gnu/include/gnu/stubs.h && \ echo "Build gcc partly" && \ cd ../build-gcc/ && \ make -j4 all-target-libgcc && \ make install-target-libgcc && \ echo "build complete glibc" && \ cd ../build-glibc/ && \ make -j4 && \ make install && \ echo "build complete gcc" && \ cd ../build-gcc/ && \ make -j4 && \ make install && \ echo "Is finished"; \ } 2>&1 | tee -a /build.log RUN mkdir sysroot sysroot/usr sysroot/opt COPY rasp.tar.gz /build/rasp.tar.gz RUN tar xvfz /build/rasp.tar.gz -C /build/sysroot # Clone the Raspberry Pi firmware repository RUN git clone --depth=1 github.com/raspberrypi/firmware firmware 2>&1 | tee -a /build.log # Copy the opt directory from the cloned repository to sysroot/opt RUN cp -r firmware/opt sysroot/opt 2>&1 | tee -a /build.log COPY toolchain.cmake /build/ RUN { \ echo "Cmake build" && \ mkdir cmakeBuild && \ cd cmakeBuild && \ git clone github.com/Kitware/CMake.git && \ cd CMake && \ ./bootstrap && make -j8 && make install && \ echo "Cmake build is finished"; \ } 2>&1 | tee -a /build.log RUN { \ set -e && \ echo "Fix symbollic link" && \ wget raw.githubusercontent.com/riscv/riscv-poky/master/scripts/sysroot-relativelinks.py && \ chmod +x sysroot-relativelinks.py && \ python3 sysroot-relativelinks.py /build/sysroot && \ mkdir -p qt6 qt6/host qt6/pi qt6/host-build qt6/pi-build qt6/src && \ cd qt6/src && \ wget download.qt.io/official_releases/qt/6.8/6.8.0/submodules/qtbase-everywhere-src-6.8.0.tar.xz && \ wget download.qt.io/official_releases/qt/6.8/6.8.0/submodules/qtshadertools-everywhere-src-6.8.0.tar.xz && \ wget download.qt.io/official_releases/qt/6.8/6.8.0/submodules/qtdeclarative-everywhere-src-6.8.0.tar.xz && \ wget download.qt.io/official_releases/qt/6.8/6.8.0/submodules/qtwebsockets-everywhere-src-6.8.0.tar.xz && \ cd ../host-build && \ tar xf ../src/qtbase-everywhere-src-6.8.0.tar.xz && \ tar xf ../src/qtshadertools-everywhere-src-6.8.0.tar.xz && \ tar xf ../src/qtdeclarative-everywhere-src-6.8.0.tar.xz && \ tar xf ../src/qtwebsockets-everywhere-src-6.8.0.tar.xz && \ echo "Compile qtbase for host" && \ cd qtbase-everywhere-src-6.8.0 && \ cmake -GNinja -DCMAKE_BUILD_TYPE=Release \ -DQT_BUILD_EXAMPLES=OFF \ -DQT_BUILD_TESTS=OFF \ -DCMAKE_INSTALL_PREFIX=/build/qt6/host && \ cmake --build . --parallel 4 && \ cmake --install . && \ echo "Compile shader for host" && \ cd ../qtshadertools-everywhere-src-6.8.0 && \ /build/qt6/host/bin/qt-configure-module . && \ cmake --build . --parallel 4 && \ cmake --install . && \ echo "Compile declerative for host" && \ cd ../qtdeclarative-everywhere-src-6.8.0 && \ /build/qt6/host/bin/qt-configure-module . && \ cmake --build . --parallel 4 && \ cmake --install . && \ cd ../../pi-build && \ # a echo "Compile websockets for host" && \ cd ../qtwebsockets-everywhere-src-6.8.0 && \ /build/qt6/host/bin/qt-configure-module . && \ cmake --build . --parallel 4 && \ cmake --install . && \ cd ../../pi-build && \ # tar xf ../src/qtbase-everywhere-src-6.8.0.tar.xz && \ tar xf ../src/qtshadertools-everywhere-src-6.8.0.tar.xz && \ tar xf ../src/qtdeclarative-everywhere-src-6.8.0.tar.xz && \ tar xf ../src/qtwebsockets-everywhere-src-6.8.0.tar.xz && \ echo "Compile qtbase for rasp" && \ cd qtbase-everywhere-src-6.8.0 && \ cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DINPUT_opengl=es2 \ -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF \ -DQT_HOST_PATH=/build/qt6/host \ -DCMAKE_STAGING_PREFIX=/build/qt6/pi \ -DCMAKE_INSTALL_PREFIX=/usr/local/qt6 \ -DCMAKE_TOOLCHAIN_FILE=/build/toolchain.cmake \ -DQT_FEATURE_xcb=ON -DFEATURE_xcb_xlib=ON \ -DQT_FEATURE_xlib=ON && \ cmake --build . --parallel 4 && \ cmake --install . && \ echo "Compile shader for rasp" && \ cd ../qtshadertools-everywhere-src-6.8.0 && \ /build/qt6/pi/bin/qt-configure-module . && \ cmake --build . --parallel 4 && \ cmake --install . && \ echo "Compile declerative for rasp" && \ cd ../qtdeclarative-everywhere-src-6.8.0 && \ /build/qt6/pi/bin/qt-configure-module . && \ cmake --build . --parallel 4 && \ cmake --install . && \ # echo "Compile websockets for rasp" && \ cd ../qtwebsockets-everywhere-src-6.8.0 && \ /build/qt6/pi/bin/qt-configure-module . && \ cmake --build . --parallel 4 && \ cmake --install . && \ # echo "Compilation is finished"; \ } 2>&1 | tee -a /build.log RUN tar -czvf cross-pi-gcc.tar.gz -C /opt/cross-pi-gcc . RUN tar -czvf qt-host-binaries.tar.gz -C /build/qt6/host . RUN tar -czvf qt-pi-binaries.tar.gz -C /build/qt6/pi . RUN mkdir /build/project COPY project /build/project RUN { \ cd project && \ /build/qt6/pi/bin/qt-cmake && \ cmake --build .; \ }
@@ulasdikme7307 @ulasdikme7307 Yes! I've added qtwebsockets module in the docker file following the same steps you did with the shaders module
@@afalsayt Yeah this can break something. I didnt try websocket module
I think you can remove failed part from dockerfile, then create the container, get the log file and check the error
Hi Ulas. Thanks for your tutorial. Question, why do you use the architecture 32 bits in your toolchain ? The Raspberry pi 4 has a 64bit architecture. It's because of the OS 32bit? And why use 32 bit OS and not the 64 bits OS ? Thanks
Walker Helen White David Walker Jeffrey
For rsync fault : Your Raspberry Pi's pi user must either be granted root privileges, or you can set a root password and then configure the sshd_config file by setting PermitRootLogin yes.
İngilizce konuşuyorsun ama sanki Türkçe gibi, Türkçe vurgularla çok hoşuma gitti..
did u tested it on a debian 12 machine? now i found my mistake, i have to mount a new volume to the container in debian 12 first, i think.
Love this. Getting CRC error...(?) Help apprreciated, unless I can work it out... ??
Hi bro, can you help me to finish my homework PLEASE?
i can't find the /opt/vc/ directory in my raspberry, and i couldnt also build it from source, what should i do ?
Ulaş bey iyi çalışmalar, Windows veya linux tarafında opencv içeren C++ kodları yazıp, bunu Beaglebone'a uygun şekilde derlemek istiyorum. Sanıyorum ki opencv buna göre make yapılmalı önce. -D CMAKE_TOOLCHAIN_FILE= ? bunu nasıl eldeceğimi anlayamadım. Aklıma gelen diğer seçenek make işlemini Beaglebone'da yapıp ordan geliştirme yapacağım bilgisayara aktarmak ve Beaglebone toolchain'e göre derlemek. QT creator kullanmak istmeiştim fakat toolchainin işaret edileceği yeri göremedim. Bu konu hakkında ne söyleyebilirsiniz?
Iyi calismalar, direk beaglebone uzerinde de derleyebilirsin. Fakat cross development yapmak istiyorsan, benim onerim sanal makina yada docker gibi katmanlari kullanmadir. Bu sekilde isletim sisteminden bagimsiz bir sekilde derlersin. Windowsda direk cross derleyip linux uzerinde calistirmak gereksiz olabilir. Senin yerinde olsam en son paylastigim docker ile cross derleme videosuna bakardim. Ordaki docker dosylarini modifiye eder gerekli sonuca ulasirdim. Qt icin cozumu benim yaptigim icerikten ulasirsin gibi duruyor bir kac deneme ile. beaglebone zaten debian based olmasi lazim cok bir fark yok. Opencv icin ise, ilk basit bir kac opencv ornegini cross olarak derle cmake ile sonra beagleboneda calistigini gor. Ardindan zaten docker yada sanal makina kullanarak qt ile olan adimlari birlestirirsin. CMAKE_TOOLCHAIN_FILE dosyasi toolchain ile alakali katmanlari icermeli sanki, opencv cmakelists.txt de cagirilabilir. Opencv yi qt gibi dusun, sadece so(shared object) dosyalari var ve onlari cmake ile bind etmen lazim. (bide header lar tabi) :)
@@ulasdikme7307 Buna bakacağım, C++ tarafı ikinci uygulamam olacakta , şu anda spyder idesinde pythonda yazdığım logitech kamerasına ulaşan opencv kodu, beaglebone'da çalıştıramıyorum :). Gstreamer hatası alıyorum ayrıca kamera verisi alamdığından timeout oluşuyor ama kameraya ulaşıyor ledin yanmasından anlıyorum. Önce bu tarafı halletmem önemli.
Hi, is the same for rpi3?
If image is same then yes☺️
Hi Ulas, thanks for the great video. I got the hello world example working but once I tried doing it with my own project I got the following error: Failed to find required Qt component "Mqtt". Expected Config file at "/build/qt6/pi/lib/cmake/Qt6Mqtt/Qt6MqttConfig.cmake" does NOT exist. As you can see I intend to use MQTT in my application. I'm new to this so I don't really have a starting point. I imagine that the dockerfile needs to be slightly modified to clone the Mqtt repository and then configure, build and install it. However I'm not sure how to do this. Would you please help me?
Hi, you need to update dockerfile to cross compile mqtt. Then it should work.
Hi buddy, im a beginner with QT, I don't have much idea about the subject, besides that it is a bit difficult to find information about it, could you tell me how can I cross-compile from Linux to Windows? Of a QT project using Cmake? Please
Hi, Linux to windows? I recommend you to use virtual machine or docker instead of windows as a os. so you can compile between different hardwares with linux.
When I run ls on the raspberry, I get: "Bookshelf Desktop Documents Downloads drivers HelloQt6 Music Pictures Projekt Public qt-pi-binaries.tar.gz Templates Videos." But when I run ./HelloQt6: -bash, I have an error: "./HelloQt6: No such file or directory" I must have missed something somewhere. I'll try again later. Have you ever encountered something like this? ----- Ok. I used another raspberry and it works without problems. I think I have a different system installed on the first raspberry
Hi bro can you help me iam going crazy :D when i take a new project with Creator and take all in the project file it want to build the project gives a error with : ERROR [5/5] RUN cd /home/benz/QTonRaspberryPi/project && /build/qt6/pi/b 7.0s -------------------- ERROR: failed to solve: process "/bin/sh -c cd $repoPath$projectDir && /build/qt6/pi/bin/qt-cmake . -DCMAKE_BUILD_TYPE=Debug && cmake --build ." did not complete successfully: exit code: 1 why ?? i want make a creator project and take all in the project file or how can i do make Creator ui file and build it with docker. CAN I ONLY USE YOUr qml file ??
Qtcreator ile yapmaya calisiyorsan olmaz video da vscode kullaniliyor, qmake deil cmake kullanman lazim. qmake icinde cmake komutu kosamazsin.
@@ulasdikme7307 eyvallah baskan bende creator la kurarken cmake ile kurdum cmake file var yani. En iyi crossfile hangisi misal creator ile kursam yapsam komple projec ti sonra bitirmek
@@R1FighterR1 ben cmake ve vscode u oneririm, ama hizli bitirryin diyorsan debug yapmayi bosver cmake ile komut satirindan derle istedigin ide yide development olarak kullan. Videoda anlattigim gibide yapabilirsin qtcreator nie kullanmak istiyorsun?
thank you so much. One note that need to mention is: in the end extract qt-pi-binaries.tar.gz, the correct location is usr/local/qt6 not usr/local.
how can build all package of qt6.6 in this way ?
Great video, thanks for sharing! Just subscribed! I managed to crossbuild Qt 6.5.3 (single file with all modules) by tweaking the Dockerfiles. It would be fantastic to see a series incorporating scripts for building/testing or utilizing Jenkins. Looking forward to more content like this!
Thank you, It is kind of a magic for me too :) If you want to share the script to build whole qt do not hesitate it. I never tried whole build and I do not think that I will have enough time to try. If you share it other people can take as a reference.
@@ulasdikme7307Thank you for the encouragement! I've made changes to the workspace creating different folders in order to test compatibility with RPI Zero 2 and different versions of Qt. Initially, I tried RPI4 running bookworm 64 lite, using with eglfs instead of xcb. So, once the container generates the tar file, I need to manually install some additional libraries. Let me conduct a few more tests to clarify. Give me a couple of days and II'll get back to you!
@@edulum1318 Sure take your time 👍
When I try to take a source with a lower framerate than the camera (e.g. I try to take 30fps with a 60fps camera) I have an error, do you know why?
I sincerely ask God for help. Thank you.I put my jetson orin through rsync and put /usr and /lib into ~/orin/sysroot under wsl ubuntu, and then cross-compile my application, and an error occurred
orinCroosTool.cmake cmake_minimum_required(VERSION 3.10) include_guard(GLOBAL) # Set the system name and processor for cross-compilation set(CMAKE_SYSTEM_NAME Linux) set(CMAKE_SYSTEM_PROCESSOR arm) # Set the target sysroot and architecture set(TARGET_SYSROOT /home/yao/orin/sysroot) set(TARGET_ARCHITECTURE aarch64-linux-gnu) set(CMAKE_SYSROOT ${TARGET_SYSROOT}) set(CMAKE_FIND_ROOT_PATH ${TARGET_SYSROOT}) set(CMAKE_INCLUDE_PATH ${TARGET_SYSROOT}/usr/include) set(CMAKE_INCLUDE_PATH ${TARGET_SYSROOT}/usr/include/aarch64-linux-gnu) set(CMAKE_LIBRARY_PATH ${TARGET_SYSROOT}/usr/lib) # Add library directories list(APPEND CMAKE_LIBRARY_PATH "${TARGET_SYSROOT}/usr/lib") list(APPEND CMAKE_LIBRARY_PATH "${TARGET_SYSROOT}/lib/aarch64-linux-gnu") list(APPEND CMAKE_LIBRARY_PATH "${TARGET_SYSROOT}/usr/lib/aarch64-linux-gnu") set(CMAKE_INSTALL_RPATH "${TARGET_SYSROOT}/lib/aarch64-linux-gnu") list(APPEND CMAKE_RPATH_LINK_PATH "${TARGET_SYSROOT}/lib/aarch64-linux-gnu") # Add RPATH link directories list(APPEND CMAKE_RPATH_LINK_PATH "${TARGET_SYSROOT}/usr/lib") list(APPEND CMAKE_RPATH_LINK_PATH "${TARGET_SYSROOT}/usr/lib/aarch64-linux-gnu") list(APPEND CMAKE_RPATH_LINK_PATH "${TARGET_SYSROOT}/lib/aarch64-linux-gnu") # Set paths for CUDA libraries set(CUDA_INCLUDE_DIR ${TARGET_SYSROOT}/usr/local/cuda/include) set(CUDA_LIB_DIR ${TARGET_SYSROOT}/usr/local/cuda/lib64) # Configure the pkg-config environment variables set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:${CMAKE_SYSROOT}/usr/lib/${TARGET_ARCHITECTURE}/pkgconfig") set(ENV{PKG_CONFIG_LIBDIR} "${TARGET_SYSROOT}/usr/lib/pkgconfig:${TARGET_SYSROOT}/usr/share/pkgconfig:${CMAKE_SYSROOT}/usr/lib/${TARGET_ARCHITECTURE}/pkgconfig:${CMAKE_SYSROOT}/usr/lib/pkgconfig") set(ENV{PKG_CONFIG_SYSROOT_DIR} "${CMAKE_SYSROOT}") # Set the C and C++ compilers set(tools /home/yao/orin/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu) set(CMAKE_C_COMPILER ${tools}/bin/${TARGET_ARCHITECTURE}-gcc) set(CMAKE_CXX_COMPILER ${tools}/bin/${TARGET_ARCHITECTURE}-g++) # Define additional compiler flags set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -isystem=${TARGET_SYSROOT}/usr/include -isystem=${TARGET_SYSROOT}/usr/local/include -isystem=${TARGET_SYSROOT}/usr/include/${TARGET_ARCHITECTURE}") set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}") # Configure CMake find root path modes set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) # Set the install RPATH use and build RPATH set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) set(CMAKE_BUILD_RPATH ${TARGET_SYSROOT}) # Append to CMake library and prefix paths list(APPEND CMAKE_LIBRARY_PATH ${CMAKE_SYSROOT}/usr/lib/${TARGET_ARCHITECTURE}) list(APPEND CMAKE_PREFIX_PATH "${CMAKE_SYSROOT}/usr/lib/${TARGET_ARCHITECTURE}/cmake")
CMakeLists.txt cmake_minimum_required(VERSION 3.10) project(yolov5-tensorrt VERSION 0.1 DESCRIPTION "Real-time object detection with YOLOv5 and TensorRT") set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -g -Wall -Wextra -Wno-deprecated -fPIC") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -g -pthread") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) if(NOT DEFINED CMAKE_LIBRARY_OUTPUT_DIRECTORY) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) endif() find_package(OpenCV REQUIRED) # find_package(CUDA REQUIRED) include_directories(include) file(GLOB SOURCES "src/*.cc") add_executable(camera_detect main_camera.cc ${SOURCES} ) target_include_directories(camera_detect PUBLIC ${OpenCV_INCLUDE_DIRS} ${CUDA_INCLUDE_DIR} ) target_link_libraries(camera_detect nvinfer nvonnxparser ${CUDA_LIB_DIR} ${OpenCV_LIBRARIES} )
What is the error?
part 2: th-cam.com/video/rK7-_h8OQ2M/w-d-xo.htmlsi=wNzW36YwwgfFERuC
I am trying to add these modules: qtcharts-everywhere-src-6.6.1 qtquick3d-everywhere-src-6.6.1 qtquicktimeline-everywhere-src-6.6.1 qtquick3dphysics-everywhere-src-6.6.1 For dockerfile. I tried to add as you added in "shader" and "declarative". Then when I get the Docker build: > [22/22] RUN { cd project && /build/qt6/pi/bin/qt-cmake && cmake --build .; }: 0.208 /bin/sh: 1: /build/qt6/pi/bin/qt-cmake: not found ------ Dockerfile:286 -------------------- 285 | 286 | >>> RUN { \ 287 | >>> cd project && \ 288 | >>> /build/qt6/pi/bin/qt-cmake && \ 289 | >>> cmake --build .; \ 290 | >>> } 291 | -------------------- ERROR: failed to solve: process "/bin/sh -c { cd project && /build/qt6/pi/bin/qt-cmake && cmake --build .; }" did not complete successfully: exit code: 127 I get this error at the last stage.
there is a build.log file in the container, you can find more info.
@@ulasdikme7307 how we can open that build.log for the container where we cant build the container
@@jordantrajkov9549 docker cp tmpbuild:/build.log ./build.log it is explained in the github github.com/PhysicsX/QTonRaspberryPi?tab=readme-ov-file#debugging-of-compilation
@@ulasdikme7307 okay thanks mate
there is a way to do it more easer: do double click on the botton and write on the execution section: dispose(); //if u want to see only the new page nameoftheclass namevariable = new nameoftheclass(); namevariable.setVisible(true);
Can you make a video for beaglebone black? I really need it. Thanks for the great tutorial.
sakın türkçe yapma.
hahahah 😁 Turkce de yaparim siz abone olun. Sorun yok. Bu arada yeni docker ile bir tutorial yaptim onu ornek alirsan daha iyi olur bu eski.
@@ulasdikme7307 abone oldum. cevap vereceğini hiç düşünmemiştim :) docker de bilmiyorum ki hiç kullanmadım. şimdi ona da bulaşmayayım bu ara çok şey öğrendim-öğreniyorum kafam çorba oldu. Yani benim gibi ingilizce özürlüleri için lütfen Türkçe de yapın.
Docker lisi daha kolay. Videoyu izle sadece komutlari kos. Tum bagimliliklari ben hallettim sadece komutlari kosarsan bir kac saat sonra qt compile olmus bir sekilde kullanima hazir olarak bulumacak. Github da komutlar var. Docker dedigim sey sanal makina yerine kucuk izolasyon yaratiyor, rasp a falan ihtiyacin yok tum derlemeyi host da yapabiliosun acayip kolaylik. Takildigin yer olursa sor cevaplarim. Github linki video nun altinda. Turkce cok izlenmiyor dedim bari ingilizce yapayim oda cok izlenmedi hos 😁 Ama dusunuyorum zamanim olursa genel bir video yapacagim turkce
First of all thank you for your great vidoes i appriceate that you are putting effort to help others, secondly i have tired to follow th-cam.com/video/oWpomXg9yj0/w-d-xo.html but it got me no where since qt6.3.0 is no where to be found plus i even tried it with qt6.5.0 still i can build and compile for the host but the pi build throws tons fo errors plus when i do the last rsync i get this error rsync: [sender] link_stat "/opt/vc" failed: No such file or directory (2) so question is should i follow the tutorial mentioned above with the latest qt and what should i do to solve the /opt/vc i am using raspberry pi 4 4GB running 32bit bullseye lite os and i am running ubuntu22.04 on vm
Hey thanks, follow the latest one, I have been keeping this up to date.
@@ulasdikme7307 which one of them please ? im facing the same problem of "no such file or directory" (cant find the /opt/vc)
@@mayssaknani You can try this video. There are steps in the link below the video.(github link) With docker it is easy, but you need to update docker files to compile opecnv if you need it.
Hey Ulas, thanks for the tutorial. I was able to get a basic App running on an RPi 4b with this. EDIT Issue solved, see replies. One question I've got is about extending the packages that are installed in the build image. I want to compile an app that uses libmodbus. So I added "libmodbus-dev \" under the run section of the dockerfile and rebuilt, but it can't seem to find the package during the last step. [22] Is this the right way to add additional packages to the build process or are there more steps that I need to take?
I may have been a bit silly and added these to the dockerfile instead of the DockerFileRasp. Will update if that fixes things.
EDIT: Issue solved: Putting libmodbus-dev \ and libmodbus5 \ into the run sections of the DockerFile and DockerFileRasp seems to fix the errors in the earlier steps. I had a second error related to linking the library during the final step of making the executable the solution was to update where my custom modbus module was looking for it. I put this in the CMAKELISTS files referencing the modbus libraries, it points to where the actual library files ended up in the build image: target_link_libraries(ModbusModule PRIVATE Qt6::Qml /build/sysroot/usr/lib/aarch64-linux-gnu/libmodbus.so)
If you add these libraries in dockerfile, then they are installed for ubuntu which is x86 probably, but you need them for rasp. I think binding will be a problem in this case.
Hi! Could you please explain me, why you connect +5v with D22? shouldn't it be D1? Where in sketch is written start pin as 22?
Hi, thanks for sharing this video but when i trying to build qtcrossbuild,it gives an error while downloading necessary tar files,here is the error DockerFile:90 /bin/sh :1 :wget: not found. So,how do i solve that ?
Hi, I just tested link is working, probably you may have vpn or network configuration which does not allow you to access these links?
i have tried with different internet connections but it doesn’t change,i think the error is about missing command of “wget” when the RUN line of tar files in DockerFile.Is there a way to fix it anyway ? Can I download manually these .tar files and implement the docker build ?
@user-gw3wu9vq4x I just tested and it is working. You can download them in the same directory where dockerfile exists. Then using COPY command it is possible to copy them to image. But as I told you, if you have problem with internet connection, you can see another issues.
I'm with error when run: ./HelloQt6: error while loading shared libraries: libQt6Core.so.6: cannot open shared object file: No such file or directory
Hello Eriton, I hope you are fine, If you have the HelloQt6 then you compiled the qt successfully, good! now you need to send qt-pi-binaries.tar.gz to target and extract it and you export LD_LIBRARY_PATH on the target like in the video or in the link below the video. Have you did that?
@@ulasdikme7307 Thanks for helping! But I sent qt-pi-binaries.tar.gz to target and extract it and export LD_LIBRARY_PATH. But I show this error.
Could you please share with me output of echo $LD_LIBRARY_PATH and sudo find /usr/local -name libQt6Core.so.6 and ldd HelloQt6, lets check together
@@ulasdikme7307 Sorry, this tuturial is tar -xvf qt-pi-binaries.tar.gz -C /usr/local, I change to tar -xvf qt-pi-binaries.tar.gz -C /usr/local/qt6 Works fine now! Thanks for helping!!!
Enjoy.. Do not forget to subscribe, share and like 😇
Do you know compile to buildroot using raspberry 4?
Hello Teacher!!! Thank for sharing!!! I like a lot your video. The Brazil loves you.