简体   繁体   中英

.pro extension in C++ project

I have a C++ project that contains .pro file. 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?

i have seen uint type in the project. uint or unsigned int? cheers Ehsan

Most likely this is a qt project file .

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 . You can also download QtCreator , which might be easier for you to use.

You need to use qmake tool to generat visual studio solution file from this *.pro file. Qt is a "broad" topic, so if you need to learn qt, I suggest to read through its documentation .

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.

now you can start your development

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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