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. Include library source in my project
Forum Updated to NodeBB v4.3 + New Features

Include library source in my project

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 4 Posters 3.5k Views 3 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.
  • L Offline
    L Offline
    Landolfi
    wrote on last edited by
    #3

    Hi SGaist, I'm using Win 10 Pro and compiling with mingw. I'm using Qt 5.9.

    Thank you

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

      What do you mean by include the source from the QtSerialBus module in 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

      1 Reply Last reply
      0
      • E Offline
        E Offline
        Eligijus
        wrote on last edited by
        #5

        http://doc.qt.io/qtcreator/creator-debugger-engines.html
        Mapping Source Paths

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

          Did you download Qt's sources ?

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

            I did downloaded the source of the qtserialbus library.
            Thank you to Eligijus, that's almost what I was looking for. I'd like to debug the QT library class QModbusClient at first, but I also would like to modify it, to insert some debug code for instance.
            Still trying...

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

              In that case you have to build the module and use that version with your application.

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

                @SGaist: yes, thanks. But the module won't compile because some files are missing, as I wrote in my first post. Please help.

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

                  What exactly is missing ?

                  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
                  1
                  • L Offline
                    L Offline
                    Landolfi
                    wrote on last edited by
                    #11

                    I downloaded source from https://github.com/qt/qtserialbus/tree/5.9.1
                    I got a dir qtserialbus-5.9.1 with qtserialbus.pro
                    Inside it there is the dir 'src' with its src.pro
                    Inside it there is the dir 'serialbus' with serialbus.pro
                    Which one should I use?
                    I tried to build qtserialbus.pro and I got "In file included from C:\Dropbox\Progetti\Library\qt\qtserialbus-5.9.1\qtserialbus-5.9.1\src\serialbus\qmodbusserver.cpp:39:0:
                    C:\Dropbox\Progetti\Library\qt\qtserialbus-5.9.1\qtserialbus-5.9.1\src\serialbus\qmodbusserver_p.h:43:40: fatal error: private/qmodbuscommevent_p.h: No such file or directory
                    compilation terminated"

                    1 Reply Last reply
                    0
                    • sierdzioS Offline
                      sierdzioS Offline
                      sierdzio
                      Moderators
                      wrote on last edited by
                      #12

                      Can't you use the Qt installer? You would get all the libs build and included by default.

                      You should not compile Qt modules without configuring Qt first. Please see https://wiki.qt.io/Building_Qt_5_from_Git for detailed info on how to configure and build Qt.

                      (Z(:^

                      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