Skip to content

qt-5/modules/qtbase.nix: set flags for cross compilation#220314

Closed
ghost wants to merge 2 commits intomasterfrom
unknown repository
Closed

qt-5/modules/qtbase.nix: set flags for cross compilation#220314
ghost wants to merge 2 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Mar 9, 2023

Description of changes

This commit sets the PKG_CONFIG_SYSROOT_DIR and PKG_CONFIG_LIBDIR environment variables when compiling a cross-targeted qmake. This is required; if these environment variables are unset, qmake won't even try to use pkg-config.

This commit also writes LDFLAGS, CFLAGS, and CXXFLAGS into qmake.conf.

Incorporates:

@ghost ghost requested a review from ttuegel as a code owner March 9, 2023 09:48
@github-actions github-actions bot added the 6.topic: qt/kde Object-oriented framework for GUI creation label Mar 9, 2023
@ghost ghost mentioned this pull request Mar 9, 2023
@ofborg ofborg bot added 6.topic: cross-compilation Building packages on a different platform than they will be used on 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Mar 9, 2023
@SuperSandro2000 SuperSandro2000 marked this pull request as draft March 18, 2023 15:50
@ghost ghost marked this pull request as ready for review March 21, 2023 03:14
Adam Joseph added 2 commits April 15, 2023 18:48
This commit adds the `-device` and `-device-option` flags necessary
for cross compilation to `configureFlags`.

It also adds the (one-entry at the moment) Rosetta Stone for QT-5 as
a `let`-defined `qtPlatform` function which takes a nixpkgs platform
and returns a QT-5 `mkspecs`-string.
This commit:

- sets the `PKG_CONFIG_SYSROOT_DIR` and `PKG_CONFIG_LIBDIR`
  environment variables when compiling a cross-targeted `qmake`.
  This is required; if these environment variables are unset,
  `qmake` won't even try to use `pkg-config`.

- writes `LDFLAGS`, `CFLAGS`, and `CXXFLAGS` into `qmake.conf`.
@ghost ghost marked this pull request as draft April 24, 2023 02:19
@ghost ghost marked this pull request as ready for review June 21, 2023 05:14
@ghost ghost closed this Oct 22, 2023
@ghost ghost deleted the pr/qt5/cross/buildFlags branch October 22, 2023 05:36
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: cross-compilation Building packages on a different platform than they will be used on 6.topic: qt/kde Object-oriented framework for GUI creation 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant