我正试图通过布隆图的指挥线,为我编造一个Qt应用程序,“它”给我“提供”/usr/bin。 我在PATH中给出了Qt/bin的道路。 如何将面包车道改为Qt/bin。
提前感谢。
我正试图通过布隆图的指挥线,为我编造一个Qt应用程序,“它”给我“提供”/usr/bin。 我在PATH中给出了Qt/bin的道路。 如何将面包车道改为Qt/bin。
提前感谢。
你的问题难以理解,因此,我很想总结一下我所说的话:
There is a qmake
installed into /usr/bin/qmake
and a different qmake
installed in /path/to/Qt/bin/qmake
. You want to use the /path/to/Qt/bin/qmake
. You have added /path/to/Qt/bin
to your PATH
environment variable but calling which qmake
still returns /usr/bin/qmake
.
有几个原因:
/path/to/Qt/bin/qmake
may not allow you to execute it. Check that ls -l /path/to/Qt/bin/qmake
shows that you have x
permission./path/to/Qt/bin/qmake
may not allow you to traverse the directory. If the ls -l
output from the previous step worked, this is not your problem./path/to/Qt/bin
is one of the first entries in your PATH
environment variable. The shell searches directories from the first to the last, in order, to find executables.PATH
after running qmake
, the shell will have hashed the location of the qmake
executable internally as a performance optimization. Executables almost never move during a shell session, so this is a useful way to reduce useless system calls. Check the output of hash -t qmake
to see if this is what happened. Or just execute hash -r
to force the shell to forget all paths. (This has no serious consequences.)I have a qmake build of a few libraries and an app which depends on them. Using the subdirs template I m able to get qmake to output a .sln file which works almost to my liking in VC2008. Though I ...
I have a shared library (with no QT dependency) [library B] that links to another shared library (with no QT dependence as well) [library A]. I am using Qmake and QT Creator 1.3. The problem is that ...
Im using Qmake to build a shared library on Ubuntu 9.10 This shared library (A) has a dependency on another shared library (B). project B has been successfully built. in the .pro file for project A,...
I have a project that links to a number of shared libraries. Lets say project A depends on projects B and C Ideally, I want to impose the following dependencies in my project file: Rebuild project ...
I m using qmake for building a project of mine. I have been trying to set the DESTIR variable of qmake with a value that depend of the compiler used. Actually, I want that the binary of my project, ...
I am trying to add a unit test to a group of other tests. All the tests are in their own subdirectories, each with it s own .pro file and the .cpp file which contains the tests themselves. Running ...
I have a large project with one qmake project file defining all project components using a subdirs template. Currently I define translation files in the qmake files of each sub-project. This results ...
I have a Qt-project that builds a dll/shared-library and another Qt-project that tests the library. Is there any good way to have qmake copy the dll to the output-folder of the test-project?