Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Set configuration arm compiler qt for cross compile
Forum Updated to NodeBB v4.3 + New Features

Set configuration arm compiler qt for cross compile

Scheduled Pinned Locked Moved Unsolved General and Desktop
15 Posts 2 Posters 3.4k Views 1 Watching
  • 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.
  • P Offline
    P Offline
    powerboy2988
    wrote on last edited by
    #1

    Hi ,
    i did cross compile hidapi with arm-gcc and test.cpp file in terminal,
    Now i want set qt compiler for cross compile HIDAPI, i could cross compile simple project with qt , but i cant cross compile hidapi in qt, when i want compile with arm-gcc, i get these errors :

    /home/hossein/out3/lib//libudev.so: undefined reference to `name_to_handle_at@GLIBC_2.14'
    collect2: error: ld returned 1 exit status
    

    in my .pro :

    LIBS += -L/home/hossein/out3/lib/ -lhidapi-hidraw
    LIBS += -L/home/hossein/out3/lib/ -ludev
    

    At this link i description how i cross compile in command line ..
    https://www.raspberrypi.org/forums/viewtopic.php?f=33&t=143377

    What can i do?
    Thanks

    1 Reply Last reply
    0
    • P Offline
      P Offline
      powerboy2988
      wrote on last edited by
      #2

      Nobody??

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

        Hi,

        Were did you get that library ? Looks like it's linked to a pretty old version of glibc.

        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
        • P Offline
          P Offline
          powerboy2988
          wrote on last edited by
          #4

          I didn`t get any where, I use ubuntu 14.04 x86 and i want cross compile for arm.
          I can do it with Terminal , but i have this error in qt ..

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

            How are you doing it from the terminal ?

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

            P 1 Reply Last reply
            0
            • SGaistS SGaist

              How are you doing it from the terminal ?

              P Offline
              P Offline
              powerboy2988
              wrote on last edited by
              #6

              @SGaist I did explain in first post ;)

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

                I meant the Qt project compilation

                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
                • P Offline
                  P Offline
                  powerboy2988
                  wrote on last edited by
                  #8

                  @powerboy2988 said:

                  name_to_handle_

                  In my .pro file, i set -lhidapi-hidraw and -ludev and i got that error

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

                    Can you share your .pro file ?

                    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
                    • P Offline
                      P Offline
                      powerboy2988
                      wrote on last edited by
                      #10

                      unix: LIBS += -L/home/hossein/out/lib/ -lhidapi-hidraw -ludev

                      INCLUDEPATH += /home/hossein/out/include/hidapi/

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

                        What version of glibc do you have ?

                        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
                        • P Offline
                          P Offline
                          powerboy2988
                          wrote on last edited by
                          #12

                          i checked and i have 2.19!! in pc and in raspberry i have 2.13!!!

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

                            If possible update the RPi. Otherwise, you have to re-build/link the libraries against the same set used by the RPi.

                            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
                            • P Offline
                              P Offline
                              powerboy2988
                              wrote on last edited by
                              #14

                              i have not problem with RPi, i could cross compile in terminal but i cannot set config in qt ,

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

                                And if you explicitly link against glib ?

                                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