how to specify search directory for source code build

Senyokbalgul

I am trying to install Jom (http://wiki.qt.io/Jom) for C++. When I type in qmake -r in cmd, I get the error Project MESSAGE: Cannot build jom with Qt version 4.8.7. Project ERROR: Use at least Qt 5.2.0.. This is because I have PyQt version 4.8.7 and Qt version 5.8.0 both installed. When building Jom, Jom searches for in the wrong Qt folder. How can I fix this?

Benjamin T

If you have multiple version of Qt installed, you also have multiple version of qmake. You can check which qmake you are running by using where qmake on Windows, it will output a list of qmake executable available in your path, the first one in the list will be the one executed when running qmake.

For instance:

C:\>where qmake
C:\Qt\5.8\msvc2015\bin\qmake.exe
C:\Qt\5.6\msvc2015\bin\qmake.exe

If the first one, is not the one you want, you can run it by using its complete path:

C:\>C:\Qt\5.6\msvc2015\bin\qmake.exe -version
QMake version 3.0
Using Qt version 5.6.2 in C:/Qt/5.6/msvc2015/lib

If the qmake and Qt version you want is not in your PATH, you can use the scripts provided by Qt to setup a valid environment. These are available in the Start menu as Qt 5.8 64-bit for Desktop (MSVC 2015) (change according to your installation), or you can use them directly by executing qtenv2.bat (e.g C:\Qt\5.8\msvc2015\bin\qtenv2.bat).

If you are using MinGW you are all set, but if you are using MSVC you need also to run vcvarsall.bat, which can be found in your Visual installation folder.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Composer how to specify install directory

From Dev

How to include build directory as source directory in intellij when compiling with gradle

From Dev

How to search in the source code for a string with php?

From Dev

How do I specify a different target directory install for source files in Nuget?

From Dev

How to specify sandbox directory for runhaskell?

From Dev

How to tell atom that a directory includes project source code?

From Dev

How can I build ejabberd source code in eclipse

From Dev

How to build docker source code after modifying it?

From Dev

How can I build KDE Dolphin from its source code?

From Dev

how to find a search term in source code

From Dev

How to generate on the fly Java source code to build with Gradle in Android Studio?

From Dev

SBT: How to refer to other project source code in build.sbt?

From Dev

How to package source code from outside the project directory with Cargo?

From Dev

How can I search the ubuntu source code?

From Dev

How to search the entire Flutter source code in android studio or vscode

From Dev

Specify a directory as package source

From Dev

How to make a maven build fail if source code contains a keyword / regex

From Dev

How can I search the ubuntu source code?

From Dev

How to apply a patch on upstream source code while snapcraft build?

From Dev

How to build libssl.a for iOS from source code?

From Dev

How do I specify a different target directory install for source files in Nuget?

From Dev

How to search for C# source code files in Windows File Explorer?

From Dev

How to search efficiently for a list of strings in a big code directory

From Dev

How to download source code of package_name into specified directory ?

From Dev

How to tell atom that a directory includes project source code?

From Dev

How to build Python 3.4.3 source code with pygame to exe?

From Dev

How to debug why source code labeling fails in VSTS build?

From Dev

How to build axis2c Unofficial source code

From Dev

How to specify Android NDK CMake build directory

Related Related

  1. 1

    Composer how to specify install directory

  2. 2

    How to include build directory as source directory in intellij when compiling with gradle

  3. 3

    How to search in the source code for a string with php?

  4. 4

    How do I specify a different target directory install for source files in Nuget?

  5. 5

    How to specify sandbox directory for runhaskell?

  6. 6

    How to tell atom that a directory includes project source code?

  7. 7

    How can I build ejabberd source code in eclipse

  8. 8

    How to build docker source code after modifying it?

  9. 9

    How can I build KDE Dolphin from its source code?

  10. 10

    how to find a search term in source code

  11. 11

    How to generate on the fly Java source code to build with Gradle in Android Studio?

  12. 12

    SBT: How to refer to other project source code in build.sbt?

  13. 13

    How to package source code from outside the project directory with Cargo?

  14. 14

    How can I search the ubuntu source code?

  15. 15

    How to search the entire Flutter source code in android studio or vscode

  16. 16

    Specify a directory as package source

  17. 17

    How to make a maven build fail if source code contains a keyword / regex

  18. 18

    How can I search the ubuntu source code?

  19. 19

    How to apply a patch on upstream source code while snapcraft build?

  20. 20

    How to build libssl.a for iOS from source code?

  21. 21

    How do I specify a different target directory install for source files in Nuget?

  22. 22

    How to search for C# source code files in Windows File Explorer?

  23. 23

    How to search efficiently for a list of strings in a big code directory

  24. 24

    How to download source code of package_name into specified directory ?

  25. 25

    How to tell atom that a directory includes project source code?

  26. 26

    How to build Python 3.4.3 source code with pygame to exe?

  27. 27

    How to debug why source code labeling fails in VSTS build?

  28. 28

    How to build axis2c Unofficial source code

  29. 29

    How to specify Android NDK CMake build directory

HotTag

Archive