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.
  • T Offline
    T Offline
    Tom asso
    wrote on 21 Aug 2019, 19:46 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 21 Aug 2019, 20:17 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

      T 1 Reply Last reply 21 Aug 2019, 22:55
      0
      • S SGaist
        21 Aug 2019, 20:17

        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.

        T Offline
        T Offline
        Tom asso
        wrote on 21 Aug 2019, 22:55 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
        • T Offline
          T Offline
          Tom asso
          wrote on 22 Aug 2019, 00:14 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
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 22 Aug 2019, 19:24 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

            4/5

            22 Aug 2019, 00:14

            • Login

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