Ubuntu QChartView
-
Hello everyone, hope all is well. Currently, I am trying to run Qt from the terminal in Ubuntu but am running into issues. I tried to run my Qt app from the terminal, but it gave me a "QChartView" not found error. This is my first time using Qt with Ubuntu, so I think I made some installation mistakes.
Here is what I have done so far:
sudo apt-get install build-essential sudo apt-get install qtcreator sudo apt-get install qt5-default sudo apt-get install qt5-doc sudo apt-get install qt5-doc-html qtbase5-doc-html sudo apt-get install qtbase5-examples
In the end, what do I need to do to ensure that QChartView (and other libraries) is found?
Thank you in advance!
-
sudo apt install libqt5charts5-dev
https://forum.qt.io/topic/120196/qtcharts-installation-on-ubuntu/3 -
Did you rebuild your app after installing these packages? Does your application work when running it in QtCreator? What is the exact error(s) you are getting?
@mchinand So my application does not work on Qt Creator in Linux, but it does on Windows/Mac. Not sure what you mean by rebuild my app, but if you mean in Qt Creator, I tried to but it fails when you try to run it.
For whatever reason, the exact app (which works fine on Windows) is not even building in Linux. I assume this has to be an installation issue, not something to do with my code (unless Linux does stuff differently). Once again, thank you for your help.
-
Hi,
You should follow @JoeCFD advice. You did not install all the required dev packages on your system.
@SGaist Sorry, my non-response to @JoeCFD made it seem like I didn't do that. My apologies for that. Now, although I am not getting the "not found" error, the app will not build. I will post a new post to the forum in a little while, as it is an entirely different issue now. Thank you all for your help.