Skip to content

Commit

Permalink
Guil8553/build fix (#1783)
Browse files Browse the repository at this point in the history
* Fix build on linux

* Update SampleViewer/mainSample.cpp

Co-authored-by: James Ballard <[email protected]>

* Update mainSample.cpp

* Update mainSample.cpp

---------

Co-authored-by: James Ballard <[email protected]>
  • Loading branch information
GuillaumeBelz and JamesMBallard authored Jan 31, 2025
1 parent 87852a9 commit 49e86f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SampleViewer/mainSample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
#include <QQuickWindow>
#include <QtGlobal>

#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID)
#include <QFontDatabase>
#endif

#ifdef QT_WEBVIEW_WEBENGINE_BACKEND
# include <QtWebEngineQuick>
#endif // QT_WEBVIEW_WEBENGINE_BACKEND
Expand Down Expand Up @@ -305,7 +309,7 @@ int main(int argc, char *argv[])
QGuiApplication::setOrganizationName("Esri");
QApplication app(argc, argv);

#ifdef Q_OS_LINUX
#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID)
if (qEnvironmentVariableIsSet("ESRI_AUTOMATION_TEST_SUSE_FONT_PATH"))
{
const auto fontPath = qEnvironmentVariable("ESRI_AUTOMATION_TEST_SUSE_FONT_PATH");
Expand Down

0 comments on commit 49e86f7

Please sign in to comment.