qmake using incorrect paths to Qt installation on linux

I compiled qt (qt-everywhere-opensource-src-4.7.4) using:

./configure --prefix=/edrive/local/qt
gmake && gmake install

When I want to make new project with qmake in creates Makefile with wrong include paths and points to wrong binaries and library directories:

> qmake -query "QT_INSTALL_PREFIX"
/edrive/local

in Makefile

includes:

-I/edrive/local/include/QtCore
-I/edrive/local/include/QtGui
-I/edrive/local/include

libs:

-L/edrive/local/lib

uic:

/edrive/local/bin/uic

These are clearly wrong as qt was installed in /edrive/local/qt.

Is there a way to fix this short of manually modifying qt config files? Am I doing something wrong?

Btw, it's selecting correct qmake:

> which qmake
/edrive/local/bin/qt/qmake

Answers


You can change that value with:

# qmake -set VARIABLE VALUE

I.e. in your case with:

# qmake -set QT_INSTALL_PREFIX /edrive/local/qt

Although judging from your qmake location, you're calling wrong qmake. Try

/edrive/local/qt/bin/qmake -query "QT_INSTALL_PREFIX"

I have a feeling you have 2 Qt installations aside.


Need Your Help

Double dispatch in C#?

c# design-patterns language-features double-dispatch

I have heard/read the term but don't quite understand what it means.

Set button focus next to field so that it uses either Enter or Mouse click with jQuery

php javascript jquery

I want to be able to either Press the enter key or click the mouse to submit the info in the inputbox.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.