Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Get Qt example running on SAM9N12
QtWS25 Last Chance

Get Qt example running on SAM9N12

Scheduled Pinned Locked Moved Mobile and Embedded
armcompiling qtcompile
29 Posts 2 Posters 11.0k 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.
  • B Offline
    B Offline
    Bizer
    wrote on 29 Apr 2015, 19:45 last edited by
    #5

    HI, sorry to bother you again. I crosscompiled everything like explained:https://forum.qt.io/topic/52546/tuto-build-qt-to-cross-compile-for-arm/2

    With the qtcreator 5.4.1 i choose at build&run the libaries for qt4.8.5 und arm-linux-gnueabihf-g++ . If i run it everything gets compiled, no errors occure.

    Then i copied the files to a usb stick and try to run it from the usb-stick with: ./example -qws linuxfb but something with bash sh occures... I also tried chmod but nothing changed.

    Two questions:

    • list itemThe rest of the board software is compiled with CROSS_COMPILE=arm-none-eabi- : Do i have to compile qt also with arm-none-eabi- or should gcc-linaro-arm-linux-gnulist itemeabihf- also work?

    • Does the qtcreator also needed to be crosscompiled?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 29 Apr 2015, 21:16 last edited by
      #6

      What exact error are you getting ?

      Unless you plan to run Qt Creator on your board, no

      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
      • B Offline
        B Offline
        Bizer
        wrote on 30 Apr 2015, 14:30 last edited by
        #7

        On board the board: -sh: ./example: not found
        http://www.bilder-upload.eu/show.php?file=c3cb1b-1430404583.jpg

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 30 Apr 2015, 23:14 last edited by
          #8

          What does file example return ?

          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
          • B Offline
            B Offline
            Bizer
            wrote on 1 May 2015, 09:36 last edited by
            #9

            On the SAM9N12-Linux "file" is not installed but on ubuntu(compiling PC) it says:
            benephil: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 3.1.1, BuildID[sha1]=00493b39dc19cde81d1b1ac906499c24698e97f4, not stripped

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 1 May 2015, 23:28 last edited by
              #10

              Good, but the thing is, it doesn't seems that the file is copied over to the target

              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
              • B Offline
                B Offline
                Bizer
                wrote on 2 May 2015, 09:05 last edited by
                #11

                Sorry, I don't get it. What do you meen?
                I copied the folder with the crosscompiled files from my PC to a usb-stick, mounted the usb-stick on the Evaluationboard and tried to run the example.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 2 May 2015, 19:51 last edited by
                  #12

                  Then that's normal, the libraries can't be found, you should write a little bash script that setups the environment for your application to run. Have a look at the Linux Deployment Guide for more details about this

                  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
                  • B Offline
                    B Offline
                    Bizer
                    wrote on 3 May 2015, 10:55 last edited by Bizer 5 Mar 2015, 10:58
                    #13

                    Ok so i probably have some libary issues... With crosscompilation everything should be fine? Do i have to write a bash script for those libaries?:

                    "ldd example"
                    checking sub-depends for '/usr/lib/libQtGui.so.4'
                    checking sub-depends for '/usr/lib/libQtNetwork.so.4'
                    checking sub-depends for '/usr/lib/libQtCore.so.4'
                    checking sub-depends for '/lib/libpthread.so.0'
                    ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb6f60000)
                    libdl.so.0 => /lib/libdl.so.0 (0xb6f54000)
                    libc.so.0 => /lib/libc.so.0 (0xb6efb000)
                    checking sub-depends for '/usr/lib/libstdc++.so.6'
                    checking sub-depends for 'not found'
                    checking sub-depends for '/lib/libgcc_s.so.1'
                    checking sub-depends for 'not found'
                    checking sub-depends for '/usr/lib/libts-1.0.so.0'
                    checking sub-depends for '/usr/lib/libgthread-2.0.so.0'
                    checking sub-depends for '/usr/lib/libglib-2.0.so.0'
                    checking sub-depends for '/usr/lib/libintl.so.8'
                    checking sub-depends for '/lib/libm.so.0'
                    libc.so.0 => /lib/libc.so.0 (0xb6ed4000)
                    ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb6f2d000)
                    checking sub-depends for '/lib/libc.so.0'
                    ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb6f4e000)
                    checking sub-depends for '/lib/libdl.so.0'
                    libc.so.0 => /lib/libc.so.0 (0xb6ee9000)
                    ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb6f42000)
                    checking sub-depends for '/lib/librt.so.0'
                    libc.so.0 => /lib/libc.so.0 (0xb6eda000)
                    libdl.so.0 => /lib/libdl.so.0 (0xb6ece000)
                    libpthread.so.0 => /lib/libpthread.so.0 (0xb6eb2000)
                    ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb6f33000)
                    checking sub-depends for '/usr/lib/libiconv.so.2'
                    libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0x00000000)
                    libQtNetwork.so.4 => /usr/lib/libQtNetwork.so.4 (0x00000000)
                    libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0x00000000)
                    libpthread.so.0 => /lib/libpthread.so.0 (0x00000000)
                    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00000000)
                    libm.so.6 => not found (0x00000000)
                    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00000000)
                    libc.so.6 => not found (0x00000000)
                    libts-1.0.so.0 => /usr/lib/libts-1.0.so.0 (0x00000000)
                    libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00000000)
                    libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00000000)
                    libintl.so.8 => /usr/lib/libintl.so.8 (0x00000000)
                    libm.so.0 => /lib/libm.so.0 (0x00000000)
                    libc.so.0 => /lib/libc.so.0 (0x00000000)
                    libdl.so.0 => /lib/libdl.so.0 (0x00000000)
                    librt.so.0 => /lib/librt.so.0 (0x00000000)
                    /lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x00000000)
                    libiconv.so.2 => /usr/lib/libiconv.so.2 (0x00000000)
                    not a dynamic executable

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      Bizer
                      wrote on 3 May 2015, 17:46 last edited by
                      #14

                      Hey, i observed one thing: If i run the project in qtcreator and check the "run in terminal" i get a: "Syntax error: word unexpected (expecting ")") "
                      Is there something i can/should do about this issue? Because if i run "sh example" i get the same error.

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 3 May 2015, 21:12 last edited by
                        #15

                        What distribution is running on your board ?

                        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
                        • B Offline
                          B Offline
                          Bizer
                          wrote on 4 May 2015, 16:16 last edited by
                          #16

                          At91linux with buildroot-rfs

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 4 May 2015, 23:42 last edited by
                            #17

                            Did you install Qt 4 directly through Buildroot ?

                            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
                            • B Offline
                              B Offline
                              Bizer
                              wrote on 5 May 2015, 13:05 last edited by
                              #18

                              Yes, i did

                              1 Reply Last reply
                              0
                              • B Offline
                                B Offline
                                Bizer
                                wrote on 6 May 2015, 18:24 last edited by
                                #19

                                no further ideas?

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on 6 May 2015, 20:23 last edited by
                                  #20

                                  Did you also cross-compile Qt using the libraries from Buildroot ?

                                  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
                                  • B Offline
                                    B Offline
                                    Bizer
                                    wrote on 7 May 2015, 12:21 last edited by
                                    #21

                                    On the dev machine no, on the evaluationboard yes

                                    1 Reply Last reply
                                    0
                                    • S Offline
                                      S Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on 8 May 2015, 19:55 last edited by
                                      #22

                                      Just to be sure I understand you correctly: you cross-compiled Qt on your desktop using a different set of libraries rather that than the one from your evaluation board and you compiled natively on your device ?

                                      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
                                      • B Offline
                                        B Offline
                                        Bizer
                                        wrote on 11 May 2015, 19:06 last edited by
                                        #23

                                        Yes, but it should be the same version. Buildroot uses 4.8.6 and on the dev machine i also had 4.8.6

                                        1 Reply Last reply
                                        0
                                        • S Offline
                                          S Offline
                                          SGaist
                                          Lifetime Qt Champion
                                          wrote on 11 May 2015, 19:54 last edited by
                                          #24

                                          Same Qt version is one thing, but it looks like you don't have the same set of dependencies between both versions and maybe not the same set of options given to configure

                                          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

                                          14/29

                                          3 May 2015, 17:46

                                          • Login

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