Сделал как тут написано (http://lorcode.org/wiki/Getting_started_with_Qt_and_Premake) , а в итоге получаю:
$ ./premake4 gmake
Injecting --to
Building configurations...
Running action 'gmake' ...
Uses Qt!
Uses QtGui!
Uses QtCore!
Uses QtGui!
Uses QtCore!
Found Qt project pat
./qt-support.lua:105: attempt to index local 'f' (a nil value)
stack traceback:
./qt-support.lua:105: in function 'typedetector'
./qt-support.lua:231: in function 'writecodegenrules'
./qt-support.lua:533: in function 'onproject'
[string "premake.action = { }..."]:100: in function 'call'
[string "local scriptfile = "premake4.lua"..."]:79: in function <[string "local scriptfile = "premake4.lua"..."]:23>
ЧЯДНТ ?