Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Building Qt from source question



  • I’ve downloaded the offline installer qt-opensource-linux-x64-5.14.2.run file onto my ubuntu 18.04 system. Running that .run file seems to build all of the Qt libraries. Now I want to modify source files in 5.14.2/Src/qtdatavis3d/src/datavisualization/engine. How exactly do I rebuild just the appropriate libraries affected by the change? Do I run qmake or make in a particular directory? I am trying to follow instructions on the Qt for Linux/X11 - Building from Source page, but those don't seem to apply to my system. E.g. that page refers to a configure file at the top level of the distribution, which doesn't exist on my system. Is there a guide specifically describing how to modify source from the offline installer?

    Thanks!



  • I located 5.14.2/Src/qtdatavis3d/qtdatavis3d.pro. I ran qmake in this directory, which generates a Makefile. Then when I modify sources in this directory, it properly rebuilds the affected libraries in 5.14.2/Src/qtdatavis3d/lib. But my application project's Makefile (also generated from the project's .pro file with qmake) look for libraries in /5.14.2/gcc_64/lib. I then run 'make install' and the libraries are properly copied to the /5.14.2/gcc_64/lib. Problem solved.


Log in to reply