English 中文(简体)
如何将面包车道改为[Qt-dir/bin/]。
原标题:How to change the qmake path in to [Qt-dir/bin/].
  • 时间:2012-01-16 06:38:38
  •  标签:
  • qmake

我正试图通过布隆图的指挥线,为我编造一个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.

有几个原因:

  • The permissions on /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.
  • The permissions on any directory above /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.
  • Make sure /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.
  • If you added the directory to your 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.)




相关问题
ld linkage problems: /usr/bin/ld: cannot find [libraryname]

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,...

Qmake project dependencies (linked libraries)

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 ...

Configuring variable DESTDIR in qmake

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, ...

Qt qmake - how to stop it adding rules to delete the target

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 ...

qmake: How do I copy .dll/.so s to the output directory?

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?

热门标签