Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can the install path be set for a qt project

Tags:

qt

qt-creator

I'm looking for the equivalent to ./configure --prefix= for qmake. Basically, I want to override the default install/deployment directory. How is this specified with command line qmake? I also use QtCreator to build a lot of my gui projects, and I'd like to know how to do the same thing while building inside of QtCreator. Is there a variable that I can manipulate in the .pro files to do this, or do I change my project settings?

Thanks!

like image 724
dusktreader Avatar asked Jun 02 '11 16:06

dusktreader


1 Answers

For me, it seems that qmake PREFIX=/usr/local doesn't work (try with the source of qtcreator)

So the solution is to use qmake normally, but then, you do

make
INSTALL_ROOT=/usr/local make install
like image 54
Dolanor Avatar answered Oct 07 '22 18:10

Dolanor