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

question: compiling using visual studio #4111

Open
ghost opened this issue Dec 2, 2024 · 4 comments
Open

question: compiling using visual studio #4111

ghost opened this issue Dec 2, 2024 · 4 comments
Labels
documentation Issue related to the Tiled Manual.

Comments

@ghost
Copy link

ghost commented Dec 2, 2024

Hi

Can you explain where to download Qbs and how to install it in order to compile with visual studio?

afbeelding

Is it possible to update it so we can use visual studio 2022? Visual studio 2017 is incredibly not up to date anymore...

@ghost ghost added the feature It's a feature, not a bug. label Dec 2, 2024
@bjorn
Copy link
Member

bjorn commented Dec 2, 2024

Can you explain where to download Qbs

Since you also need Qt to compile Tiled, I would recommend you use the Qt Online Installer. It always installs Qt Creator, which ships with a qbs.exe. But if you are installing Qt some other way, you can install Qbs also using Chocolatey (choco install qbs).

When you use the Qt Online Installer and want to use Visual Studio 2022 to compile Tiled, you need to make sure to choose a Qt version that is compatible with this compiler.

Is it possible to update it so we can use visual studio 2022? Visual studio 2017 is incredibly not up to date anymore...

Yes, you can also use Qbs to generate a VS 2022 project:

qbs generate -g visualstudio2022

Just note that I don't normally work with Visual Studio, so these generated projects are untested.

@bjorn bjorn added documentation Issue related to the Tiled Manual. and removed feature It's a feature, not a bug. labels Dec 2, 2024
@ghost
Copy link
Author

ghost commented Dec 2, 2024

When you use the Qt Online Installer and want to use Visual Studio 2022 to compile Tiled, you need to make sure to choose a Qt version that is compatible with this compiler.

How I know which version this is?

@bjorn
Copy link
Member

bjorn commented Dec 2, 2024

How I know which version this is?

Can you show a screenshot of the available options?

@ghost
Copy link
Author

ghost commented Dec 2, 2024

How I know which version this is?

Can you show a screenshot of the available options?

I found it!
You need to select custom installation and then MSVC 2022 64-bit .
Maybe this should be added to the documentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Issue related to the Tiled Manual.
Projects
None yet
Development

No branches or pull requests

1 participant