<type_traits> file not found while building qwt6.1.4
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?
Re: <type_traits> file not found while building qwt6.1.4
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
Re: <type_traits> file not found while building qwt6.1.4
Quote:
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.
Re: <type_traits> file not found while building qwt6.1.4
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.
Re: <type_traits> file not found while building qwt6.1.4
Again: an error in qglobal.h is totally unrelated to whatever Qwt version you are using.
Uwe
Re: <type_traits> file not found while building qwt6.1.4
Quote:
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 :confused:.