Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to rebuild code in qtdatavis3d?
QtWS25 Last Chance

How to rebuild code in qtdatavis3d?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
ubuntu 16.04building qt
5 Posts 2 Posters 857 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.
  • Tom assoT Offline
    Tom assoT Offline
    Tom asso
    wrote on last edited by Tom asso
    #1

    I've got Qt 5.13.0 on unbuntu downloaded from the online installer. I have modified 5.13.0/Src/qtdatavis3d/src/datavisualization/utils/texturehelper.cpp. How do I rebuild all of the Qt libraries, etc to incorporate this change in my apps? I do not see a Makefile at the top level...
    Thanks!

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

      Hi,

      There's no need to rebuild all of Qt. Just build and install the module.

      Building a Qt module is the same procedure as building any other qmake based project. You can even load the module in Qt Creator and build it there.

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

      Tom assoT 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        There's no need to rebuild all of Qt. Just build and install the module.

        Building a Qt module is the same procedure as building any other qmake based project. You can even load the module in Qt Creator and build it there.

        Tom assoT Offline
        Tom assoT Offline
        Tom asso
        wrote on last edited by Tom asso
        #3

        @sgaist - Assume I want to rebuild qtdatavis3d from the linux command line, which directory do I 'cd' to, and what command do I invoke? Thanks!

        1 Reply Last reply
        0
        • Tom assoT Offline
          Tom assoT Offline
          Tom asso
          wrote on last edited by Tom asso
          #4

          I tried the following:

          #  Go to qtdatavis3d subdirectory
          cd Qt/5.13.0/Src/qdatavis3d
          
          # Generate make file
          qmake qdatavis3d.pro
          
          # Clean and remake the module
          make clean
          make         # Puts generated libraries into lib/ subdirectory
          sudo make install  # Copy libraries from lib/ to /usr/local/5.13.0/lib
          

          I then use qtcreator to clean and rebuild my app that uses qtdatavis3d module, but I do not see my changes, i.e. they don't seem to have taken effect. While 'make install' copies the module libraries to /usr/local/Qt-5.13.0/lib, it turns out that that qtcreator is linking against libraries in Qt/5.13.0/gcc_64/lib - and 'make' does not update those libraries. So I had to manually copy the new libraries there:

          cp lib/* ~/Qt/5.13.0/gcc_64/lib/.
          
          

          Thanks

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

            You should always use the full path to the qmake binary of the Qt version you want to use to build your project/library/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

            • Login

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