Unsolved Problem using Qt Charts <QtCharts/QAbstractSeries> Not found
-
Hi, I have downloaded QtChars source code from "https://github.com/qt/qtcharts " .
I am able to run qmake. But when i try to BUILD the source code from QtCreator , i am getting error as
No such file or directory found : #include<QtCharts/QAbstractSeries> . I am using Qt 5.6 version .
I am new to Qt programming, i want to build a application to show graphs so any kind of help would be greatly appreciated. Thank you -
@Jenifer
Hello,
Could you provide a bit more? What is the precise error you get from the compiler, in which file and at which line? Do you get errors/warning in the General messages window inside Creator? How exactly are you trying to build the module, have you tried building from the command line?Kind regards.
-
Hi and welcome to devnet,
To add to @kshegunov, what OS/Compiler are you working with ?
-
@kshegunov : I have tried from the command line as well. The error says QtCharts/QAbstractSeries: No such file or directory . #include<QtCharts/QAbstractSeries> , this error prompts from src/charts/chartdataset.cpp file.
I get the same error on command line as well as on Qt Creator@SGaist : I am working on windows 7 OS and mingw49_32 compiler.
-
@Jenifer
Perhaps a silly question, but when you cloned the repository did you select the correct branch (Qt version)?Kind regards.
-
You should also clone from code.qt.io. Github is just a mirror.
-
@SGaist
Ya i tried to clone it from code.qt.io. this was mentioned in other threads too. But i got the following error "The requested URL /qt/qtcharts.git was not found on this server." So i cloned it from Github. -
@kshegunov
Ya it seems silly too , but i am unable to resolve it. I have selected the correct branch and qt version.
I am completely new to QT so i have no clue how to resolve it. I tried checking the .pro files as well but i couldn't figure out what is causing that error. -
Can you show the line you used to clone the repository from code.qt.io
How are you trying to build the project ?
-
@SGaist
I tried withgit clone https://code.qt.io/qt/qtcharts.git
git clone http://code.qt.io/qt/qtcharts.git
git clone git://code.qt.io/qt/qtcharts.gitI get the error as
fatal: unable to access 'https://code.qt.io/qt/qtcharts.git/': Couldn't resolve host 'code.qt.io'.I tried building the project from QtCreator it showed the error as mentioned above. Later i tried from command prompt and got the same error
-
Try this:
git clone -b 5.6 git://code.qt.io/qt/qtcharts.git
Then you try building. Go in the cloned directory and run (put the correct paths here):
/path/to/qt/qmake mingw32-make
Finally if everything goes well you can install in the (preset) location with:
mingw32-make install
By the way, did you build Qt yourself, or you have installed it with the maintenance tool?
Kind regards.
-
Even after using this command
git clone -b 5.6 git://code.qt.io/qt/qtcharts.gitThe error persist
fatal: unable to access 'https://code.qt.io/qt/qtcharts.git/': Couldn't resolve host 'code.qt.io'.I have installed it from the maintenance tool.
-
@Jenifer
I'm sorry, this error:fatal: unable to access 'https://code.qt.io/qt/qtcharts.git/': Couldn't resolve host 'code.qt.io'.
does not correspond to the suggested git command. Are you sure you're executing what I wrote and not something else? I can pull the repository without a problem.
Kind regards.
-
Sorry,
When I use this command
git clone -b 5.6 git://code.qt.io/qt/qtcharts.gitI got the following error
Unable to look up code.qt.io (port 9418) (No such host is known. )So i tried it with
git clone -b 5.6 http://code.qt.io/qt/qtcharts.git
git clone -b 5.6 https://code.qt.io/qt/qtcharts.git
commands for which i got the error as
fatal: unable to access 'https://code.qt.io/qt/qtcharts.git/': Couldn't resolve host 'code.qt.io' -
Are you behind a firewall ? A custom DNS ?
-
@SGaist
Yes there is firewall . Will that affect ?? -
Check with the people responsible to manage it but it's likely that it's blocking access to code.qt.io
-
@SGaist
Thank you i will check with the concerned people and get back if any help needed