Qt for Raspberry Pi - Qt 5.14.2 cross compilation for Raspberry Pi 4 model B - Run Qt on Raspberry

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ม.ค. 2025

ความคิดเห็น • 155

  • @tigrankato
    @tigrankato ปีที่แล้ว +2

    Big thanks for this guide! This is one of only available guides about this that I managed to find. I was able to compile Qt for Orange Pi 4 lts. I used linaro for aarch64-gnu-linux instead since my computer has 64 bit CPU unlike raspberry pi in this video. I also had to create my own device configuration in qtbase/mkspecs/devices/ since there are no configurations for orangepi, but it was pretty easy. I also used Qt 5.15.2 instead because the project I was porting used this version. For some reason, qtwebengine wasn't compiling due to some missing libraries, so I had to -skip it during configuration, but I don't think Ill need it.

  • @simonefiore7408
    @simonefiore7408 3 ปีที่แล้ว +4

    The guide works perfect with Ubuntu 20.04 LTS, Pi OS 10, QT 5.12.8! Thanks a lot!
    I added only "mkdir sysroot sysroot/usr sysroot/opt" before rsync

  • @jackyfang7817
    @jackyfang7817 3 ปีที่แล้ว +1

    Thank you so much for the detailed steps! Before your tutorials I have tried many times and all failed. Follow your tutorials, I got Qt working in my raspberrypi.

  • @kubiedubie
    @kubiedubie 4 ปีที่แล้ว +2

    This worked perfectly. Thanks for posting! This was quite a bit more involved than I had expected it would be.

    • @henrikkendrick604
      @henrikkendrick604 3 ปีที่แล้ว

      i realize it is quite off topic but do anyone know a good site to stream new movies online?

    • @garrettraiden1229
      @garrettraiden1229 3 ปีที่แล้ว

      @Henrik Kendrick i watch on flixzone. Just google for it =)

  • @verchik8848
    @verchik8848 ปีที่แล้ว +1

    You are the GOAT! Thank you very much!!!!

  • @windloid
    @windloid 4 ปีที่แล้ว +1

    Thank you so much for your feedback and this detailed video. I tried this sequence on VM again. then it finally worked. I still do not know the difference between a real machine I tried previously and VM. But, After installing the Ubuntu in the real-machine, I upgraded applications and more by directly downloading from the UI right after the OS installation, not from the terminal. So, I guess something seems to have been changed the system environment in the real-machine.
    Again, I really appreciate your great tutorial. will be a big fan of yours. :)

  • @eeeng9167
    @eeeng9167 4 ปีที่แล้ว

    Thank you so much for the detailed steps. It is appreciated. My install was flawless on Ubuntu and I was able to run the demo on the pi.

  • @robertdaly1037
    @robertdaly1037 4 ปีที่แล้ว +1

    Thank you for posting this tutorial, I installed Qt and got it working this will be used in my final year degree project. Amazing thank you.

    • @jarisipilainen3875
      @jarisipilainen3875 4 ปีที่แล้ว

      project will fail. you copy it from other xD

  • @milerswang6743
    @milerswang6743 3 ปีที่แล้ว +2

    2:57 RPI setting
    14:32 VM setting
    18:00 UBUBTU setting
    25:26 傳送檔案影片中很多,我的很少
    38:46 QT

  • @Elestun
    @Elestun 4 ปีที่แล้ว +2

    Thank you very much for this highly detailed tutorial. Thumbs up!

  • @tecbegamer8187
    @tecbegamer8187 3 ปีที่แล้ว

    thank you sir
    great video i cross compiled 5.14.2 on ubuntu 20.4 it work's
    i had to install clang echo the path export LLVM_INSTALL_DIR=/usr/lib/llvm-10
    i used wired connection for that : go to network connection and set IPv4 (Checked shared other computers)
    host #nmap 10.42.0..255/0 (my pi 10.42.0.28)
    install putty
    x11 enable X11 forwarding save to pi1
    pi
    #: install vncserver
    #install xtightvncviewer
    #vncserver (rasberrypi:1)
    #xtightvncviewer (in host enter rasberrypi:1 and password and enjoy)
    my advice to my youtube friends is 1) make copy of the folder before compileing
    2) if any think goes wrong delete build folder and sysroot folder
    3)please remember do not compile in qtpi folder
    thank you for all
    manjunath

  • @dalesmith8666
    @dalesmith8666 11 หลายเดือนก่อน

    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  11 หลายเดือนก่อน

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

  • @AyoubSAKHANA
    @AyoubSAKHANA ปีที่แล้ว

    Thank you for the detailed steps. I am following your tutorial and while trying to run build script, getting following error "ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken." any ideas what should i do ?

  • @mayssaknani
    @mayssaknani 5 หลายเดือนก่อน

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

  • @bhagyesh_knowledgecity
    @bhagyesh_knowledgecity ปีที่แล้ว +1

    Is same steps/process applicable for Raspberry Pi 3 B+ model? If not, what changes need to do?

    • @_VeljkoMiletic_
      @_VeljkoMiletic_ ปีที่แล้ว

      Yes they are. But I used device "linux-rasp-pi-g++"

  • @adzol
    @adzol 4 ปีที่แล้ว +1

    Thanks a lot!
    Is there a way to compile ARM RasberryPi binaries from Windows?

  • @DoGaNKaRaHaN
    @DoGaNKaRaHaN 3 ปีที่แล้ว

    Hocam merhaba, 19:14'te girdiğiniz "apt install libclang-dev" komutunu çalıştırdıktan sonra "Unable to correct problems, you have held broken packages." şeklinde bir hata ile karşılaşıyorum. Nasıl çözebilirim?

    • @ulasdikme7307
      @ulasdikme7307  3 ปีที่แล้ว +1

      Selam, sanırım os düzgün update edilmemiş olabilir. yada başka bir sürüm kullanıyorsundur.

    • @DoGaNKaRaHaN
      @DoGaNKaRaHaN 3 ปีที่แล้ว

      @@ulasdikme7307 Ubuntu 20.04.2.0 LTS sürümünü kullanıyordum da sorun ondan kaynaklanıyordu galiba
      Ubuntu 20.04.2.0 Desktop (64-bit) sürümünü kurdum şuan sorun yok hocam
      İlginiz için teşekkür ederim

    • @DoGaNKaRaHaN
      @DoGaNKaRaHaN 3 ปีที่แล้ว

      @@ulasdikme7307 Qt üzerinde programı yazdıktan sonra build yapınca "could not find drm device" hatası alıyorum. araştırıyorum fakat çözümünü bulamadım.
      Nasıl çözebilirim bilginiz var mıdır?

    • @furkanaltay5200
      @furkanaltay5200 ปีที่แล้ว

      DISPLAY=:0.0
      QT_QPA_PLATFORMTHEME=qt5ct
      XAUTHORITY=/home/pi/.Xauthority
      XDG_SESSION_TYPE=x11
      bu parametrelerin arasında herhagi bir boşluk olmamalı ve enviroment system variables olarak kaydedilmeli , aynı zamanda raspberry pi terminalde bu şekilde export edilmeli@@DoGaNKaRaHaN

  • @adamherczig543
    @adamherczig543 3 ปีที่แล้ว

    Hey Ulas ! Nice tuto! I have some question or poblem, I hope you have some advices. I have a project with guis and widgets. I can build it on windows and I can run it on windows fine. However the main goal is run on RPI3 or RPI4. I would like to compile the qmake on wsl 64 bit, then build my project without rsync back the qt5pi folder to rpi /usr/local. So many pages tell me this is an important step. How does it possible? I guess the configure needs some extra params. If I build directly on RPI the binary and move the binary to another "virgin" rpi it can run nicely. However after cross compiling there is always some QT_QPA problems with libqxcb or eglfs. I guess I have to statically add all gui libs (GLES, EGL, xcb, etc... ) But I have no idea how to do that... Thanks in advance

  • @洪客
    @洪客 2 ปีที่แล้ว +1

    how to build in bullseye ?

  • @Montabouargoub
    @Montabouargoub 4 ปีที่แล้ว

    Thank you for your great tutorial!
    I got this error when typing : rsync -avz sysroot/usr/local/qt5pi pi@10.42.0.63:/usr/local (37:47)
    sending incremental file list
    rsync: failed to set times on "/usr/local/qt5pi": Operation not permitted (1)
    qt5pi/
    rsync: recv_generator: mkdir "/usr/local/qt5pi/bin" failed: Permission denied (13)
    *** Skipping any contents from this failed directory ***
    rsync: recv_generator: mkdir "/usr/local/qt5pi/doc" failed: Permission denied (13)
    *** Skipping any contents from this failed directory ***
    rsync: recv_generator: mkdir "/usr/local/qt5pi/include" failed: Permission denied (13)
    *** Skipping any contents from this failed directory ***
    qt5pi/bin/
    qt5pi/doc/
    qt5pi/include/
    rsync: recv_generator: mkdir "/usr/local/qt5pi/lib" failed: Permission denied (13)
    *** Skipping any contents from this failed directory ***
    qt5pi/lib/
    rsync: recv_generator: mkdir "/usr/local/qt5pi/mkspecs" failed: Permission denied (13)
    *** Skipping any contents from this failed directory ***
    qt5pi/mkspecs/
    rsync: recv_generator: mkdir "/usr/local/qt5pi/plugins" failed: Permission denied (13)
    *** Skipping any contents from this failed directory ***
    rsync: recv_generator: mkdir "/usr/local/qt5pi/qml" failed: Permission denied (13)
    *** Skipping any contents from this failed directory ***
    qt5pi/plugins/
    qt5pi/qml/
    rsync: recv_generator: mkdir "/usr/local/qt5pi/translations" failed: Permission denied (13)
    *** Skipping any contents from this failed directory ***
    qt5pi/translations/
    sent 277,590 bytes received 2,159 bytes 43,038.31 bytes/sec
    total size is 201,359,478 speedup is 719.79
    rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]
    I would be grateful if you could help me with this...
    I think it's a problem in directory permission

    • @mariusbertelsen129
      @mariusbertelsen129 4 ปีที่แล้ว +1

      follow his other video where he makes a root ssh account that has all perms allowing you to do this

  • @luisherrera32
    @luisherrera32 4 ปีที่แล้ว +1

    Hi Ulas, Thank you for this great guide, I can confirm the new version it also works for RPI3B+[debug and deploy], the only thing that I've struggling is @ the time of writing an app even the hello world, the CLANG parser tool is not working properly, because if I activate the CLANG plugin, it shows me in the code editor the following function called from X or Y library is not being read it or detected, for example: unknown type name 'QCoreApplication' it throws this error when I use anything from the QCoreApplication library, and this repeats with all the QT std libraries. In your video I don't see you get that error, I mean I can compile run, debug everything without problems, but every time I call any instance from QT libraries, it shows me those errors, so in order to rip of those strings errors from the CLANG parser(plugin), what I have done is I have deactivate the CLANG Plugin and that temporary fix the error, but in exchange If I misspell something then It will not be highlighted while I'm typing code, and it will only catch there is an misspelling error only at the compile time, can you help me with this please. Thanks.

  • @selcuk57
    @selcuk57 4 หลายเดือนก่อน

    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.

  • @picmicrocontroller
    @picmicrocontroller 4 ปีที่แล้ว

    Thank you Ulas Dikme for wonderful work Its working well for me.Can you please guide what we have to do if we want to include any library to work with with this Qt like if we want to include for example libusb or qtZint(bar code generator) or any other libraries in our Qtcreator.
    Where we have to place their source code and how to cross compile them to be made available for raspberry pi4.

  • @mohamedibrahem3470
    @mohamedibrahem3470 3 ปีที่แล้ว

    at all this is great work!
    but when I reach 9.36 when I write "sudo apt-get build-dep qt5-qmake " the OS asked to put some source URIs in the sources list
    how can I fix this .

  • @ibrahimtanagardgil3991
    @ibrahimtanagardgil3991 4 ปีที่แล้ว

    Elinize sağlık, anlaşılır olmuş.

  • @marunfaiv22
    @marunfaiv22 3 ปีที่แล้ว

    thanks for the great video sir, but i want to ask why is there no "arm-linux-gnueabihf" folder in my usr/bin/ raspberry pi?

  • @thousandTabs
    @thousandTabs 4 ปีที่แล้ว

    Where is the link to all the installed packages and build dependencies? There isn't a link in the description for this.
    Thanks for the video though! Very helpful.

  • @kutluyigitturk5952
    @kutluyigitturk5952 3 ปีที่แล้ว

    Hello, when I want to run a project with SSH connection, I get the following error line.
    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.
    Available platform plugins are: linuxfb, minimal, offscreen, vnc, webgl, xcb.
    Aborted
    Do you have anything to say about this error?

  • @jairwen82
    @jairwen82 4 ปีที่แล้ว

    Greate video, since ubuntu release version for raspberry pi, how to cross compile for ubuntu server on rpi4 without X?

    • @ulasdikme7307
      @ulasdikme7307  4 ปีที่แล้ว +2

      Great question. I will prepare another content for it. Basically steps will be quite same. I think you do not have to worry about the egl libs. if you call conf file of the rasp then it will be ok. You can try.

  • @wkl3968
    @wkl3968 3 ปีที่แล้ว

    Thanks for the video!!! However, I ran into two problems: 1) the make install spit out some error on geoservice and location related. 2) I ran out from virtual machine disc space. any clue?

  • @falgyo
    @falgyo ปีที่แล้ว

    If u get error on rsync, go check ur folder (/opt/qt5pl/) i see warning icon folder “sysroot” and delete that folder, then run rsync….. commands again, it worked

  • @vishnuvardhanreddy220
    @vishnuvardhanreddy220 3 ปีที่แล้ว

    thank you! It works perfectly for qmake projects. CMake projects are not working. Any tips?

  • @michaelandersen1161
    @michaelandersen1161 3 ปีที่แล้ว

    I followed your instructions step by step and it went well until i came to to rsync commands.
    When I run
    rsync -avz --rsync-path="sudo rsync" pi@192.168.1.136:/lib sysroot
    I get this output
    receiving incremental file list
    lib -> usr/lib
    sent 27 bytes received 53 bytes 17.78 bytes/sec
    total size is 7 speedup is 0.09
    The command creates the sysroot directory but ubuntu reports it has a broken link usr/lib
    what am I missing here ?

    • @ulasdikme7307
      @ulasdikme7307  3 ปีที่แล้ว

      Did you try python script ? Could you please share the whole error ?

    • @michaelandersen1161
      @michaelandersen1161 3 ปีที่แล้ว

      @@ulasdikme7307 My problem was that the rsync command should create the sysroot directory, but somehow this went wrong.
      Now I have created the sysroot directory first and after that the rsync commands worked......
      But thanks for your answer...

  • @ngvn4898
    @ngvn4898 4 ปีที่แล้ว +2

    This error occured by me:
    root@debian-vaio:/opt/qt5pi# rsync -avz pi@192.168.1.2:/lib sysroot
    bash: rsync: command not found
    Do you guy have any suggestion?

    • @LongHoang-rv3zw
      @LongHoang-rv3zw 3 ปีที่แล้ว +1

      It seem that i have met the trouble the same. Have you solution for this problem. If you have, share with me
      Thanks

    • @selcuk57
      @selcuk57 4 หลายเดือนก่อน

      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.

  • @AhmedAbdelghany2
    @AhmedAbdelghany2 3 ปีที่แล้ว +1

    Hello, I am trying this solution on raspberry pi Ver 3.0 B model. when I try "rsync -avz pi@raspberry ip:/lib sysroot" it gives me : sent 27 bytes received 53 bytes 53.33 bytes/sec
    total size is 7 speedup is 0.09
    with no syncing
    ___
    I Tried "rsync -avz pi@raspberry ip:/lib/ sysroot" notice I added the forward slash after "lib"instead it works but it copies what's inside the lib directory directly
    ___
    I don't know what should I do to sync the lib as main directory

    • @LongHoang-rv3zw
      @LongHoang-rv3zw 3 ปีที่แล้ว

      oh i met trouble the same , have you solutioned for this problem? If you have , share with me
      Thank you very much

    • @AhmedAbdelghany2
      @AhmedAbdelghany2 3 ปีที่แล้ว

      @@LongHoang-rv3zw no not really

    • @LongHoang-rv3zw
      @LongHoang-rv3zw 3 ปีที่แล้ว +1

      @@AhmedAbdelghany2 yes I agree with you because I have checked all files in folder /lib and /usr/lib is the same ( I am using raspian OS 10) after that I have still followed as guide of video and i have done and build source code successfully
      Thank you for your reply

  • @GuillaumeB0931
    @GuillaumeB0931 4 ปีที่แล้ว +1

    hello i'm having this error message:
    qt.qpa.xcb: could not connect to display :0.0
    qt.qpa.plugin: could not load the Qt platform plugin "xcb" in " " even though it was found.
    cannot create window: no screens available
    what have i misssed??

    • @1234thrashmetal
      @1234thrashmetal 3 ปีที่แล้ว +1

      Did you manage to fix this problem?

  • @rodriescobar
    @rodriescobar 3 ปีที่แล้ว

    Hi Ulas. Your video guide is very complete and clear. I'm stuck in a problem. I've managed to successfully compile qt, deploy a test program and your example but when I try to start editing the forms in the designer, the tab with QML Types is all white (empty) and there is a warning sign in the navigator tab besides "page" and "label" elements already inserted by the wizard that says "Item could not be created". It actually seems that you had errors as well when you create the empty project or open your example. I already tried to add qml path to .pro file in "QML_IMPORT_PATH" and "QML_DESIGNER_IMPORT_PATH" but then the designer crash with a message "Line 1: Qt Quick emulation layer crashed". Please help!!

    • @rodriescobar
      @rodriescobar 3 ปีที่แล้ว

      I finally solve my problem by not installing the QtCreator from the Terminal (sudo apt install qtcreator) but from the .run file downloaded from the Qt website. Then everything worked fine. Thanks!

  • @vedatermis
    @vedatermis 4 ปีที่แล้ว

    Mükemmel bir kaynak. Hocam birde raspbian işletim sistemi masaüstü olmadan sadace yazdığımız uygulamayı nasıl boot esnasında direk açabiliriz ?

  • @SaurabhNishad1393
    @SaurabhNishad1393 2 ปีที่แล้ว

    Hi Ulas, I am trying to build QT 5.14 for Raspberry pi 4. I followed your video as its. But still getting error related opengles2 and EGL. Kindly help me. "ERROR: Feature 'opengles2' was enabled, but the pre-condition " "ERROR: Feature 'eglfs' was enabled, but the pre-condition " "ERROR: The OpenGL functionality tests failed!
    You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
    QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform."

  • @vijikandasamy3001
    @vijikandasamy3001 4 ปีที่แล้ว

    Thank You for the tutorial, I Compiled Qt and Working fine, but cups not compiled

  • @aryanjha3530
    @aryanjha3530 3 ปีที่แล้ว

    while cross compiling it says line 299: cmake: command not found.... any help?

  • @chimezieeguzo376
    @chimezieeguzo376 3 ปีที่แล้ว

    rsync command returned this error. receiving incremental file list
    sent 20 bytes received 60 bytes 10.67 bytes/sec
    total size is 7 speedup is 0.09
    Any idea how to solve this problem? it is clear that the remote and local are not synchronized

  • @robertdaly1037
    @robertdaly1037 4 ปีที่แล้ว

    Hi Ulas, I am looking to use OpenCV with Qt, I was wonder how best to combine them. I have OpenCV 4.3.0 built from source on the Pi4. Thanks again.

    • @ulasdikme7307
      @ulasdikme7307  4 ปีที่แล้ว +1

      Hi, If you copy the related so files of the opencv to your vm then you can link to the project. th-cam.com/video/2yzvaHcUgEo/w-d-xo.html here I use wiring pi library for cross compilation. This maybe can help you. ( But this is not best practice :) ) just check it. If you have any questions please let me know.
      here www.raspberrypi.org/forums/viewtopic.php?t=180925
      g++ -o test test.cpp -lopencv_highgui -lopencv_core
      these two -lopencv_highgui -lopencv_core -> you should copy to your vm to compile your code crossly.

    • @robertdaly1037
      @robertdaly1037 4 ปีที่แล้ว

      Thanks for that I get the idea, I will try that and let you know thanks.

    • @robertdaly1037
      @robertdaly1037 4 ปีที่แล้ว

      Ulas Dikme Hi, I scp the two files to my VM and linked in Qt as you did in the video, but when I give the include prompt in main.cpp there are no flags for OpenCV. Not sure what I am missing, thanks again for your video it was very helpful.

  • @celalceylan4662
    @celalceylan4662 3 ปีที่แล้ว

    benim aldığım bir problem var rasp4 için: eglfs x11, linux fb, vnc =yes fakat EGLFS Raspberry pi No olması gerekirken yes olarak görünüyor. ubuntu 18.04 raspery OS kullanıyorum bu seçeneklerle make ettiğim zaman libbrcm hataları alıyorum.
    bu konuda yardımcı olabilecek varmı ??

  • @mumingozutok7615
    @mumingozutok7615 3 ปีที่แล้ว

    Hocam Merhaba, Çok faydalı bir kaynak olmuş elinize sağlık.
    Bir bölümde takıldık. (27.30 civarı)
    ln -s sysroot/opt/vc/lib/libEGL.so sysroot/usr/lib/arm-linux-gnueabihf/libEGL.so.1.1.0
    bu satırdaki ve devamındaki symbolic link oluşturmalarında source ve link ters mi acaba?
    Komutun normal hali;
    ln -s
    şeklinde diye biliyoruz. Ama sizin uygulamalarınızda ters sanki?

  • @ashwin372
    @ashwin372 4 ปีที่แล้ว

    Hi is it possible to use qml without issues?

  • @fabianerquinigo9686
    @fabianerquinigo9686 3 ปีที่แล้ว

    What about rpi3

  • @ahmeta.112
    @ahmeta.112 4 ปีที่แล้ว +2

    Hocam heykelinizi yapmaya kalkışsalar hayalarınıza beton yetmez. Elinize sağlık.

  • @adzol
    @adzol 4 ปีที่แล้ว +1

    How I can install Qt with webengine? Is it even possible?

  • @furkanaltay5200
    @furkanaltay5200 ปีที่แล้ว

    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 ?

  • @vpappano
    @vpappano 3 ปีที่แล้ว

    I have a Raspberry Pi 4 Model B Rev 1.4 and I am using Ubuntu 20.04 running in VirtualBox on a Windows 10 machine.
    I have been following the steps presented in the video.
    @24.20, when Ulas issues the command: rsync -avz --rsync-path="sudo rsync" pi@192.168.1.237:/lib sysroot
    His host machine receives a number of files -- in the video I can see the contents of lib/firmware, lib/modules.bak, lib/modules, lib/udev
    However, when I issue the same command, I only receive a symbolic link
    receiving incremental file list
    lib -> usr/lib
    BTW, a symbolic link is also what I see on the RPi
    lrwxrwxrwx 1 root root 7 May 7 2021 bin -> usr/bin
    On a side note, directory usr/bin is almost 3GB
    Why am I not copying any files? Any advice?

  • @edwardchapman1914
    @edwardchapman1914 2 ปีที่แล้ว

    Anyone had luck with 64 bit bullseye release, looking to build everything including QWebengine, almost there.. Hung on crt.o stuff .. needing a good mkspec/device ..

  • @NationZeroMS
    @NationZeroMS 4 ปีที่แล้ว

    Thank you. Generally a good tutorial with lots of info!
    But for whatever reason my compiled "qmake" file is 64-bit and not 32-bit so I cannot run it on the Raspi. There might went something wrong with the symbol links.

    • @ulasdikme7307
      @ulasdikme7307  4 ปีที่แล้ว

      What do you mean 32 bit qmake file ? Could you please share command line output ?

    • @NationZeroMS
      @NationZeroMS 4 ปีที่แล้ว +1

      Okay, I made a mistake and was able to fix it. I started qtcreator on the RasPi and not on the Ubuntu VM. That was the problem. Running fine now on Ubuntu. Build and make is working fine and I get my 32-bit binary for the Pi. Thanks Ulas!

  • @satishchauhan9742
    @satishchauhan9742 4 ปีที่แล้ว

    Hi,
    I followed above video as it is...but i am getting following error my setup machine
    ERROR: Feature 'opengles2' was enabled, but the pre-condition '(config.win32 && !features.opengl-dynamic) || (!config.watchos && !features.opengl-desktop && libs.opengl_es2)' failed.
    ERROR: The OpenGL functionality tests failed!
    You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
    QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.

    • @satishchauhan9742
      @satishchauhan9742 4 ปีที่แล้ว

      After delete sysroot folder and re-do all stuff again it works..thanks for video

    • @SaurabhNishad1393
      @SaurabhNishad1393 2 ปีที่แล้ว

      @@satishchauhan9742 I have tried your suggestions but not work for me. Can you guide where I am doing wrong.

  • @dineshlamarumba4557
    @dineshlamarumba4557 4 ปีที่แล้ว

    do i need liscence version for deplying qt app on raspberry pi?

    • @shellgecko
      @shellgecko 4 ปีที่แล้ว

      at 31:40 he specifies to use the opensource version
      unless you want to deploy on a Real Time OS (qnx, vxworks) or you want the automation tools for deploying (Boot2Qt) you need the commercial version

  • @等刚刚
    @等刚刚 4 ปีที่แล้ว +1

    you are very good

  • @bra1nsen
    @bra1nsen 2 ปีที่แล้ว

    Will this fix: No Module Named PySide Error?

  • @KevindeOliveira1
    @KevindeOliveira1 4 ปีที่แล้ว

    Great video! I was wondering if this is possible when implementing Qt with python instead.

  • @yinanxiao8301
    @yinanxiao8301 4 ปีที่แล้ว

    Hi Just wondering would this work for pi3 model ? thanks

    • @ulasdikme7307
      @ulasdikme7307  4 ปีที่แล้ว

      Hello, I did not try for rpi3. There is no hardware dependency for this as I know. At least it can work over x11. You can try it. Also it is a good idea to watch my old video about compiling Qt. It was for old raspberry pi boards. You can find the link below the video.

  • @andrewtschesnok5582
    @andrewtschesnok5582 3 ปีที่แล้ว +3

    First: Thank you so much. Next: There are 27 hits for "rsync" in the comments because of errors in your test file. I was able to solve by first creating the directories in sysroot AND adding a "/" after the path of the source (without the quotes). There seems to be no need for the --rsync-path. Hope this helps people.. Otherwise it only seems to setup a link..

    • @andrewtschesnok5582
      @andrewtschesnok5582 3 ปีที่แล้ว +1

      Also: rsync -avz --rsync-path="sudo rsync" pi@192.168.16.25:/usr/lib sysroot/usr is putting /lib into /usr messing things up.. needs to end in /lib/usr for destination, no?

    • @andrewtschesnok5582
      @andrewtschesnok5582 3 ปีที่แล้ว +1

      Sorry.. it does require --rsync-path="sudo rsync"

    • @andrewtschesnok5582
      @andrewtschesnok5582 3 ปีที่แล้ว +4

      My changes (in both use cases). Make directories first. This is all related to a change in behavior in rsync it seems. Note slashes and directories in destination.
      rsync -avz --rsync-path="sudo rsync" pi@192.168.x.xxx:/lib/ sysroot/lib
      rsync -avz --rsync-path="sudo rsync" pi@192.168.x.xxx:/usr/include/ sysroot/usr/include
      rsync -avz --rsync-path="sudo rsync" pi@192.168.x.xxx:/lib/ sysroot/lib
      rsync -avz --rsync-path="sudo rsync" pi@192.168.x.xxx:/usr/lib/ sysroot/usr/lib
      rsync -avz --rsync-path="sudo rsync" pi@192.168.x.xxx:/opt/vc/ sysroot/opt/vc

    • @andrewtschesnok5582
      @andrewtschesnok5582 3 ปีที่แล้ว +2

      make -j8 is missing dependencies: had to install libnss3-dev, libpng-dev and libfreetype6-dev. Then it errors out as follows:
      make -j8 | grep error
      Makefile:5505: warning: overriding recipe for target '../../qml/QtQuick/Controls/qmldir'
      Makefile:5502: warning: ignoring old recipe for target '../../qml/QtQuick/Controls/qmldir'
      [7/529] /opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -MMD -MF obj/third_party/libjpeg_turbo/libjpeg/jerror.o.d -DWITH_SIMD -DNO_GETENV -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DCR_SYSROOT_HASH=3fcc1d4e44127006318371002a0f421a4fde2ab4 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen -I../../../../../qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium -I../../../../../qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/third_party/libjpeg_turbo -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -march=armv8-a -mfloat-abi=hard -mtune=cortex-a72 -mfpu=neon -mthumb -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wno-psabi -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-comments -Wno-packed-not-aligned -Wno-dangling-else -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=hidden -std=gnu11 --sysroot=../../../../../sysroot -c ../../../../../qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/third_party/libjpeg_turbo/jerror.c -o obj/third_party/libjpeg_turbo/libjpeg/jerror.o
      ../../../../../qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/third_party/libjpeg_turbo/simd/arm/common/jidctfst-neon.c:408:50: error: incompatible type for argument 2 of ‘vaddq_s8’
      ../../../../../qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/third_party/libjpeg_turbo/simd/arm/common/jidctfst-neon.c:410:50: error: incompatible type for argument 2 of ‘vaddq_s8’
      ../../../../../qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/third_party/libjpeg_turbo/simd/arm/common/jidctfst-neon.c:412:50: error: incompatible type for argument 2 of ‘vaddq_s8’
      ../../../../../qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/third_party/libjpeg_turbo/simd/arm/common/jidctfst-neon.c:414:50: error: incompatible type for argument 2 of ‘vaddq_s8’
      Not sure what to do next...

    • @andrewtschesnok5582
      @andrewtschesnok5582 3 ปีที่แล้ว +1

      But it seems to work.. got some openGL demos running.. nice.. but can it do video?

  • @身世成谜
    @身世成谜 4 ปีที่แล้ว +1

    You are hero

  • @abdurrazzak1612
    @abdurrazzak1612 2 ปีที่แล้ว

    A great tutorial

  • @davutkaraca315
    @davutkaraca315 2 ปีที่แล้ว

    Ulas Bey merhaba. Qt6 için de kurulumu anlatabilir misiniz? Bir türlü kuramadım.

    • @ulasdikme7307
      @ulasdikme7307  2 ปีที่แล้ว +1

      Merhabalar, uzun zamandır istediğiniz konuda içerik üretmek gibi bir isteğim var fakat zaman bulamadım. Ama ilerleyen haftalarda en azından parça parça olsa bile yayınlayacağım.

    • @davutkaraca315
      @davutkaraca315 2 ปีที่แล้ว

      @@ulasdikme7307 çok teşekkür ederim. Video ve kendi sitenizde ayrı ayrı olması çok anlaşılır. Ben qt6 yi kuramadım. Qt5 in ek paketler kısmına kadar gelebildim. Orda da ek paket yüklemeleri yapamadım. Linux a yabancıyım sanırım bunun da etkisi var.😒

    • @davutkaraca315
      @davutkaraca315 2 ปีที่แล้ว

      sudo vi /etc/apt/sources.list komutundan sonra aşağıdaki yuarıyı veriyor:
      E325: ATTENTION
      Found a swap file by the name "/etc/apt/.sources.list.swp"
      owned by: root dated: Sun Apr 10 00:22:47 2022
      file name: /etc/apt/sources.list
      modified: YES
      user name: root host name: raspberrypi
      process ID: 17673
      While opening file "/etc/apt/sources.list"
      dated: Mon Apr 4 16:45:44 2022
      (1) Another program may be editing the same file. If this is the case,
      be careful not to end up with two different instances of the same
      file when making changes. Quit, or continue with caution.
      (2) An edit session for this file crashed.
      If this is the case, use ":recover" or "vim -r /etc/apt/sources.list"
      to recover the changes (see ":help recovery").
      If you did this already, delete the swap file "/etc/apt/.sources.list.swp"
      to avoid this message.
      "/etc/apt/sources.list" 3 lines, 899036 characters
      Press ENTER or type command to continue

    • @davutkaraca315
      @davutkaraca315 2 ปีที่แล้ว

      rpi güncellemesini yaptıktan sonra da aşağıdaki uyarıyı veriyor :
      pi@raspberrypi:~ $ sudo apt-get build-dep qt5-qmake
      Paket listeleri okunuyor... Bitti
      E: 'sources.list' dosyası içine bazı 'source' adresleri koymalısınız
      pi@raspberrypi:~ $

    • @ulasdikme7307
      @ulasdikme7307  2 ปีที่แล้ว +1

      @@davutkaraca315 Bu kullandıgınız edıtor ıle alakalı bır durum. swap dosyasini silin yada tum directory i silip yeniden yapin. Cikarkan dosyadan kaydetmeyi unutmayin. Sorunlar linux komutlari ile alakali dediginiz gibi. Biraz komutlar ile zaman gecirin ayrica sonra alisirsiniz.

  • @MuhammadAwais-cf5vr
    @MuhammadAwais-cf5vr 2 ปีที่แล้ว

    i am facing errors such like "error: ‘numeric_limits’ is not a class template qt"

    • @yagmurazakl1853
      @yagmurazakl1853 2 ปีที่แล้ว

      ben de ayni sorunu Ubuntu 22.04 ile yasadim. apt-get install python komutu da calismiyordu. Ubuntu 20.04 ile denedim. hem python`i indirebildim hem de bu hata ortadan kalkti. Hatanin sebebi python mu bilmiyorum ama.

    • @deshannawarathna6283
      @deshannawarathna6283 ปีที่แล้ว

      for that downgrade your gcc version to gcc 9. i also face in same problem and after downgrade to gcc 9 that error will not occur.

  • @robo_omsk
    @robo_omsk 4 ปีที่แล้ว

    Very Very THANKS !!!!!!

  • @aratipatil7708
    @aratipatil7708 2 ปีที่แล้ว

    My qmake file was not found plz help

  • @manuelanatoliyarciasalmero9095
    @manuelanatoliyarciasalmero9095 4 ปีที่แล้ว

    I tried the guide like two times already and after
    rsync -avz pi@192.168.2.36/lib sysroot,
    I get:
    sending incremental file list
    rsync: change_dir "/opt/qt5pi//pi@192.168.2.36" failed: No such file or directory (2)
    sent 20 bytes received 12 bytes 64.00 bytes/sec
    total size is 0 speedup is 0.00
    rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]
    If somebody knows, thank you very much.

    • @manuelanatoliyarciasalmero9095
      @manuelanatoliyarciasalmero9095 4 ปีที่แล้ว

      If someone has this error, I found out the problem. I was copying the commands previously typed by hand from notepad++. I then tried typing the command and it worked. It seems the text editor changed some symbol, probably the "-".

  • @djemelamina3193
    @djemelamina3193 4 ปีที่แล้ว

    Thank you for your tutorial ! I Followed all the steps in the video but when I tried to test the project on my raspberry it didn't work ./RaspberryDemoQml I got this error and the system crashed, how to fix this please
    Could not queue DRM page flip on screen HDMI (invalid argument) then I tried ./RaspberryDemoQml -platform linuxfb it worked but I want to run it on eglfs

    • @jackyfang7817
      @jackyfang7817 3 ปีที่แล้ว

      You can find the answer at the end of tutorials.

  • @TheMusterionOfRock
    @TheMusterionOfRock 4 ปีที่แล้ว

    Could you post the information on the configuration steps? It's rather tedious to have to stop the video to write everything :)

    • @ulasdikme7307
      @ulasdikme7307  4 ปีที่แล้ว +1

      I shared the history as a github link. You can find it below the video.

    • @TheMusterionOfRock
      @TheMusterionOfRock 4 ปีที่แล้ว

      @@ulasdikme7307 thank you so much :)

  • @iaggocapitanio7909
    @iaggocapitanio7909 3 ปีที่แล้ว

    thanks a lot

  • @amirahmadi8000
    @amirahmadi8000 4 ปีที่แล้ว

    wow tank you !!!!!!!! save me after a week trying.....
    work for me on Raspberry pi 3
    i just getting one error :

    • @jamesdulangon1265
      @jamesdulangon1265 3 ปีที่แล้ว

      Do you already have a solution for that?

  • @jarisipilainen3875
    @jarisipilainen3875 4 ปีที่แล้ว

    its linux all this is might not work.if it do QT app you make will work only latest upgraded rpi.and yet again it might not work latest after latest. its linux.any time any upgrade other program with depencies can ruin your QT app not work. its linux in nutshell

  • @steveevers6538
    @steveevers6538 3 ปีที่แล้ว

    Anyone experience the following OpenGL error at the end of the configure command?
    WARNING: Tool flex is required to build QtWebEngine.
    WARNING: Tool flex is required to build QtPdf.
    WARNING: QtWebEngine will not be built.
    WARNING: QtPdf will not be built.
    ERROR: Feature 'opengles2' was enabled, but the pre-condition '(config.win32 && !features.opengl-dynamic) || (!config.watchos && !features.opengl-desktop && libs.opengl_es2)' failed.
    ERROR: The OpenGL functionality tests failed!
    You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
    QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.

    • @SaurabhNishad1393
      @SaurabhNishad1393 2 ปีที่แล้ว

      Hi I am facing same issue while configuring

  • @sc0or
    @sc0or ปีที่แล้ว

    40 minutes of watching a terminal with installation logs??? Are you kidding? Kompalishin...

  • @ozanozdemir5515
    @ozanozdemir5515 4 ปีที่แล้ว

    Adamsin...

  • @B1063N
    @B1063N 3 ปีที่แล้ว

    Greetings from 2021, it doesnt work, shitload of errors. Dont waste your time.

    • @SaurabhNishad1393
      @SaurabhNishad1393 2 ปีที่แล้ว

      Hi same with me, have you resolved this

    • @B1063N
      @B1063N 2 ปีที่แล้ว

      @@SaurabhNishad1393 no, I gave up actually, coding directly from the Raspi4 8gb. It works ok.

  • @parasbhanot
    @parasbhanot 2 ปีที่แล้ว

    The rsync only creates the sysroot symbolic link after its execution
    i am using the following command
    rsync -avz --rsync-path="sudo rsync" root@192.168.1.8:/lib sysroot

  • @teachermips982
    @teachermips982 2 ปีที่แล้ว

    on giving command rsync -avz pi@192.168.39.180:/lib sysroot getting
    pi@192.168.39.180's password:
    receiving incremental file list
    lib -> usr/lib
    sent 27 bytes received 67 bytes 14.46 bytes/sec
    total size is 7 speedup is 0.07
    and no files actually coppying please help

  • @chakrounimen7432
    @chakrounimen7432 2 ปีที่แล้ว

    Why did cat qt-everywhere-src-5.15.2 returns cat: qt-everywhere-src-5.15.2: est un dossier ?