-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With this commit, Linux build starts linking to Qt6. Here are things needed to use Qt6 in Ubuntu 22.04. * Qt6 uses 'libexec' rather than 'bin' to host tools like 'uic'. * Qt6 requires 'libgl-dev' in Ubuntu 22.04. * Ubuntu 22.04 uses Qt 6.2.4, where you cannot use pkg-config for Qt6 due to QTBUG-86080 [1]. This commit works around it by injecting files like Qt6Core.pc files with 'PKG_CONFIG_PATH' environment variable. [1]: https://bugreports.qt.io/browse/QTBUG-86080 PiperOrigin-RevId: 558016590
- Loading branch information
1 parent
5e7a418
commit 7b0fc71
Showing
10 changed files
with
76 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
prefix=/usr | ||
exec_prefix=${prefix} | ||
bindir=${prefix}/lib/qt6/bin | ||
libexecdir=${prefix}/lib/qt6/libexec | ||
libdir=${prefix}/lib/x86_64-linux-gnu | ||
includedir=${prefix}/include/x86_64-linux-gnu/qt6 | ||
|
||
Name: Qt6 Core | ||
Description: Qt Core module | ||
Version: 6.2.4 | ||
Libs: -L${libdir} -lQt6Core | ||
Cflags: -I${includedir}/QtCore -I${includedir} -DQT_CORE_LIB | ||
Requires: Qt6Platform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
prefix=/usr | ||
exec_prefix=${prefix} | ||
bindir=${prefix}/lib/qt6/bin | ||
libexecdir=${prefix}/lib/qt6/libexec | ||
libdir=${prefix}/lib/x86_64-linux-gnu | ||
includedir=${prefix}/include/x86_64-linux-gnu/qt6 | ||
|
||
Name: Qt6 Gui | ||
Description: Qt Gui module | ||
Version: 6.2.4 | ||
Libs: -L${libdir} -lQt6Gui | ||
Cflags: -I${includedir}/QtGui -I${includedir} -DQT_GUI_LIB | ||
Requires: Qt6Core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
prefix=/usr | ||
exec_prefix=${prefix} | ||
bindir=${prefix}/lib/qt6/bin | ||
libexecdir=${prefix}/lib/qt6/libexec | ||
libdir=${prefix}/lib/x86_64-linux-gnu | ||
includedir=${prefix}/include/x86_64-linux-gnu/qt6 | ||
mkspecsdir=${prefix}/lib/x86_64-linux-gnu/qt6/mkspecs | ||
|
||
Name: Qt6 Platform | ||
Description: Qt Platform module | ||
Version: 6.2.4 | ||
Cflags: -I${mkspecsdir}/linux-g++ -I${includedir} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
prefix=/usr | ||
exec_prefix=${prefix} | ||
bindir=${prefix}/lib/qt6/bin | ||
libexecdir=${prefix}/lib/qt6/libexec | ||
libdir=${prefix}/lib/x86_64-linux-gnu | ||
includedir=${prefix}/include/x86_64-linux-gnu/qt6 | ||
|
||
Name: Qt6 Widgets | ||
Description: Qt Widgets module | ||
Version: 6.2.4 | ||
Libs: -L${libdir} -lQt6Widgets | ||
Cflags: -I${includedir}/QtWidgets -I${includedir} -DQT_WIDGETS_LIB | ||
Requires: Qt6Core Qt6Gui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters