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. How to add new module ?
Forum Updated to NodeBB v4.3 + New Features

How to add new module ?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
17 Posts 3 Posters 15.6k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #5

    Did you check the content of your cross-compiled Qt installation ?

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

    H 1 Reply Last reply
    1
    • SGaistS SGaist

      Did you check the content of your cross-compiled Qt installation ?

      H Offline
      H Offline
      Hiloshi
      wrote on last edited by
      #6

      Dear @SGaist ,

      Do you mean the content of "qt5/qtbase/include" ?
      In this folder, I don't see "QTSerialPort" or anything related to serialport folder.

      Is there anything wrong ?

      jsulmJ 1 Reply Last reply
      0
      • H Hiloshi

        Dear @SGaist ,

        Do you mean the content of "qt5/qtbase/include" ?
        In this folder, I don't see "QTSerialPort" or anything related to serialport folder.

        Is there anything wrong ?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #7

        @Hiloshi According to the log you posted it should be in /home/hiloshi/rpi/rasp-pi-rootfs/usr/local/qt5pi/include/QtSerialPort

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        H 1 Reply Last reply
        1
        • jsulmJ jsulm

          @Hiloshi According to the log you posted it should be in /home/hiloshi/rpi/rasp-pi-rootfs/usr/local/qt5pi/include/QtSerialPort

          H Offline
          H Offline
          Hiloshi
          wrote on last edited by Hiloshi
          #8

          Dear @jsulm , @SGaist ,

          Inside the folder, there are:

          hiloshi@ubuntu64:~/rpi/rasp-pi-rootfs/usr/local/qt5pi/include/QtSerialPort$ ls
          5.8.0                QSerialPortInfo      QtSerialPortVersion
          QSerialPort          qserialportinfo.h    qtserialportversion.h
          qserialportglobal.h  QtSerialPort
          qserialport.h        QtSerialPortDepends
          
          

          Inside the 5.8.0, there are:

          hiloshi@ubuntu64:~/rpi/rasp-pi-rootfs/usr/local/qt5pi/include/QtSerialPort/5.8.0/QtSerialPort/private$ ls
          qserialportinfo_p.h  qserialport_p.h  qtudev_p.h
          
          

          The above data are in the host side raspbian-jessie.img(mount as rasp-pi-rootfs folder).

          Does it mean install successful ?

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

            Looks like it yes.

            Just to be sure, you are are sure you are using the correct qmake for your project ?

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

            H 2 Replies Last reply
            1
            • SGaistS SGaist

              Looks like it yes.

              Just to be sure, you are are sure you are using the correct qmake for your project ?

              H Offline
              H Offline
              Hiloshi
              wrote on last edited by
              #10

              Dear @SGaist ,

              I think there are something wrong on the way I create project.

              I import example project from:

              ~/rpi/qt5/qtserialport/examples/serialport/terminal
              

              and try build and run --> It is working ~~~

              But then I try to create project again, it still show:

              Project ERROR: Unknown module(s) in QT: serialport
              

              The way I create project is:

              1. select Qt Widgets Application
              2. input project name
              3. Select Kit (Raspberry Pi)
              4. Choose base class "QMainWindow"
              5. Add serialport to the end of "QT += core gui " on pro file
              6. Build

              I compare the pro file of two project, I cannot see the mistake.

              I upload the project: https://www.dropbox.com/s/fn85bcptzl2pa9k/serialport_test.rar?dl=0
              Inside the rar, "terminal3" is working project, "terminal" is not working.

              Any suggestion is appreciate.

              Thanks,

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

                What do you mean by importing ?

                Take a look at header of the Makefile of the two projects, the qmake line used for each is pretty different.

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

                H 1 Reply Last reply
                1
                • SGaistS SGaist

                  What do you mean by importing ?

                  Take a look at header of the Makefile of the two projects, the qmake line used for each is pretty different.

                  H Offline
                  H Offline
                  Hiloshi
                  wrote on last edited by
                  #12

                  Dear @SGaist ,

                  Sorry, it should be "Open Project" not import.

                  I may find the reason that cause this issue:

                  If I put my project into below folder, then build is OK:

                  ~/rpi/qt5/qtserialport/examples/serialport/terminal/
                  

                  If I put project on my original workspace, compiler will fail:

                  ~/rpi/QT5Projects/
                  

                  So I feel I may not include correct path into project.
                  I go through the options on qt creator, unfortunately I didn't find the place to add path.

                  How should I do to fix it ?

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

                    Can you try from the command line directly ?

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

                    H 1 Reply Last reply
                    1
                    • SGaistS SGaist

                      Can you try from the command line directly ?

                      H Offline
                      H Offline
                      Hiloshi
                      wrote on last edited by
                      #14

                      Dear @SGaist ,

                      I don't familiar with command line operation, but I will check some document and try.

                      Do you suspect something wrong with QT Creator ?

                      Thanks,

                      1 Reply Last reply
                      0
                      • SGaistS SGaist

                        Looks like it yes.

                        Just to be sure, you are are sure you are using the correct qmake for your project ?

                        H Offline
                        H Offline
                        Hiloshi
                        wrote on last edited by
                        #15

                        @SGaist said in How to add new module ?:

                        Just to be sure, you are are sure you are using the correct qmake for your project ?

                        I think you are correct, I use the wrong qmake.

                        My original setting about "qmake location"(in Options->Build&Run->QtVersion) is

                        ~/rpi/qt5/qtbase/bin/
                        

                        but when I build qbase, I use:

                        ./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=$(which arm-linux-gnueabihf-gcc | sed 's/.\{3\}$//') -sysroot $RPIIMG -opensource -confirm-license -optimized-qmake -reduce-exports -release -no-qml-debug -make libs -make examples -prefix /usr/local/qt5pi -hostprefix $RPIQT
                        

                        the -hotprefix is $RPIQT, this location is:

                        ~/rpi/qt5pi/bin/
                        

                        So I should use ~/rpi/qt5pi/bin/ .

                        Can you try from the command line directly ?

                        I found this by using command line:

                        1. $RPIQT/bin/qmake .
                        2. make

                        I see no error message so I goback to check qmake location and find this error.

                        Thank you very much.

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

                          So you have it working now ?

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

                          H 1 Reply Last reply
                          2
                          • SGaistS SGaist

                            So you have it working now ?

                            H Offline
                            H Offline
                            Hiloshi
                            wrote on last edited by
                            #17

                            Dear @SGaist ,

                            Yes, It works fine.

                            1 Reply Last reply
                            1

                            • Login

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