July 18, 2011

mprakash mprakash
Lab Rat
23 posts

VS plugin and qmake

 

Hello All,
I am kind of confused why do i get different vcxproj file if I generate it via MSVS plugin and if I generate it from command prompt using qmake.
I see when I use plugin and and try to load (Open Qt project file.. .pro) it says in output window
“—- (qmake) : Arguments: -tp vc “myProject.pro” -o “myProject.vcxproj” QMAKE_INCDIR_QT=$(QTDIR)\\include QMAKE_LIBDIR_QT= QMAKE_LIBDIR=$(QTDIR)\\lib QMAKE_UIC=$(QTDIR)\\bin\\uic.exe QMAKE_MOC=$(QTDIR)\\bin\\moc.exe QMAKE_RCC=$(QTDIR)\\bin\\rcc.exe QMAKE_QMAKE=$(QTDIR)\\bin\\qmake.exe

if I use exact same thing from command prompt using qmake I get different vcxproj file? or If I do simple qmake -tp vc it is again different than the vcxproj file generated by plugin. can any one please let me know why is this happening what is so special this plugin does for project file?

4 replies

July 18, 2011

changsheng230 changsheng230
Lab Rat
128 posts

Any bad effects from the different vcxproj files? I seldom take care of vcxproj files when using vs plugin. pro file is more important.

 Signature 

Chang Sheng
常升

July 18, 2011

mprakash mprakash
Lab Rat
23 posts

yup pro file is important and you will not care if you are using Creator, but you will hve to take care if you are using MSVS IDE, because if something is messed in vcxproj file then your build will also be messed up. and unfortunately this is what happening with me at the moment :(

July 18, 2011

changsheng230 changsheng230
Lab Rat
128 posts

I am also using MSVS IDE. You can try import your project from MSVS menu “Qt” —> Open Qt project file. Then other ms files will be udpated.

mprakash wrote:
yup pro file is important and you will not care if you are using Creator, but you will hve to take care if you are using MSVS IDE, because if something is messed in vcxproj file then your build will also be messed up. and unfortunately this is what happening with me at the moment :(

 Signature 

Chang Sheng
常升

July 18, 2011

mprakash mprakash
Lab Rat
23 posts

The problem is we can not use vs plug-in due to some historical issue.
and have to use qmake from command prompt:(

 
  ‹‹ View multiple images in a cell of a QTableView      [Solved] QString unicode conversion to utf8 ››

You must log in to post a reply. Not a member yet? Register here!