Solved Source code not running in different versions of Qt Creator and Qt kit with different Raspbian (Jessie and Buster)?
I am using Raspbian Jessie (Linux-8) with Qt Creator Version -3.2.1 and Qt (Kit) Version 5.3.2. In this configuration my source code is running fine.
Now I have downloaded fresh Raspbian Buster (Linux-10) and installed Qt Creator and Qt libraries in that image with following commands -
- sudo apt install qttools5-dev
- sudo apt-get install qtcreator
With these commands ,now my Qt Creator Version is 4.8.2 and Qt (Kit) Version 5.11.3.
Source code of Qt Creator Version -3.2.1 and Qt (Kit) Version 5.3.2 in Jessie is not working in Qt Creator Version is 4.8.2 and Qt (Kit) Version 5.11.3 in Buster
It is giving errors related to absence of basic libraries like mainwindow, qstring , qtimezone, qtgui, etc
Is the problem arising due to different versions of Qt Creator and Qt versions?
What should I do?
From the looks of your commands, you didn't install the Qt development packages.
i have given this command as well
sudo apt-get install build-essential
Is it possible to install Qt Creator Version -3.2.1 in buster?
If so then by which command?
Because sudo apt-get install qtcreator results in Qt Creator Version is 4.8.2!
This is to install the set of packages for compiling applications/libraries.
As I already wrote, you need to install the Qt development packages.
If you want to get such an old version of Qt Creator, you likely want to get a pre-built version however, this has nothing to do with the problem at hand. Qt Creator is just an IDE, you need to properly setup the development packages you need for development.
To install the Qt development packages:
I used following 2 commands :
- sudo apt-get install qtbase5-dev
- sudo apt-get install qtdeclarative5-dev qml-module-qtquick-controls
Am I moving in the right direction?
If not, kindly suggest how to install the Qt development packages?
Another Question :
If I upgrade Jessie to Stretch, then stretch to buster
Will the Qt Creator version remains the same or it gets upgraded?
Yes you are moving in the right direction.
When doing a distribution upgrade, packages will be upgraded.
If they are not already installed, you may have to install other development packages matching the modules you are using in your application.
@sgaist thanks . I upgraded jessie to stretch, then to buster. The Qt Creator version remains same, which has sorted my problem