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

Add a linux triplet to (more) easily build QGIS against vcpkg #60393

Merged
merged 3 commits into from
Feb 4, 2025

Conversation

nirvn
Copy link
Contributor

@nirvn nirvn commented Feb 2, 2025

Description

With this triplet in, simply typing the following commands in linux will build QGIS against Qt6 using vcpkg:

cmake -S . -B ./build-x64-linux -GNinja -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=OFF  -DWITH_VCPKG=ON -DBUILD_WITH_QT6=ON -DWITH_QTWEBKIT=OFF -DWITH_BINDINGS=ON -DVCPKG_TARGET_TRIPLET=x64-linux-dynamic-release -DVCPKG_HOST_TRIPLET=x64-linux-dynamic-release
cmake --build ./build-x64-linux

Note that you'll need to setup vcpkg locally using these instructions: https://github.com/qgis/QGIS/blob/master/.github/actions/setup-vcpkg/action.yml#L18-L22

Other than that, it works quite nicely. On some system, users might face the need to apt install a couple of -dev packages, but these are self-evident when looking at vcpkg logs upon build failure.

@m-kuhn , your work has made this so easy, thanks.

@github-actions github-actions bot added this to the 3.42.0 milestone Feb 2, 2025
Copy link

github-actions bot commented Feb 2, 2025

🧮 Vcpkg update report

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit d6eecb4)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit d6eecb4)

@m-kuhn
Copy link
Member

m-kuhn commented Feb 2, 2025

Nice, could you add a section in the doc too?

@nirvn
Copy link
Contributor Author

nirvn commented Feb 2, 2025

@m-kuhn , good idea, added minimal blob, let me know if you think it's not enough.

INSTALL.md Outdated Show resolved Hide resolved
INSTALL.md Outdated Show resolved Hide resolved
INSTALL.md Outdated Show resolved Hide resolved
Copy link
Member

@m-kuhn m-kuhn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for that 🙌

INSTALL.md Outdated Show resolved Hide resolved
@nirvn nirvn merged commit dd03eeb into qgis:master Feb 4, 2025
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants