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. Compiling Qt from Source on Windows - Error
Forum Updated to NodeBB v4.3 + New Features

Compiling Qt from Source on Windows - Error

Scheduled Pinned Locked Moved Solved General and Desktop
21 Posts 3 Posters 7.0k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #9

    Did you call jom install after building ?

    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

      Did you call jom install after building ?

      P Offline
      P Offline
      PrateekKhatri
      wrote on last edited by
      #10

      @SGaist

      Yes I did.

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

        Good, did you do that in qtbase or the Qt sources top level folder ?

        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

          Good, did you do that in qtbase or the Qt sources top level folder ?

          P Offline
          P Offline
          PrateekKhatri
          wrote on last edited by
          #12

          @SGaist
          I did it in the top-level folder or one level above qtbase.

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

            Check the content of the lib folder, if nothing QtSerialBus can be found, the quickest would be to build/install the module by hand. You can go in the module sources and call qmake/jom/jom install.

            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

              Check the content of the lib folder, if nothing QtSerialBus can be found, the quickest would be to build/install the module by hand. You can go in the module sources and call qmake/jom/jom install.

              P Offline
              P Offline
              PrateekKhatri
              wrote on last edited by
              #14

              @SGaist

              
              C:\Qt\Qt5.10\qtserialbus\lib>ls
              Qt5SerialBus.dll  Qt5SerialBus.exp  Qt5SerialBus.lib  Qt5SerialBus.prl  Qt5SerialBusd.dll  Qt5SerialBusd.exp  Qt5SerialBusd.ilk  Qt5SerialBusd.lib  Qt5SerialBusd.pdb  Qt5SerialBusd.prl  cmake
              
              

              These are the contents that I find in qtserialbus directory and

              C:\Qt\Qt5.10\qtserialbus\lib>cd cmake
              
              C:\Qt\Qt5.10\qtserialbus\lib\cmake>ls
              Qt5SerialBus
              
              C:\Qt\Qt5.10\qtserialbus\lib\cmake>cd Qt5SerialBus
              
              C:\Qt\Qt5.10\qtserialbus\lib\cmake\Qt5SerialBus>ls
              Qt5SerialBusConfig.cmake  Qt5SerialBusConfigVersion.cmake  Qt5SerialBus_PeakCanBusPlugin.cmake  Qt5SerialBus_SystecCanBusPlugin.cmake  Qt5SerialBus_TinyCanBusPlugin.cmake  Qt5SerialBus_VectorCanBusPlugin.cmake
              
              C:\Qt\Qt5.10\qtserialbus\lib\cmake\Qt5SerialBus>
              
              

              I did run jom install inside this folder, but Qt Creator still can't see this module for some reason.

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

                AFAIK, you should have all the libraries needed in qtbase/lib once the installation is done

                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

                  AFAIK, you should have all the libraries needed in qtbase/lib once the installation is done

                  P Offline
                  P Offline
                  PrateekKhatri
                  wrote on last edited by PrateekKhatri
                  #16

                  @SGaist
                  I could't see anything Qt5SerialBus inside the lib folder under qtbase. Any suggestions on how to get this working?

                  I manually copied the contents of qtserialbus/lib into qtbase/lib and the contents of qtserialbus/lib/cmake into qtbase/lib/cmake, but Qt Creator doesn't seem to find the library still.

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

                    @PrateekKhatri said in Compiling Qt from Source on Windows - Error:

                    \usr\local\Qt-5.10.0

                    Do you have a folder like that somewhere on your machine ?

                    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

                      @PrateekKhatri said in Compiling Qt from Source on Windows - Error:

                      \usr\local\Qt-5.10.0

                      Do you have a folder like that somewhere on your machine ?

                      P Offline
                      P Offline
                      PrateekKhatri
                      wrote on last edited by PrateekKhatri
                      #18

                      @SGaist
                      Yes it is there in my C:\ . And I do see Qt5SerialBus related files in the lib folder. Is there a reason why it would automatically move everything to a folder \usr\local\Qt5.10.0\ ?

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

                        The path is a bit surprising but you should use the -prefix option when you want your build to be located somewhere precisely, otherwise, Qt has it's defaults. But again, that's rather a *nix path than Windows.

                        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

                          The path is a bit surprising but you should use the -prefix option when you want your build to be located somewhere precisely, otherwise, Qt has it's defaults. But again, that's rather a *nix path than Windows.

                          P Offline
                          P Offline
                          PrateekKhatri
                          wrote on last edited by
                          #20

                          @SGaist
                          I was wondering the same thing. Oh well, I pointed the qmake under usr/local/Qt5.10.0/bin and everything magically works now :)

                          Thank you so much @SGaist !

                          You saved my life!

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

                            You're welcome !

                            Since you have it working now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)

                            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