Unsolved Getting Started: First example has 161 issues
-
I installed Qt 5.9.2 on Windows 10 and am trying to run some examples. I copied the bars example and built it for Desktop MinGW 32-bit. There were 161 issues.
From the first issue
C:\Users\joe\Documents\Qt Projects\bars\main.cpp:49: error: undefined reference to `_imp___ZN19QtDataVisualization7Q3DBarsC1EPK14QSurfaceFormatP7QWindow'
it looks like the Q3DBars files or library are not included.The Qt start-up guide just leaves me asking "Why would I do this step?"
Did I miss something after the installation?
-
Hi and welcome to devnet,
Might be a silly question but did you install the QtDataVisualization module when you installed Qt ?
-
@SGaist said in Getting Started: First example has 161 issues:
QtDataVisualization
No, It's not a silly question. How, or where from, do I download that library?
As a developer on Windows I usually expect the libraries to be included with the download.
I built the qtdatavis3d project (42 minutes). The General Messages tab showed the following.
Running Windows Runtime device detection.
C:/Qt/5.9.2/winrt_armv7_msvc2015/bin/winrtrunner.exe --list-devices
Found 1 Windows Runtime devices.
Project ERROR: Cannot run compiler 'g++'. Maybe you forgot to setup the environment?
Error while parsing file C:\Qt\5.9.2\Src\qtdatavis3d\qtdatavis3d.pro. Giving up.The instructions at http://doc.qt.io/qt-5/windows-requirements.html are vague about I need to do to run examples or build my own projects.
-
No, It's not a silly question. How, or where from, do I download that library?
I know nothing about this, but have you read, say, http://doc.qt.io/archives/qt-5.7/qtdatavisualization-getting-started.html#installing-the-qt-data-visualization-module ?
And just possibly http://www.qtcentre.org/threads/64506-Installing-Qt-DataVisualization ?This "datavisualization" module is not part of Qt OpenSource edition.
-
@JoeAB said in Getting Started: First example has 161 issues:
How, or where from, do I download that library?
Just use Qt Maintenance Tool (c:\qt\MaintenanceTool.exe) and select QtDataVisualization there.
"Running Windows Runtime device detection.
C:/Qt/5.9.2/winrt_armv7_msvc2015/bin/winrtrunner.exe --list-devices" - above you said you use MinGW32 Qt version, here you're using WinRT ARM Qt - which Qt version do you really want to use? -
@JNBarchan Those pages say that Qt Visualization is not in the open source package. I did find Qt5DataVisualization.dll and Qt5DataVisualizationd.dll in Qt\5.9.2\mingw53_32\bin.
-
@JoeAB
I guess it got moved into open source, nice to know. I was just doing some Googling for your issue, not my area. -
@jsulm The Maintenance Tool | Update | 5.9.2 showed Data Visualization checked. It looks like it has been installed.
I am trying to run the simplest package, which appears to be MimGW32. Tools | Options | Build & Run | Kits shows Desktop Qt 5.9.2 MinGW 32bit. I am running Windows 10 with a AMD A10. I'm not sure why it finds and Arm. -
Because you had the
winrt_armv7_msvc2015
package installed at some point (from your previous posts).