简体   繁体   English

C ++项目中的.pro扩展

[英].pro extension in C++ project

I have a C++ project that contains .pro file. 我有一个包含.pro文件的C ++项目。 I can not compile it with visual studio 2010 and 2012. can you help me to select the IDE and compiler that can compile the project? 我无法使用visual studio 2010和2012编译它。你能帮我选择可以编译项目的IDE和编译器吗?

i have seen uint type in the project. 我在项目中看到了uint类型。 uint or unsigned int? uint还是unsigned int? cheers Ehsan 欢呼Ehsan

Most likely this is a qt project file . 这很可能是一个qt 项目文件

Contents should be somewhat similar to this: 内容应该与此类似:

######################################################################
# Automatically generated by qmake (2.01a) 
######################################################################

TEMPLATE = app
TARGET = 
DEPENDPATH += .

CONFIG += console
QT += opengl

# Input
SOURCES += main.cpp

If contents are significantly different (there are no "TEMPLATE", "SOURCES", etc), then it is something else. 如果内容明显不同(没有“模板”,“来源”等),那么它就是其他内容。

To compile this project, you need qt installed and configured on your system, so you can use qmake . 要编译此项目, 需要在系统上安装和配置qt ,因此可以使用qmake You can also download QtCreator , which might be easier for you to use. 您也可以下载QtCreator ,它可能更容易使用。

You need to use qmake tool to generat visual studio solution file from this *.pro file. 您需要使用qmake工具从此* .pro文件生成visual studio解决方案文件。 Qt is a "broad" topic, so if you need to learn qt, I suggest to read through its documentation . Qt是一个“广泛”的话题,所以如果你需要学习qt,我建议你仔细阅读它的文档

if you can not compile thenoriginal project using vs2010 or 2012 you can create a new vc++ project in vs and copy the source code to it, (and link its dependencies...) the special files(such as .pro file) will be correctly created. 如果您无法使用vs2010或2012编译原始项目,您可以在vs中创建一个新的vc ++项目并将源代码复制到它,(并链接其依赖项......)特殊文件(如.pro文件)将正确创建。

now you can start your development 现在你可以开始你的发展了

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM