Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. How can I develop qt app for raspberry on desktop
QtWS25 Last Chance

How can I develop qt app for raspberry on desktop

Scheduled Pinned Locked Moved QtonPi
7 Posts 2 Posters 2.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    iskenderoguz
    wrote on last edited by
    #1

    I want to develop qt app on my desktop pc and run on raspberry. is it possible ? I found "this video on youtube":http://www.youtube.com/watch?v=pBhT_CINPjE but I did not find necessary tools. How can I do this ?
    I use Arch Linux on my PC.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Sure it's possible, "here":http://qt-project.org/wiki/RaspberryPi_Beginners_guide you have a starting point.

      Qt Creator, a cross-compiler, a working network connection (well two, one for you computer and one for the Raspberry) , if possible a screen for your Pi and basically you're setup

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • I Offline
        I Offline
        iskenderoguz
        wrote on last edited by
        #3

        I use bakeqtpi script and I get this error

        @.obj/release-shared/qlibrary_unix.o: In function QLibraryPrivate::load_sys()': qlibrary_unix.cpp:(.text+0x1230): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /home/ekcdr/opt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/libdl.a(dlopen.o): In function dlopen':
        (.text+0xc): undefined reference to __dlopen' /home/ekcdr/opt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/libdl.a(dlclose.o): In function dlclose':
        (.text+0x0): undefined reference to __dlclose' /home/ekcdr/opt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/libdl.a(dlsym.o): In function dlsym':
        (.text+0xc): undefined reference to __dlsym' /home/ekcdr/opt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/libdl.a(dlerror.o): In function dlerror':
        (.text+0x0): undefined reference to __dlerror' /home/ekcdr/opt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/libm.a(feholdexcpt.o): In function feholdexcept':
        (.text+0x48): undefined reference to _dl_hwcap' /home/ekcdr/opt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/libm.a(fesetenv.o): In function fesetenv':
        (.text+0x64): undefined reference to `_dl_hwcap'
        collect2: hata: ld çıkış durumu 1 ile döndü
        Makefile:681: recipe for target '../../lib/libQt5Core.so.5.0.0' failed
        make[2]: *** [../../lib/libQt5Core.so.5.0.0] Error 1
        make[2]: Leaving directory '/home/ekcdr/opt/qt-everywhere-opensource-src-5.0.0/qtbase/src/corelib'
        Makefile:75: recipe for target 'sub-corelib-make_first' failed
        make[1]: *** [sub-corelib-make_first] Error 2
        make[1]: Leaving directory '/home/ekcdr/opt/qt-everywhere-opensource-src-5.0.0/qtbase/src'
        Makefile:40: recipe for target 'sub-src-make_first' failed
        make: *** [sub-src-make_first] Error 2
        Make failed for QTBase
        @

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          What options did your build use ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • I Offline
            I Offline
            iskenderoguz
            wrote on last edited by
            #5

            I use bakeqtpi script : "link":https://gitorious.org/bakeqtpi/bakeqtpi/source/4111fc57f67fbbefc70d2e916120f2603445e251:bakeqtpi.bash

            1 Reply Last reply
            0
            • I Offline
              I Offline
              iskenderoguz
              wrote on last edited by
              #6

              I tried again withou script and same error again. My configure command is @./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/qt5pi
              @

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Can you try again but without the -reduce-exports option

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved