I would like to compile in VS2008 x64 from bat file.
When I compile in VS2008 32 bits I call vsvars32.bat.
What do I need to call to compile in x64?
From the BUILD menu in Visual Studio, select Configuration Manager. From the Active solution platform drop-down list, select New. The New Solution Platform dialog displays. In the Type or select new platform combination box, select x64.
Open Visual Studio. Go to File > Open > Folder… and open the MuseScore checkout folder. Visual Studio will automatically begin to generate a CMake cache, which will include the Visual Studio solution and project files.
Visual Studio enables you to set up your applications to target different platforms, including 64-bit platforms. For more information on 64-bit platform support in Visual Studio, see 64-bit applications. Note. Visual Studio 2022 on Windows is now a 64-bit application.
Nowadays the recommendation is not to use vsvar32.bat
and use SetEnv.cmd
instead to set up your build environment. Pass the /x64
argument to select a 64 bit build environment. This MSDN page has some more information about SetEnv.cmd
.
A simple way is to go in the directory : "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64" and execute the file : "vcvarsamd64.bat"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With