• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Qt4 (Could not find mkspecs)

kr651129

Well-Known Member

Thanks: 7
Messages: 332

#1
I'm trying to write a GUI with qt4 and it's not working for me.

Code:
$ export QMAKESPEC=g++
$ qmake-qt4
Could not find mkspecs for your QMAKESPEC(g++) after trying:
        /usr/local/share/qt4/mkspecs
Error processing project file: /usr/home/kclark/workspace/pkgmgr/pkgmgr.pro
I've googled the problem and seem to be coming up short for answers
 

avilla@

Well-Known Member
Developer

Thanks: 57
Messages: 258

#2
kr651129 said:
Code:
$ export QMAKESPEC=g++
Why are you defining QMAKESPEC? It already defaults to the one used to build Qt:

Code:
lrwxr-xr-x  1 root  wheel  40 Aug  9 20:35 /usr/local/share/qt4/mkspecs/default ->
/usr/local/share/qt4/mkspecs/freebsd-g++
Of course, it will be freebsd-clang if you have built Qt with Clang.

Anyway, there is no g++ QMAKESPEC, as you can see browsing /usr/local/share/qt4/mkspecs.
 
Top