2016-09-28 136 views
0

我做一个DLL,用C++编写与Qt创建者(但内部没有Qt的东西,纯国产C++),并使用标准的qmake + MinGW的/ G ++编译过程。我的朋友是做框架/主要软,而他使用Visual Studio Express的2015年,和他应该使用的是在我的DLL。正因为如此,我想在Qt Creator中为我的项目使用相同的Visual Studio编译器。DLL项目:从Qt的+ MinGW的迁移到Visual Studio

所以我注意到Qt Creator自动检测到了Visual Studio C++ 14编译器,我相信它是Visual Studio Express 2015的附件。当我用该编译器创建一个工具包并将其设置为使用该工具包进行编译时,我得到一个提示“制作”步骤,在我的Qt Creator中安装的bin文件夹调用JOM。我不知道这是什么,我得到以下输出(见下文)。

我不知道该怎么在这里做。我也试图从NMAKE可执行文件在我的Visual Studio安装直接创建一个编译器,然后用它 - 但我得到一个非常类似的错误“ - ”无法被识别为一个选项。任何提示都非常感谢!

12:56:27: Starting: "C:\Qt\qtcreator-3.1.1\bin\jom.exe" 
Usage: jom @commandfile 
     jom [options] [/f makefile] [macro definitions] [targets] 

nmake compatible options: 
/A build all targets 
/D display build information 
/E override environment variable macros 
/F <filename> use the specified makefile 
/G display included makefiles 
/H show help 
/I ignore all exit codes 
/K keep going - build unrelated targets on error 
/N dry run - just print commands 
/NOLOGO do not print logo 
/P print makefile info 
/R ignore predefined rules and macros 
/S silent mode 
/U print content of inline files 
/L same as /NOLOGO 
/W print the working directory before and after other processing 
/X <filename> write stderr to file. 
/Y disable batch mode inference rules 

jom only options: 
/DUMPGRAPH show the generated dependency graph 
/DUMPGRAPHDOT dump dependency graph in dot format 
/J <n> use up to n processes in parallel 
/KEEPTEMPFILES keep all temporary files 
/VERSION print version and exit 
Error: unknown command line option '-' in arguments: '/L-j4' 
12:56:27: The process "C:\Qt\qtcreator-3.1.1\bin\jom.exe" exited with code 128. 
Error while building/deploying project Ford_DAT_framework_DLL_as_plugin (kit: MVS Ford) 
When executing step 'Make' 
12:56:27: Elapsed time: 00:04. 

回答

0

所以我用QMAKE -tpvc以生成在Visual Studio Express的2015年其中我的朋友使用几乎立即编制了VCproj文件。我想这对我的问题是一个有效的解决方案!

相关问题