How to generate 64-bit Visual Studio projects from qmake

I am using Qt Creator to create some shared library and application projects so that I can easily build them on Windows and Linux. On Windows, some of us prefer using Visual Studio so I want to generate Visual Studio solution and project files from the Qt .pro files using <strong>qmake -tp vc -r file.pro</strong>. Everything works exactly as expected except that the generated Visual Studio solution and projects only contain 32-bit build configurations and I need 64-bit configurations. It's not a big deal to create the 64-bit configuration in Visual Studio but it would be an easy step to overlook for somebody. I'm wondering if there's a way to do it automatically by either adding something to my .pro files or as an argument to qmake?


Run this command from the Visual Studio Command Shell Native x64.

If you need this functionality in any sort of batch files etc, just invoke appropriate bat file from VS Command Tools, like vcvarsx86_amd64.bat or vcvarsx86.bat to set a proper environment


  • Rewrite QDataStream operator >> () equivalent into to C++ without Qt
  • Conversion of nat to Q in Coq
  • How to disable Turbolinks for single page in a shared view?
  • How do I resolve an “invalid quantifier” error with regexp in javascript?
  • qmake: using defines as conditionals
  • Focus Traversal Policy in TitledPane
  • ThreadPool behaviour: not growing from minimum size
  • Cross compiling Qt 5
  • Is there an HTML code that can make my background picture transparent and my text non-transparent?
  • ASP.NET MVC2 Error: No parameterless constructor defined for this object
  • Does Apportable support to build library binary (.a/.so)?
  • Compiling dlib on OS X
  • SetWindowsHookEx does not react on media keys
  • Jenkins: FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection
  • MySQL Order by column = x, column asc?
  • PHP buffered output depending on server setting?
  • Functions in global context
  • Allowing both email and username for authentication
  • Switching to Release Build causes runtime error in Web Reference
  • Get one-time binding to work for ng-if
  • Is possible to count alias result on mysql
  • Excel - Autoshape get it's name from cell (value)
  • How to set/get protobuf's extension field in Go?
  • How to add a column to a Pandas dataframe made of arrays of the n-preceding values of another column
  • Check if a string to interpolate provides expected placeholders
  • Sending data from AppleScript to FileMaker records
  • Cassandra Data Model
  • Trying to switch camera back to front but getting exception
  • Importing jscolor library in angular 2
  • How do you troubleshoot character encoding problems?
  • QuartzCore.framework for Mono Develop
  • RestKit - RKRequestDelegate does not exist
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • How do I rollback to a specific git commit
  • Is there a mandatory requirement to switch app.yaml?
  • Traverse Array and Display in markup
  • Why joiner is not used after Sequence generator or Update statergy
  • Django query for large number of relationships
  • Busy indicator not showing up in wpf window [duplicate]
  • Android Heatmap on canvas or ImageView