Talk:Visual Studio Add-in: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
Line 63: Line 63:
         Stop.
         Stop.


I work on Win7 64bit machine with VS2013 (32bit), i tried with Qt 5.5.0 (32 and 64bit) and it doesn't work.
I work on Win7 64bit machine with VS2013 (32bit). I tried with Qt 5.5.0 (32 and 64bit) and with a prompt consol from VSTools(32 and 64bit) and it doesn't work.
Anyone can explain me this error ? Should i have  to install a 32bit Win 7 ?  
Anyone can explain me this error ? Should i have  to install a 32bit Win 7 ?  


Thx
Thx

Revision as of 13:40, 6 August 2015

I cloned the git repository:

Following the instructions for Qt5 and VS2013 runs into problems after the first couple of steps:


Building the addin

Open a command shell with a Qt build environment (Visual Studio built-in prompt configured with Qt in appropriate environment variables, 32 or 64-bit) and cd into your add-in source directory.

Execute the following commands:

cd Qt4VS2003

createUserFiles.bat

The above two steps work

This sets up reference paths and debug settings.

cd ..qmake this does not work as there is nothing to qmake in the directory

nmake

cd ..devenv qt5appwrapper2012.sln /useenv /Build release this is in the tools subdirectory

cd ..

qmake -r

nmake

None of the above section works

Problem during nmake

I followed instructions, but during the nmake execution i have a fatal message :

       C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC>cd C:\msysgit\git\vstools\Qt4VS2003
       C:\msysgit\git\vstools\Qt4VS2003>createUserFiles.bat
       C:\msysgit\git\vstools\Qt4VS2003>cd ..\tools
       C:\msysgit\git\vstools\tools>qmake
       C:\msysgit\git\vstools\tools>nmake
       Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
       Copyright (C) Microsoft Corporation. Tous droits réservés.
       cd qmakefilereader\ && ( if not exist Makefile C:\Qt\Qt5.5.0_32bit\5.5\msvc2013\bin\qmake.exe C:\msysgit\git\vstools\tools\qmakefilereader\
       qmakefilereader.pro -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe" -f Makefile
       Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
       Copyright (C) Microsoft Corporation. Tous droits réservés.
       "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe" -f Makefile.Release
       Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
       Copyright (C) Microsoft Corporation. Tous droits réservés.
       
       link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:CONSOLE "
       /MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' 
       language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:..\..\Qt4VS2003\Qt4VSAddin\Release\qmakefilereader.exe @C:\Users\ADMINI~1\AppData\Local\Temp\nmDA66.tmp
       Qt5Core.lib(Qt5Core.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
       NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\link.EXE"' : return code '0x458'
       Stop.
       NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2'
       Stop.
       NMAKE : fatal error U1077: 'cd' : code retour '0x2'
       Stop.

I work on Win7 64bit machine with VS2013 (32bit). I tried with Qt 5.5.0 (32 and 64bit) and with a prompt consol from VSTools(32 and 64bit) and it doesn't work. Anyone can explain me this error ? Should i have to install a 32bit Win 7 ?

Thx