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. Qtuitools compiling for uclinux

Qtuitools compiling for uclinux

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
22 Posts 2 Posters 7.1k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi and welcome to devnet,

    The qtuitools module is not built when you cross-compile. Why do you need it ?

    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
    • sabecreoleS Offline
      sabecreoleS Offline
      sabecreole
      wrote on last edited by
      #3

      We did a previous project for an embedded processor using 4.7.4. We built the project using the cross compilier linux-arm-gnueabi. We did this so we could use the qt creator to edit the screens and then we could easily compile for Linux and Windows versus the embedded processor. I know you don't need the editor and you can position everything with code just wondering what is different when trying to go to qt5.

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

        Are you using QUiLoader in your code ?

        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
        • sabecreoleS Offline
          sabecreoleS Offline
          sabecreole
          wrote on last edited by
          #5

          Yes, what other ways can I do this or do I need to do something else to enable the QUiLoader?

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

            You have to build it by hand, it's in qttools/src/designer/src/uitools/

            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
            • sabecreoleS Offline
              sabecreoleS Offline
              sabecreole
              wrote on last edited by
              #7

              I have gone to the location qttools/src/designer/src/uitools/

              1. qmake uitools (used the qmake with the cross compilier using the absolute location)
              2. make
              3. make install

              After try and run qmake and still get the same error

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

                Has everything run without any error ?

                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
                • sabecreoleS Offline
                  sabecreoleS Offline
                  sabecreole
                  wrote on last edited by
                  #9

                  I compile the project with uitools and run on my linux machine without any errors. I also have another project that doesn't use uitools that I can get to compile and run on the embedded device.

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

                    There's something not clear here. From your previous post, you are saying you still have the error from before and now you write that everything is running fine. So which case is it ?

                    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
                    • sabecreoleS Offline
                      sabecreoleS Offline
                      sabecreole
                      wrote on last edited by
                      #11

                      I have 2 different projects that I am working with. The project that I can compile and load on the device doesn't have QtUiTools included, the GUI is written in C++ without using any *.ui files. The second project I am using QtUiTools and *.ui files that compiles and runs on a linux machine so there are no errors in the code. I then try to do qmake (for the embedded linux) on the same code, and receive the error Project Error: Unknown module(s) in QT: uitools.

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

                        Might be a silly question but did you call make install after your cross-compiled the module ?

                        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
                        • sabecreoleS Offline
                          sabecreoleS Offline
                          sabecreole
                          wrote on last edited by
                          #13

                          Yes I have done the make install in both the qt5 directory and the qtuitools directory. I also setup a new machine with a new version of Ubuntu 16.04 previous version was Ubuntu 14.04 and setup everything and still get the same error on both machines. I installed Qt by downloading the qt-everywhere-opensource-src-5.3.2.tar.gz. I did find something strange on the new machine I haven't installed qt4 but when I run a qmake it is pointing to the location /usr/lib/x86_64-linux-gnu/qt4/bin/qmake but it is not there. I ran some patches that were provided by EmCraft for the module I am using maybe it has changed something? How can I change the path so it goes to the right place for qmake?

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

                            Just use the full path so you ensure you are using the correct version.

                            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
                            • sabecreoleS Offline
                              sabecreoleS Offline
                              sabecreole
                              wrote on last edited by
                              #15

                              That is what I did for qmake I typed <path to>/qt.5.3.2/qtbase/qmake *.pro. Any other ideas for me to try or information I can give to see how to get this working.

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

                                What do you have in your cross-compiled qt5/qtbase/mkspecs/modules/ folder ?

                                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
                                • sabecreoleS Offline
                                  sabecreoleS Offline
                                  sabecreole
                                  wrote on last edited by
                                  #17

                                  I have 27 files in there not sure if you want me to list them all, but I don't see anything in here for the qtuittools I will list the ones that tool in the file name. All the files have the prefix of (qt_tool_) moc, qdoc, dlalr, rcc, syncqt, uic.

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

                                    Looks like there's something fishy then. Take a look at the output of the make install command to see where everything is put.

                                    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
                                    • sabecreoleS Offline
                                      sabecreoleS Offline
                                      sabecreole
                                      wrote on last edited by
                                      #19

                                      It looks like it is putting the files in the usr/local location instead of the location of the qt5 source can I change this or should I just copy all the files. I copied files from qttools/lib to qtbase/lib qttools/include to qtbase/include. I am not sure if I have everything in the right place because I now get a new error.

                                      /linux-cortexm-1.14.2/tools/arm-2010q1/arm-uclinuxeabi/bin/elf2flt: error: text=0x4d6ca0 overlaps data=0x4d66e4 ?
                                      collect2: ld returned 1 exit status
                                      make: *** [demo_prj] Error 1

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

                                        Check that you are using the right qmake when cross-compiling.

                                        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
                                        • sabecreoleS Offline
                                          sabecreoleS Offline
                                          sabecreole
                                          wrote on last edited by
                                          #21

                                          I am using the absolute path for qmake but when I do a make it is putting the include files in the usr/local/Qt-5.3.2 not the path to the folder I have installed it appears the error I am getting is the qmake is using the x86 and not the arm compilier. Is there something I can do to force the location for the qmake to go into the folders I want, or do you recommend another way to do my setup.

                                          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