Bug 383905 - error: ‘QGLFormat’ has not been declared
Summary: error: ‘QGLFormat’ has not been declared
Status: RESOLVED FIXED
Alias: None
Product: kalzium
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Kalzium Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-23 10:54 UTC by Scarlett Moore
Modified: 2018-04-14 06:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Add missing include (273 bytes, patch)
2017-08-23 10:54 UTC, Scarlett Moore
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scarlett Moore 2017-08-23 10:54:59 UTC
Created attachment 107472 [details]
Add missing include

15:02:38 /workspace/build/src/kalzium.cpp: In member function ‘MoleculeDialog* Kalzium::slotMoleculeviewer()’:
15:02:38 /workspace/build/src/kalzium.cpp:381:10: error: ‘QGLFormat’ has not been declared
15:02:38      if (!QGLFormat::hasOpenGL()) {
15:02:38           ^
15:02:39 src/CMakeFiles/kalzium.dir/build.make:709: recipe for target 'src/CMakeFiles/kalzium.dir/kalzium.cpp.o' failed
15:02:39 make[4]: *** [src/CMakeFiles/kalzium.dir/kalzium.cpp.o] Error 1
15:02:39 make[4]: *** Waiting for unfinished jobs....
15:02:40 /workspace/build/src/detailinfodlg.cpp: In member function ‘void DetailedInfoDlg::slotLinkClicked(const QUrl&)’:
15:02:40 /workspace/build/src/detailinfodlg.cpp:594:59: warning: ‘static bool KRun::runUrl(const QUrl&, const QString&, QWidget*, bool, bool, const QString&, const QByteArray&)’ is deprecated [-Wdeprecated-declarations]
15:02:40      KRun::runUrl(url, QStringLiteral("text/html"), nullptr);

This patch fixes compile.
https://build.neon.kde.org/job/xenial_release_applications_kalzium/30/
Comment 1 Viktor Yu. Kovalskii 2018-04-12 02:27:14 UTC
(In reply to Scarlett Clark from comment #0)
> Created attachment 107472 [details]
> Add missing include
> 
> 15:02:38 /workspace/build/src/kalzium.cpp: In member function
> ‘MoleculeDialog* Kalzium::slotMoleculeviewer()’:
> 15:02:38 /workspace/build/src/kalzium.cpp:381:10: error: ‘QGLFormat’ has not
> been declared
> 15:02:38      if (!QGLFormat::hasOpenGL()) {
> 15:02:38           ^
> 15:02:39 src/CMakeFiles/kalzium.dir/build.make:709: recipe for target
> 'src/CMakeFiles/kalzium.dir/kalzium.cpp.o' failed
> 15:02:39 make[4]: *** [src/CMakeFiles/kalzium.dir/kalzium.cpp.o] Error 1
> 15:02:39 make[4]: *** Waiting for unfinished jobs....
> 15:02:40 /workspace/build/src/detailinfodlg.cpp: In member function ‘void
> DetailedInfoDlg::slotLinkClicked(const QUrl&)’:
> 15:02:40 /workspace/build/src/detailinfodlg.cpp:594:59: warning: ‘static
> bool KRun::runUrl(const QUrl&, const QString&, QWidget*, bool, bool, const
> QString&, const QByteArray&)’ is deprecated [-Wdeprecated-declarations]
> 15:02:40      KRun::runUrl(url, QStringLiteral("text/html"), nullptr);
> 
> This patch fixes compile.
> https://build.neon.kde.org/job/xenial_release_applications_kalzium/30/

I confirm this bug on my Gentoo boxes ~x86 and ~amd64.
This patch helps me to compile kalzium-17.12.3.
Comment 2 Viktor Yu. Kovalskii 2018-04-14 05:08:46 UTC
(In reply to Viktor Yu. Kovalskii from comment #1)
> (In reply to Scarlett Clark from comment #0)
> > Created attachment 107472 [details]
> > Add missing include
> > 
> > 15:02:38 /workspace/build/src/kalzium.cpp: In member function
> > ‘MoleculeDialog* Kalzium::slotMoleculeviewer()’:
> > 15:02:38 /workspace/build/src/kalzium.cpp:381:10: error: ‘QGLFormat’ has not
> > been declared
> > 15:02:38      if (!QGLFormat::hasOpenGL()) {
> > 15:02:38           ^
> > 15:02:39 src/CMakeFiles/kalzium.dir/build.make:709: recipe for target
> > 'src/CMakeFiles/kalzium.dir/kalzium.cpp.o' failed
> > 15:02:39 make[4]: *** [src/CMakeFiles/kalzium.dir/kalzium.cpp.o] Error 1
> > 15:02:39 make[4]: *** Waiting for unfinished jobs....
> > 15:02:40 /workspace/build/src/detailinfodlg.cpp: In member function ‘void
> > DetailedInfoDlg::slotLinkClicked(const QUrl&)’:
> > 15:02:40 /workspace/build/src/detailinfodlg.cpp:594:59: warning: ‘static
> > bool KRun::runUrl(const QUrl&, const QString&, QWidget*, bool, bool, const
> > QString&, const QByteArray&)’ is deprecated [-Wdeprecated-declarations]
> > 15:02:40      KRun::runUrl(url, QStringLiteral("text/html"), nullptr);
> > 
> > This patch fixes compile.
> > https://build.neon.kde.org/job/xenial_release_applications_kalzium/30/
> 
> I confirm this bug on my Gentoo boxes ~x86 and ~amd64.
> This patch helps me to compile kalzium-17.12.3.

This bug is fixed by this commit:
https://cgit.kde.org/kalzium.git/commit/?id=1e9225167b36cd1ad80b440b9bd44a39c41ed6d6