How to Build and Install Missing Qt Modules?
-
Hello,
So I have build desktop apps on windows before but now I need to finish building an app on a raspberry pi 4b (Raspberry Pi OS 64-bit). The app requires some simple data visualizations, some 3d scatter plots of some points.
Thus I need the Data Visualization and Qt3D modules.
On windows its a simple matter of using the Qt Maintenance Tool to add the required modules. However, on the pi, I installed Qt using the terminal following the steps shown here: Install Qt5 with OpenCV on Raspberry Pi 4 or Jetson Nano.
This installed Qt 5.11.3 but did not bless me with the Qt Maintenance Tool. So that means I need to know (1) how to install the missing modules via terminal or (2) build the modules from Github source.
For (1), I tried:
sudo apt-get install qtdatavis3d-dev
but no package is found. I guess I need a "5" or two somewhere in the command.For (2), I downloaded the 'qtdataviz3d' module project from github but I do not understand how to build it using qmake and the readme instructions are unclear.
For the build instructions, The README file first says:
Building:
Configure the project with qmake:
qmakeI run qmake on the top level folder and all that is returned is help text on usage instructions. I've done the same in src/datavisualization folder.
Reading the qmake docs I've realized some options must be passed and so I have come up with the following:
qmake -makefile -o makefile "CONGFIG=+release" configure.cmake
I've used this in the src/datavisualization folder but the created makefile is unusable. qmake returns
'qt_extra_definition' is not a recognized test function.
and running make returns errors likeundefined reference to 'main'
. I quess I am not sure where or how exactly to run qmake, What file am I supposed to pass or look for?If I cannot use these modules, then suggestions for alternatives would be appreciated. I've tested the Hello GL2 example and it works but OpenGL might seem like a bit of over kill.
Thank you.
-
@new-qt_user-2022 said in How to Build and Install Missing Qt Modules?:
I guess I need a "5" or two somewhere in the command
Simply search for a package containing datavis3d.
You have two possibilities:
- Install Qt packaged by your Linux distribution
- Build Qt by yourself
You can't mix Qt packages provided by your Linux distribution with your own Qt build.
-
Yup. You can find the packages under Pi Menu > Preferences > Add/Remove Software. Doing a search there will eventually bring up the needed modules.
I am still curious as how one builds the modules separately though.
Thanks again!