Answer the question
In order to leave comments, you need to log in
How to compile a library for Qt on Windows?
Trying to compile this library: https://github.com/nitroshare/qhttpengine on Windows.
I do everything as it is written in the Readme - I run cmake -G "NMake Makefiles" ..
it and get a bunch of fatal errors:
The C compiler "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe" is not able to compile a simple test program.
NMAKE: fatal error u1077 finished with code "0xffffff" и "0x2".
Answer the question
In order to leave comments, you need to log in
Just do not write the path to the bin folder. You need to run a studio *.bat file that sets up all studio environment variables.
0) Run the *.bat-file of the studio with the platform you need (x86/amd64).
1) Run *.bat-file Qt, which sets up variables for Qt.
2) Run after that cmake-gui. Better choose "Nmake Makefiles" so that you don't start the studio later.
3) Carry out assembly.
______________
The screenshot shows the paths associated with Qt. And so, they were defined automatically only from that, environment variables were assigned.
UPD: build succeeded. Just checked. Even nmake install
works.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question