1. Beginner
Join Date
May 2021
Posts
4
Thanks
2
Qt products
Platforms

Hi, I'm trying to build qwt.lib and qwtd.lib from source files on Windows 10, using Qt 5.15 MSVC 2019 kit. I have Windows 10 SDK also installed.
After running qmake, I'm running nmake. nmake can not find the file <type_traits>. This file is located in C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\in clude which is in the PATH. This file is being called from C:\Qt\5.15.4\msvc2019\include\QtCore\qglobal.h.

Running into build issues even with Qt Creator -> Build option after running qmake once.

How to solve this issue?
Last edited by ManiQt; 21st May 2021 at 12:13.

2. Uwe
Expert
Join Date
Feb 2006
Location
Munich, Germany
Posts
3,278
Thanked 872 Times in 820 Posts
Qt products
Platforms

As the include is made in qglobal.h this problem should have nothing to do with Qwt and you will have it with any type of Qt application.

HTH,
Uwe

3. ## The following user says thank you to Uwe for this useful post:

ManiQt (24th May 2021)

4. Guru
Join Date
Mar 2009
Location
Brisbane, Australia
Posts
7,734
Thanks
13
Thanked 1,610 Times in 1,537 Posts
Qt products
Platforms
Wiki edits
17

Originally Posted by ManiQt
How to solve this issue?
Are you running this from a command prompt set up by the batch file that is supplied with the Microsoft compiler (vcvars32.bat or vsvar32.bat or something like that)? Include files are not searched on the PATH. The Microsoft compiler uses a whole bunch of environment variables, one of which probably sets the include search path.

5. ## The following user says thank you to ChrisW67 for this useful post:

ManiQt (24th May 2021)

6. Beginner
Join Date
May 2021
Posts
4
Thanks
2
Qt products
Platforms

Hi Uwe and Chris, this problem didn't come up by using 6.2 version of qwt somehow. I tried building 6.1.4 on Qt Creator and CMD either of them gave compilation errors. In this forum I guess someone suggested to use qwt 6.2 instead and it worked. This time I have only tried on Qt Creator and build was successful with some handful of warnings regarding qwt_math.h as I recollect.

To Chris- I tried regular method (nmake in Path) and also using vcvars32.bat method. Error occurred either way.

7. Uwe
Expert
Join Date
Feb 2006
Location
Munich, Germany
Posts
3,278
Thanked 872 Times in 820 Posts
Qt products
Platforms

Again: an error in qglobal.h is totally unrelated to whatever Qwt version you are using.

Uwe

8. Beginner
Join Date
May 2021
Posts
4
Thanks
2
Qt products
Platforms

Originally Posted by Uwe
Again: an error in qglobal.h is totally unrelated to whatever Qwt version you are using.

Uwe
Yes, I understood qglobal.h is related to Qt and not Qwt. I am just clarifying what fixed the issue although the solution is very unnatural .