[Solved]Why I can't build any project which was downloaded from internet in Qt Creator



  • I can build my own project well,but when I built the project which was downloaded from internet,I failed and Qt Creator showed no message for me.
    I use Qt Creator 2.4.1 in Windows.



  • There is no way to tell, based on just the information you give us.



  • [quote author="Andre" date="1346764930"]There is no way to tell, based on just the information you give us. [/quote]
    When I created a project and copied the files from downloaded project to my own project,my own project was built well.But if I directly open .pro file from downloaded project,nothing will happen when I build it.



  • Right. You already said so. But you are not showing us what program you want to build, how that .pro files looks, etc. Should we just magically know such things? So again: no way to tell.



  • [quote author="Andre" date="1346766229"]Right. You already said so. But you are not showing us what program you want to build, how that .pro files looks, etc. Should we just magically know such things? So again: no way to tell.[/quote]
    I want to build Qt Gui Application for Windows.Because many .pro files I have opened,now I give a sample
    @######################################################################

    Automatically generated by qmake (2.01a) to 28. sep 16:43:38 2006

    ######################################################################

    TEMPLATE = app
    TARGET =
    DEPENDPATH += .
    INCLUDEPATH += .

    Input

    HEADERS += sdiwindow.h
    SOURCES += main.cpp sdiwindow.cpp
    RESOURCES += images.qrc
    @



  • sorry,Qt Creator actually gives me message when I build.here is

    Cannot find file: f:\library\Documents\大学学习\Qt\foundations of Qt 例子\Chapter04\sdi\sdi.pro.
    11:05:20: The process "d:\qtsdk\desktop\qt\4.8.1\msvc2010\bin\qmake.exe" exited with code 2.
    Error while building project sdi (target: Desktop)
    When executing build step 'qmake'



  • Help



  • [quote author="nimingzhe2008" date="1346895424"]Help[/quote]
    Practice some patience. Allow at least a couple of days before you "kick" your topic.



  • Now I understand.I correct the path of the .pro file,then it works well.There should be no space and non-English character in the path.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.