Error QApplication: no such file or directory

前端 未结 11 1820
挽巷
挽巷 2021-01-30 06:44

I have installed C++SDK that have Qt but when I try compiling a code linking QApplication it gives me the error:

Error QApplication: no such file or directory
         


        
11条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-30 06:55

    Please make sure that the version of qmake you are using corresponds to the version of QT you want to use.

    To be sure, you can just run :

    $qmake -v
    

    Your problem seems to be a symptom of a version conflict between QT 3 and 4, as can be seen here :

    http://lists.trolltech.com/qt4-preview-feedback/2005-11/thread00013-0.html

    To fix this, you can either delete your old install of QT, or specifically point to qmake-qt4 in your Makefile.

提交回复
热议问题