PRO File Does Not Load Project into Qt Creator
-
I am learning Qt and want to study a Qt application downloaded from Git. The application is very similar to a project I am working on.
The repo includes many directories and files, but in the top level directory is a PRO file. I double click the PRO file and it opens in Qt Creator, but none of the other project files are loaded into Qt Creator. How do I get the project to load into Qt Creator? Is there some training material you can direct me to that explains how this works? Thanks for any help you can give to such an elementary question. -
Hi,
What does that top level pro file contain ?
-
It's a long file. Here is a link: link text
Here is about 1/3 of the file. So far as I can tell all the folders are in the directory at the same level as the PRO file.#CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
CONFIG += sdk_no_version_check
TEMPLATE = app
TARGET = Winnow
INCLUDEPATH += .
INCLUDEPATH += Dialogs
INCLUDEPATH += Utilities
INCLUDEPATH += MacOSRelease:DESTDIR = release
Release:OBJECTS_DIR = release/.obj
Release:MOC_DIR = release/.moc
Release:RCC_DIR = release/.rcc
Release:UI_DIR = release/.uiDebug:DESTDIR = debug
Debug:OBJECTS_DIR = debug/.obj
Debug:MOC_DIR = debug/.moc
Debug:RCC_DIR = debug/.rcc
Debug:UI_DIR = debug/.uiQT += widgets
QT += concurrent
QT += xmlpatterns
#QT += openglHEADERS += Cache/mdcache.h
HEADERS += Cache/tshash.h
HEADERS += Cache/imagecache.h
HEADERS += Cache/imagedecoder.h
HEADERS += Dialogs/ingesterrors.h
HEADERS += Dialogs/managegraphicsdlg.h
HEADERS += Dialogs/manageimagesdlg.h
HEADERS += Datamodel/buildfilters.h
HEADERS += Datamodel/datamodel.h
HEADERS += Datamodel/filters.h
HEADERS += Dialogs/aboutdlg.h
HEADERS += Dialogs/appdlg.h
HEADERS += Dialogs/copystyledlg.h
HEADERS += Dialogs/ingestdlg.h
HEADERS += Dialogs/loadusbdlg.h
HEADERS += Dialogs/managetilesdlg.h
HEADERS += Dialogs/patterndlg.h
HEADERS += Dialogs/preferencesdlg.h
HEADERS += Dialogs/renamedlg.h
HEADERS += Dialogs/saveasdlg.h
HEADERS += Dialogs/testaligndlg.h
HEADERS += Dialogs/workspacedlg.h
HEADERS += Dialogs/tokendlg.h
HEADERS += Dialogs/updateapp.h
HEADERS += Dialogs/zoomdlg.h
HEADERS += Effects/effects.h
HEADERS += Effects/graphicseffect.h
HEADERS += Embellish/embel.h
HEADERS += Effects/graphicsitemeventfilter.h
HEADERS += Effects/interpolate.h
HEADERS += Effects/REF_imageblitz_effects.h
HEADERS += Embellish/embelexport.h
HEADERS += Embellish/Properties/embelproperties.h
HEADERS += File/bookmarks.h
HEADERS += File/fstree.h
HEADERS += Image/cacheimage.h
HEADERS += Image/imagealign.h
HEADERS += Image/pixmap.h
HEADERS += Image/thumb.h
#HEADERS += Image/tiffhandler.h
HEADERS += ImageFormats/Canon/canon.h
HEADERS += ImageFormats/Canon/canoncr3.h
HEADERS += ImageFormats/Dng/dng.h
HEADERS += ImageFormats/Fuji/fuji.h
#rgh remove heic
win32:HEADERS += ImageFormats/Heic/heic.h
win32:HEADERS += ImageFormats/Heic/heif.h
win32:HEADERS += ImageFormats/Heic/de265.h
HEADERS += ImageFormats/Jpeg/jpeg.h
HEADERS += ImageFormats/Nikon/nikon.h
HEADERS += ImageFormats/Olympus/olympus.h
HEADERS += ImageFormats/Panasonic/panasonic.h
HEADERS += ImageFormats/Sony/sony.h
HEADERS += ImageFormats/Tiff/tiff.h#HEADERS += Lcms2/lcms2.h
#HEADERS += Lcms2/lcms2_plugin.hHEADERS += Main/dockwidget.h
HEADERS += Main/global.h
HEADERS += Main/mainwindow.h
HEADERS += Main/qtlocalpeer.h
HEADERS += Main/qtlockedfile.h
HEADERS += Main/qtsingleapplication.h
HEADERS += Main/widgetcss.h
HEADERS += Metadata/exif.h
HEADERS += Metadata/exiftool.h
HEADERS += Metadata/irb.h
HEADERS += Metadata/gps.h
HEADERS += Metadata/ifd.h
HEADERS += Metadata/iptc.h
HEADERS += Metadata/imagemetadata.h
HEADERS += Metadata/metadata.h
HEADERS += Metadata/metareport.h
HEADERS += Metadata/xmp.h
#HEADERS += Metadata/ExifTool.h
#HEADERS += Metadata/ExifToolPipe.h
#HEADERS += Metadata/TagInfo.h
HEADERS += PropertyEditor/preferences.h
etc, etc, etc, -
I might have misunderstood your original issue.
Do you means that the files listed in the your
.pro
file are not shown ?By the way, which Qt Creator version is that ?
-
Sorry to reply so late. For some reason I am not being notified even though I have selected "Watching".
Qt Creator 14.0.1
Yes, when I double click the PRO file, it opens a project but none of the files listed open.
I want to build the project and experiment with changes in some of the files. -
Can you post a screenshot of what you have ?
I just tested it with a fairly complex project and theProjects
view is showing things correctly. -
I am not sure what I did, but now when I open the project it does show all the files.
The problem now is that it generates a zillion errors when I try to Run.
Here is a screen shot that shows it cannot find QtWidgets. That may mean the install of Qt did not work. I just successfully ran the Qt Maintenance Tool, which indicates the installation was OK. Here is a screen shot of part of Qt Creator. -
From the screenshot I see that qmake cannot find
xmlpatterns
. Make sure you have installed that module.By the way, is there a readme stating how to build this project? Did you follow it?
-
From the screenshot I see that qmake cannot find
xmlpatterns
. Make sure you have installed that module.By the way, is there a readme stating how to build this project? Did you follow it?
There is no file on how to build the project.
I think the more fundamental problem is that the build cannot find lots of Qt components, for example QtWidgets. That seems to imply that there is a problem with the installation of Qt or there is a need to provide information about where Qt components are located. But I don't know. All I know is that when I look through the files there are lots of errors that say components can't be found. What I would like to find is some Qt documentation on how to take a Git repository and build the project.
-
Which version of Qt are you using ?
How did you install it ?
If Qt 6, then QtXmlPattern is not available anymore so you need to install Qt 5.
Which OS are you using ? -
Which version of Qt are you using ?
How did you install it ?
If Qt 6, then QtXmlPattern is not available anymore so you need to install Qt 5.
Which OS are you using ? -
@SGaist
Qt 6.7.2
Qt Creator 14.0.1
Build using the Qt installation https://doc.qt.io/qtcreator/creator-how-to-install.html
Updated installation using the Qt Maintenance Tool.
Win 10 x64@dclark064 said in PRO File Does Not Load Project into Qt Creator:
Qt 6.7.2
Then you won't have luck with the app you're trying to compile as it needs Qt5 due to xmlpatterns