Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

source/ProcessManager/report.cpp:950:93: error: ‘class QSharedPointer<CoordinateTransform>’ has no member named ‘get’ #309

Closed
paulbrodersen opened this issue Sep 19, 2023 · 4 comments
Assignees

Comments

@paulbrodersen
Copy link

paulbrodersen commented Sep 19, 2023

Hi, thanks for making nutil available! I am trying to compile nutil on a linux box and I am running into a few issues. I have patched the first problem (PR here), but I am now running into another error:

source/ProcessManager/report.cpp: In member function ‘void Reports::Create3DSummaryJson(QString, QVector<QSharedPointer<NutilProcess> >, QVector<QSharedPointer<ProcessItem> >, float, double, QString, bool)’:
source/ProcessManager/report.cpp:703:72: error: ‘class QSharedPointer<CoordinateTransform>’ has no member named ‘get’
             QVector3D invCenter = InvProject(a->m_center,a,0,transform.get());
                                                                        ^~~
source/ProcessManager/report.cpp:722:93: error: ‘class QSharedPointer<CoordinateTransform>’ has no member named ‘get’
                 QVector3D v = InvProject(points[(int)k],a,spread,invCenter, &alt, transform.get());
                                                                                             ^~~
source/ProcessManager/report.cpp: In member function ‘void Reports::Create3DSliceJson(QString, QVector<QSharedPointer<NutilProcess> >, QVector<QSharedPointer<ProcessItem> >, float, double, bool)’:
source/ProcessManager/report.cpp:925:77: error: ‘class QSharedPointer<CoordinateTransform>’ has no member named ‘get’
                 QVector3D invCenter = InvProject(a->m_center,a,0, transform.get());
                                                                             ^~~
source/ProcessManager/report.cpp:950:93: error: ‘class QSharedPointer<CoordinateTransform>’ has no member named ‘get’
                     QVector3D v = InvProject(points[k],a,spread, invCenter, &alt, transform.get());
                                                                                             ^~~
Makefile:2399: recipe for target 'report.o' failed
make: *** [report.o] Error 1
make: *** Waiting for unfinished jobs....

The full combined STDOUT and STDERR log can be perused here. Any guidance and trouble shooting help would be much appreciated.

@paulbrodersen
Copy link
Author

QMake version 3.1
Using Qt version 5.9.5 in /usr/lib/x86_64-linux-gnu

@sharoncy
Copy link
Member

Would you look at this @leuat?

@Tevemadar
Copy link
Member

Tevemadar commented Sep 20, 2023

QSharedPointer::get was added in Qt version 5.11, that's why it's not present in 5.9.5.
According to the documentation pages, Qt 5.15 LTS seems to be the oldest supported Qt version right now (where the method exists), so I'd definitely suggest updating.

@paulbrodersen
Copy link
Author

Thanks for the quick reply. I will look into upgrading Qt (without breaking any of the other things that need to run on this old box) and report back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants