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

Plugin Scenery3d - windows 11 - Qt 6.7.1 - APIENTRYP #3763

Closed
uwes-ufo opened this issue Jun 5, 2024 · 15 comments
Closed

Plugin Scenery3d - windows 11 - Qt 6.7.1 - APIENTRYP #3763

uwes-ufo opened this issue Jun 5, 2024 · 15 comments
Assignees
Labels
qt Issues, related to Qt framework
Milestone

Comments

@uwes-ufo
Copy link
Contributor

uwes-ufo commented Jun 5, 2024

void (APIENTRYP glDrawBuffer)(GLenum);

Somehow APIENTRYP is not defined.
As a cheap workaround I added:

 #include <QOpenGLContext>
 #include <QOpenGLFunctions_1_0>
 
+#if defined(_WIN32)
+#include <qt_windows.h>
+#endif
+
 #if !QT_CONFIG(opengles2)
 //! Defines some OpenGL functions not resolved through StelOpenGL (which only contains base OpenGL ES2 functions)

But honestly I don't have enough background knowledge to provide a real solution.

@alex-w alex-w added this to the 24.2 milestone Jun 5, 2024
@alex-w alex-w added the qt Issues, related to Qt framework label Jun 5, 2024
@gzotti
Copy link
Member

gzotti commented Jun 5, 2024

I don't understand. Does compilation suddenly fail on your system? I think Qt6.7.1 is the latest release, right? Maybe a Qt issue then? Or is including qt_windows.h a new requirement with Qt6.7?

@uwes-ufo
Copy link
Contributor Author

uwes-ufo commented Jun 5, 2024

Yes, compilation fails with Qt 6.7.x, but Qt 6.6.x works.

@10110111
Copy link
Contributor

10110111 commented Jun 5, 2024

What if you replace APIENTRYP with QOPENGLF_APIENTRYP?

@gzotti
Copy link
Member

gzotti commented Jun 5, 2024

OK, then the first guard is also test on Qt version>=6.7 before this inclusion. Then we should see why this file is now required, i.e., what changed in Qt , and whether Qt has released some statement about it.

@10110111
Copy link
Contributor

10110111 commented Jun 5, 2024

Or maybe, instead of replacing this with a Qt-specific macro, just try including <qopengl.h>.

@uwes-ufo
Copy link
Contributor Author

uwes-ufo commented Jun 5, 2024

QOPENGLF_APIENTRYP works!
Thank you!

(no luck with <qopengl.h>)

@alex-w
Copy link
Member

alex-w commented Jun 5, 2024

QOPENGLF_APIENTRYP works! Thank you!

(no luck with <qopengl.h>)

What about QOPENGLF_APIENTRYP with Qt 6.6?

@gzotti
Copy link
Member

gzotti commented Jun 5, 2024

I would still enclose this by a Qt version test. Or confirm it's OK with Qt5.12 as well.

@10110111
Copy link
Contributor

10110111 commented Jun 5, 2024

We can just push it into a branch and let the CI sort it out.

@uwes-ufo
Copy link
Contributor Author

uwes-ufo commented Jun 5, 2024

At least it passed some tests.
uwes-ufo/stellarium

@10110111
Copy link
Contributor

10110111 commented Jun 5, 2024

At least it passed some tests.
uwes-ufo/stellarium

I don't find AppVeyor ones there... You may have to connect an AppVeyor account to make them work. Or I can push it myself if you fail.

@uwes-ufo
Copy link
Contributor Author

uwes-ufo commented Jun 5, 2024

Yes, please do another test because my fork is a bit different.

@10110111
Copy link
Contributor

10110111 commented Jun 5, 2024

Let's see if this build works out, and on success I'll push this commit to master.

@alex-w alex-w assigned 10110111 and unassigned 10110111 and gzotti Jun 5, 2024
@alex-w alex-w added the state: published The fix has been published for testing in weekly binary package label Jun 9, 2024
Copy link

github-actions bot commented Jun 9, 2024

Hello @uwes-ufo!

Please check the fresh version (development snapshot) of Stellarium:
https://github.com/Stellarium/stellarium-data/releases/tag/weekly-snapshot

@alex-w alex-w removed the state: published The fix has been published for testing in weekly binary package label Jun 23, 2024
Copy link

Hello @uwes-ufo!

Please check the latest stable version of Stellarium:
https://github.com/Stellarium/stellarium/releases/latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
qt Issues, related to Qt framework
Development

No branches or pull requests

4 participants