Ulas Dikme
Ulas Dikme
  • 50
  • 903 179
Qt CrossCompilation with Docker Remote Debugging for RaspberryPi with VScode - Ubuntu Part 2
This is the follow up of ua-cam.com/video/5XvQ_fLuBX0/v-deo.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 of CrossCompiled Application with VScode : (12:10​)
Remote Debug QML/C++ Application : (22:59​)
www.linkedin.com/in/ulasdikme
Do not copy the video itself or not use for yourself without permission ( for music and content ).
Переглядів: 912

Відео

Qt For Raspberry Pi - Qt 6.6.1 Cross Compilation with Docker isolation Easy way !
Переглядів 2,5 тис.7 місяців тому
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 ua-cam.com/video/RWNWAMT5UkM/v-deo.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
Переглядів 6 тис.Рік тому
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,4 тис.2 роки тому
There is a new up to date tutorial about Qt cross compilation for Rasp with docker in more easy way! Check it out! ua-cam.com/video/5XvQ_fLuBX0/v-deo.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. ua-cam.com/video/oWpomXg9yj0/v-deo.html All environment is same with the fir...
Qt6 for Raspberry pi 4 - Cross Compilation with Cmake using Ubuntu VM - Qt6.3.0 Base - Part I
Переглядів 16 тис.2 роки тому
There is a new up to date tutorial about Qt cross compilation for Rasp with docker in more easy way! Check it out! ua-cam.com/video/5XvQ_fLuBX0/v-deo.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 Q...
Websocket C++ Asynchronous Echo Server -Part II-Difference Synchronous and Asyncronous applications
Переглядів 5 тис.2 роки тому
In this content, synchronous and asynchronous applications is discuessed and implemente async simple echo websocket server example using boost/beast library. Part I : ua-cam.com/video/ZSefPfZqxpo/v-deo.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 WI...
Introduction to Gstreamer (Gst-launch) for embedded devices raspberry pi jetson nano
Переглядів 20 тис.3 роки тому
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 !
Переглядів 5 тис.3 роки тому
Understand the difference between C and python !
C++ Websocket Introduction with Boost library Part 1
Переглядів 27 тис.3 роки тому
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
Переглядів 6 тис.3 роки тому
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
Переглядів 9793 роки тому
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,6 тис.3 роки тому
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,5 тис.3 роки тому
Example of mqtt protocol using RYC1001 cloud with raspberry pi & Esp8266 & mqtt.fx reyax.com/products/ryc1001/ All code example will be available soon. github.com/PhysicsX/QtRaspberryPiExamples/tree/master/QtMqttRaspberryPiEsp8266 Intro: (00:00) Part 1 Introduction to RYC1001 with mqtt.fx tool: (01:38) Part 2 Esp8266 mqtt publish example: (12:47) Part 3 Qt Mqtt example example with QML on Raspb...
Qt for Jetson Nano - Qt 5.15 Cross Compilation Development Environment on Ubuntu Virtual Machine
Переглядів 11 тис.3 роки тому
Steps: github.com/PhysicsX/QTonRaspberryPi/tree/main/QtJetsonNano5.15.0 Intro: (00:00) Part 1 Ubuntu Virtual Machine Preparation: (00:40) Part 2 Sd Card Preparetion for Jetson Nano ( ubuntu ): (07:50) Part 3 Qt Installation On Virtual Machine: (15:30) Part 4 QtCreator Installation and First Example: (44:55) How to create a Qt Development Environment for Jetson Nano. How to run simple hello worl...
Esp8266 user login screen example with html css javascript and websocket using arduino ide part 1
Переглядів 11 тис.4 роки тому
Create login screen to hide the information in the server esp8266. Example will be updated. github.com/PhysicsX/Esp8266-32-Examples/blob/master/Esp8266LoginScreen/Esp8266LoginScreen.ino
Number Of Islands solution with BFS C++ Python part 1
Переглядів 9254 роки тому
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,5 тис.4 роки тому
ESP8266 websocket example with hc sr04 ultrasonic sensor ruler css example using arduino ide
Raspberry pi 4 remote connection via any webbrowser
Переглядів 10 тис.4 роки тому
Raspberry pi 4 remote connection via any webbrowser
Socket programming for beginners on raspberry pi 4 using boost asio library
Переглядів 8 тис.4 роки тому
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,6 тис.4 роки тому
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
Переглядів 7 тис.4 роки тому
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
Переглядів 51 тис.4 роки тому
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
Переглядів 3884 роки тому
Machine Learning Regression Example with tensorflow quick start jatson nano animated explanation
Quick Start Machine Learning with Jatson Nano Tensorflow Installation
Переглядів 8 тис.4 роки тому
Quick Start Machine Learning with Jatson Nano Tensorflow Installation
Dynamic cast c++ Runtime Type Identification example why we use dynamic cast - RTTI
Переглядів 4,6 тис.4 роки тому
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
Переглядів 19 тис.4 роки тому
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
Переглядів 10 тис.4 роки тому
Tensorflow installation and object detection example on Raspberrypi 4 model B Complete tutorial
For Absolute Beginners C++ in 40 minutes std::vector tutorial
Переглядів 2984 роки тому
For Absolute Beginners C in 40 minutes std::vector tutorial
esp8266 websocket javascript example with css style button using arduino ide - NodeMcu
Переглядів 24 тис.5 років тому
esp8266 websocket javascript example with css style button using arduino ide - NodeMcu
C++ vs Java vs Python benchmark on raspberry pi simple file process
Переглядів 4,2 тис.5 років тому
C vs Java vs Python benchmark on raspberry pi simple file process

КОМЕНТАРІ

  • @Bmsaydogru
    @Bmsaydogru 3 дні тому

    İngilizce konuşuyorsun ama sanki Türkçe gibi, Türkçe vurgularla çok hoşuma gitti..

  • @c-b51kellerkind6
    @c-b51kellerkind6 3 дні тому

    did u tested it on a debian 12 machine?

  • @rydinorwin
    @rydinorwin 6 днів тому

    Love this. Getting CRC error...(?) Help apprreciated, unless I can work it out... ??

  •  28 днів тому

    Hi bro, can you help me to finish my homework PLEASE?

  • @mayssaknani
    @mayssaknani Місяць тому

    i can't find the /opt/vc/ directory in my raspberry, and i couldnt also build it from source, what should i do ?

  • @zek_de_ed6389
    @zek_de_ed6389 Місяць тому

    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?

    • @ulasdikme7307
      @ulasdikme7307 Місяць тому

      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) :)

    • @zek_de_ed6389
      @zek_de_ed6389 Місяць тому

      @@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.

  • @gonzaloriverasuarez8015
    @gonzaloriverasuarez8015 Місяць тому

    Hi, is the same for rpi3?

  • @alejomg95
    @alejomg95 Місяць тому

    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?

    • @ulasdikme7307
      @ulasdikme7307 Місяць тому

      Hi, you need to update dockerfile to cross compile mqtt. Then it should work.

  • @gerardoanzora9194
    @gerardoanzora9194 2 місяці тому

    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

    • @ulasdikme7307
      @ulasdikme7307 Місяць тому

      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.

  • @ukaszl248
    @ukaszl248 2 місяці тому

    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

  • @R1FighterR1
    @R1FighterR1 3 місяці тому

    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 ??

    • @ulasdikme7307
      @ulasdikme7307 3 місяці тому

      Qtcreator ile yapmaya calisiyorsan olmaz video da vscode kullaniliyor, qmake deil cmake kullanman lazim. qmake icinde cmake komutu kosamazsin.

    • @R1FighterR1
      @R1FighterR1 3 місяці тому

      @@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

    • @ulasdikme7307
      @ulasdikme7307 3 місяці тому

      @@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?

  • @poryaetemady111
    @poryaetemady111 3 місяці тому

    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.

  • @amirtaherkhani
    @amirtaherkhani 3 місяці тому

    how can build all package of qt6.6 in this way ?

  • @edulum1318
    @edulum1318 4 місяці тому

    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!

    • @ulasdikme7307
      @ulasdikme7307 4 місяці тому

      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.

    • @edulum1318
      @edulum1318 4 місяці тому

      @@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!

    • @ulasdikme7307
      @ulasdikme7307 4 місяці тому

      @@edulum1318 Sure take your time 👍

  • @Eckmuhl29
    @Eckmuhl29 4 місяці тому

    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?

  • @ponnyao-ek6pl
    @ponnyao-ek6pl 5 місяців тому

    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

    • @ponnyao-ek6pl
      @ponnyao-ek6pl 5 місяців тому

      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")

    • @ponnyao-ek6pl
      @ponnyao-ek6pl 5 місяців тому

      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} )

    • @ulasdikme7307
      @ulasdikme7307 5 місяців тому

      What is the error?

  • @omarmossa3284
    @omarmossa3284 5 місяців тому

    part 2: ua-cam.com/video/rK7-_h8OQ2M/v-deo.htmlsi=wNzW36YwwgfFERuC

  • @samedsucuk
    @samedsucuk 5 місяців тому

    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.

    • @ulasdikme7307
      @ulasdikme7307 5 місяців тому

      there is a build.log file in the container, you can find more info.

    • @jordantrajkov9549
      @jordantrajkov9549 5 місяців тому

      @@ulasdikme7307 how we can open that build.log for the container where we cant build the container

    • @ulasdikme7307
      @ulasdikme7307 5 місяців тому

      @@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

    • @jordantrajkov9549
      @jordantrajkov9549 5 місяців тому

      @@ulasdikme7307 okay thanks mate

  • @cristian8553
    @cristian8553 5 місяців тому

    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);

  • @kadirtunc4664
    @kadirtunc4664 5 місяців тому

    Can you make a video for beaglebone black? I really need it. Thanks for the great tutorial.

  • @81MaMoo81
    @81MaMoo81 5 місяців тому

    sakın türkçe yapma.

    • @ulasdikme7307
      @ulasdikme7307 5 місяців тому

      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.

    • @81MaMoo81
      @81MaMoo81 5 місяців тому

      @@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.

    • @ulasdikme7307
      @ulasdikme7307 5 місяців тому

      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

  • @arcrobotics9982
    @arcrobotics9982 6 місяців тому

    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 ua-cam.com/video/oWpomXg9yj0/v-deo.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

    • @ulasdikme7307
      @ulasdikme7307 6 місяців тому

      Hey thanks, follow the latest one, I have been keeping this up to date.

    • @mayssaknani
      @mayssaknani 23 дні тому

      @@ulasdikme7307 which one of them please ? im facing the same problem of "no such file or directory" (cant find the /opt/vc)

    • @ulasdikme7307
      @ulasdikme7307 21 день тому

      @@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.

  • @Geekforest
    @Geekforest 6 місяців тому

    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?

    • @Geekforest
      @Geekforest 6 місяців тому

      I may have been a bit silly and added these to the dockerfile instead of the DockerFileRasp. Will update if that fixes things.

    • @Geekforest
      @Geekforest 6 місяців тому

      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)

    • @ulasdikme7307
      @ulasdikme7307 6 місяців тому

      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.

  • @nikolaygorashchenko9979
    @nikolaygorashchenko9979 6 місяців тому

    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?

  • @user-gw3wu9vq4x
    @user-gw3wu9vq4x 6 місяців тому

    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 ?

    • @ulasdikme7307
      @ulasdikme7307 6 місяців тому

      Hi, I just tested link is working, probably you may have vpn or network configuration which does not allow you to access these links?

    • @user-gw3wu9vq4x
      @user-gw3wu9vq4x 6 місяців тому

      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 ?

    • @ulasdikme7307
      @ulasdikme7307 6 місяців тому

      @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.

  • @eritongomes8110
    @eritongomes8110 6 місяців тому

    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

    • @ulasdikme7307
      @ulasdikme7307 6 місяців тому

      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?

    • @eritongomes8110
      @eritongomes8110 6 місяців тому

      @@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.

    • @ulasdikme7307
      @ulasdikme7307 6 місяців тому

      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

    • @eritongomes8110
      @eritongomes8110 6 місяців тому

      @@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!!!

    • @ulasdikme7307
      @ulasdikme7307 6 місяців тому

      Enjoy.. Do not forget to subscribe, share and like 😇

  • @eritongomes8110
    @eritongomes8110 6 місяців тому

    Do you know compile to buildroot using raspberry 4?

  • @eritongomes8110
    @eritongomes8110 6 місяців тому

    Hello Teacher!!! Thank for sharing!!! I like a lot your video. The Brazil loves you.

  • @yaspfounder
    @yaspfounder 6 місяців тому

    Great video thanks a lot!

  • @erenalks2519
    @erenalks2519 6 місяців тому

    İngilizcen den türk olduğunu anlamıştım adına da bakınca taşlar yerine oturdu

  • @audiojog
    @audiojog 6 місяців тому

    wow this is great!! i have stupid question , with the cross compiled binaries of qt6 installed in raspberry pi hardware can we 1. use qt creator (remotely) from a pc 2. or can we have qt creator setup directly on raspberry pi os ? thanks

    • @ulasdikme7307
      @ulasdikme7307 6 місяців тому

      Thanks, I have been working on vscode for debugging but It is not working as I expected. I would like to create another video for it if I address the issues. For qtcreator you need to extract syroot and cross toolchain and qt libraries(these are available in the container already as tar file), then you should give the path in qtcreator when you add new device and compiler. You need to run qtcreator on host for remote debugging. Do not forget to subscribe and share ! :)

    • @audiojog
      @audiojog 6 місяців тому

      @@ulasdikme7307 Sure. Thanks for the promt reply. Eagerly wait for your vs code and qt creator video. Keep up your good work , very helpful. I will try this approach this weekend. I have few follow up questions. If could clarify that would be great. Thanks kindly. 1. For raspberry pi hardware how so we match QEMU image, do you flash the same image as QEMU if yes can you please explain how ?. 2. Can i install QT creator on pi desktop directly and configure the ql libraries after they the compiled libs are sent to the raspberry pi hardware ? basically after cross compilation of qt lib for raspberry pi , can we just use only raspberry pi desktop to write applications?

    • @ulasdikme7307
      @ulasdikme7307 6 місяців тому

      @@audiojog 1. This can be selected via dockerfile FROM --platform=linux/arm64 arm64v8/debian:bookworm as rasp. If you check the docker file for raspberry pi, then you can see bookworm type. But becareful, as I explained in the video, because of different hardware it is not possible to match exact os, there will be difference everytime. Related hardware differences(precompiled binaries) can be found directly from rasp repository. It is explained in the video. When I compiled the Qt without docker, I see some differences in the configuration from eglfs perspective with compilation using docker. it is becuase I missed some precompiled libraries probably. But it is fine for now. I will check it later. 2. I do not recommend using any ide or compilation on target device. But yes if you want, you can run it on raspberry pi. It will be slow I think. You have all libraries and related dependencies already to compile and start. Therefore it is against the nature of cross compilation. :)

  • @davidaliaga4708
    @davidaliaga4708 7 місяців тому

    In 27.31 you tried so many things that it is confusing how did you solve the problem. I have the same problem (Internal data stream error) but somehow you jumped from that error to /dev/video0 not recognized... and I dont know what you did to do that

  • @maximelebreux2914
    @maximelebreux2914 7 місяців тому

    Great tutorial!!

  • @riounathalie2539
    @riounathalie2539 7 місяців тому

    Hello Ulas, I no longer see our exchange concerning my problem. I tried docker but it is not satisfactory because the process is too long, I need to debug my windows quickly

    • @ulasdikme7307
      @ulasdikme7307 7 місяців тому

      Hi, you can still compile it with vm, but yes docker takes muc longer time you need more ram. But it is easier than solution with vm as long as you have faster computer. Btw I did not show how to debug application with docker? I just showed how to compile? You can still build your development environment with vm using tar files which are produced by docker. If you see last lines in the dockerfile you will see 3 tar files, if you extract them in vm you will have old vm based development environment.

  • @dalesmith8666
    @dalesmith8666 7 місяців тому

    Sure would be nice if you could do this with the Microsoft 10 OS. Other words cross compile from windows 10 to RPI4 using the official RPI4 OS of the time. I've done it with Linux a few years ago, and seems that many tutorials want you to use a VM. Not my way of doing things. Please consider and help, probably would be a benefit to many!

    • @ulasdikme7307
      @ulasdikme7307 7 місяців тому

      I published new tutorial about how to cross compile with docker. Isolation is good. Maybe it can help. Check my last video.!

  • @abhijeet6989
    @abhijeet6989 7 місяців тому

    Hello World from QT Application qt.qpa.plugin: Could not find the Qt platform plugin "eglfs" in "" This application failed to start because no Qt platform plugin could be initialized.

  • @abhijeet6989
    @abhijeet6989 7 місяців тому

    qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" qt.qpa.plugin: Could not find the Qt platform plugin "eglfs" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. How to correct this error ? This qmake conf file below : # # qmake configuration for odroid boards running 64-bit Linux For Tegra # include(../common/linux_device_pre.conf) QMAKE_INCDIR_POST += \ $$[QT_SYSROOT]/usr/include \ $$[QT_SYSROOT]/usr/include/aarch64-linux-gnu QMAKE_LIBDIR_POST += \ $$[QT_SYSROOT]/usr/lib \ $$[QT_SYSROOT]/lib/aarch64-linux-gnu \ $$[QT_SYSROOT]/usr/lib/aarch64-linux-gnu QMAKE_RPATHLINKDIR_POST += \ $$[QT_SYSROOT]/usr/lib \ $$[QT_SYSROOT]/usr/lib/aarch64-linux-gnu \ $$[QT_SYSROOT]/lib/aarch64-linux-gnu #QMAKE_INCDIR_EGL = $$[QT_SYSROOT]/usr/lib/aarch64-linux-gnu/tegra-egl DISTRO_OPTS += aarch64 COMPILER_FLAGS += -march=armv8-a+crypto+crc #EGLFS_DEVICE_INTEGRATION = eglfs_x11 include(../common/linux_arm_device_post.conf) load(qt_config) How to install plugins ? Any resources you refer ?

  • @biskero
    @biskero 7 місяців тому

    will this work for RPI 5 with raspbian OS and Qt6

    • @ulasdikme7307
      @ulasdikme7307 7 місяців тому

      Hi, I made another tutorial abouit it with docker ua-cam.com/video/5XvQ_fLuBX0/v-deo.htmlsi=iiR92LvUI-0D_cKP It is quite new and easy! I tested with rasp 4 but I am sure it will work for rasp 5. I think they use same image. Give it a try!

    • @biskero
      @biskero 7 місяців тому

      @@ulasdikme7307 very cool ! will test it on my RPI 4, waiting for the RPI 5 adn will test on it too! thx and great work!

  • @Goktug-rl7yc
    @Goktug-rl7yc 7 місяців тому

    Bu görüntüyü farklı bilgisayarda nasıl alabilirim? Jetson'a ethernet üzerinden bağlanıp.

  • @edwardchapman1914
    @edwardchapman1914 7 місяців тому

    Stuck on fontconfig for cross compiling qtwebengine.. brought over etc/fonts and etc/alternatives in sysroot.. still no good. Arm64 .. I think this is the last step any ideas?

    • @ulasdikme7307
      @ulasdikme7307 7 місяців тому

      This tutorial is quite old, because of toolchain you can see some issues, here it is updated version github.com/PhysicsX/QTonRaspberryPi/tree/main/QtRaspberryPi6.6.1 and also I created a very easy way with docker, I recommend you to check this page also github.com/PhysicsX/QTonRaspberryPi/tree/main/QtRaspberryPiWithDocker6.6.1. I will make a video about it soon.

    • @edwardchapman1914
      @edwardchapman1914 7 місяців тому

      @@ulasdikme7307 also makes sense to bring over etc/alternatives over with rsync.. I have been weeding though most of the pkg-config pc today.. up to the glib needing pkg and pkg neeeding glib.. anyway I found something strange on bookworm, Pkg-config exists glib returns a 0 on the pi itself .. and that is where it stops on cross compile build.. in the morning I will get out my snow shoes and start walking up that mountain, thanks for you input..

  • @SaMSoN-X
    @SaMSoN-X 8 місяців тому

    QtQuick not find. WTF?

  • @virenpatelpage
    @virenpatelpage 8 місяців тому

    Thanks for doing this man. A very crucial factor that students miss out.

  • @riounathalie2539
    @riounathalie2539 8 місяців тому

    Hello Ulas, Qt 6.3.0 isn't no more available, so I've tried your tuto with Qt6.2.0 and 6.4.0 and It doesn't work. Compilation is OK on my Host, but cross is not OK, I have many Cmake errors.

    • @ulasdikme7307
      @ulasdikme7307 8 місяців тому

      Hi, yes it is quite old. But the way is correct. You need to change toolchain. github.com/PhysicsX/QTonRaspberryPi/tree/main/QtRaspberryPi6.6.1 in this link there is new version, ( while copying the commands, i could made a mistake, but it is working) so if you check carefully, I compiled the toolchain. If you follow the steps, it will work. Currently I am thinking to create a new content about it but lets see.

    • @riounathalie2539
      @riounathalie2539 8 місяців тому

      Thanks, I will try your suggestion, I've already spent 3 days of working for the moment...@@ulasdikme7307

    • @riounathalie2539
      @riounathalie2539 7 місяців тому

      Hello, I've tried your new tutorial, but I can't compile toolchain - I'm using a raspi 3 - I've mistake with headers_install (not found command) - Can I still use Linearo Tool chain instead ?@@ulasdikme7307

    • @ulasdikme7307
      @ulasdikme7307 7 місяців тому

      I shared a new video, with docker you should be able to compile it if you follow the steps, please watch the new one also. Which version of toolchain you use? I tested with rasp 4 there can be differences with rasp 3.

    • @riounathalie2539
      @riounathalie2539 7 місяців тому

      Thanks, I'm going to try your new tutorial .I used rpi-gcc-8.3.0 @@ulasdikme7307

  • @srikanth7730
    @srikanth7730 8 місяців тому

    Hi.. it's vey good session... I am facing one thing.. cameraundistort by providing settings from C++ API.. From terminal I could run with setting parameters... Will you give any input on this ... helpful

  • @dalesmith8666
    @dalesmith8666 8 місяців тому

    JHC MAN! Take some time and slow down!!!! Get off the coffee! TO F-EN FAST!!!LOL!

  • @furkanaltay5200
    @furkanaltay5200 8 місяців тому

    Merhaba Tutorial için teşekkürler, bütün adımları uyguladım çalıştı. Fakat, herhangi bir proje oluşturduğumda autocomplete özelliğinin çalışmadığını gördüm. Bu sorunu nasıl çözebilirim. Hi, thanks for the tutorial, I have done all steps respectively and it finally works!. But I have recognized that autocomplete feature doesnt work when I created a sample project. Could you give me an advice about how to solve this problem ?

  • @mohamedhussien4013
    @mohamedhussien4013 9 місяців тому

    Thank u so much. But from my experience, it's not a tutorial for beginners (You need to know some basics).

  • @rumpelstiltskin449
    @rumpelstiltskin449 9 місяців тому

    Is this what people who develop embedded GUIs professionally do? If so, may Lord be with you, cause you are living hell. It is my like 5th attempt so far to actually cross compile anything. And this one failed as well (can't wget qtbase, don't know why).

    • @ulasdikme7307
      @ulasdikme7307 9 місяців тому

      Tutorial is quite old, so it needs update. There is an official tutorial on qt website. I recommend you to check it. If I find time, I will update it. btw I like your playlist.

    • @rumpelstiltskin449
      @rumpelstiltskin449 9 місяців тому

      @ulasdikme7307 I was able to download latest qtbase on windows and transfer it to VM, otherwise links didn't respond on VM. Hope I'll get eventually to cross compile "hello world" 🤞. Anyway thanks for explaining the steps in the tutorial, it helps!

  • @longphi-no3vr
    @longphi-no3vr 9 місяців тому

    code please

  • @WizThis
    @WizThis 9 місяців тому

    Anyone with the opengl error when building for host - what i did was add the following to cmakelists.txt: set(OpenGL_DIR, "/usr/lib/x86_64-linux-gnu")