T
T
TAnonim2016-08-10 16:01:44
Programming
TAnonim, 2016-08-10 16:01:44

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.

Next come nmake errors -
NMAKE: fatal error u1077 finished with code "0xffffff" и "0x2".

The path to the visual studio bin folder is in Path, cmake is also in Path.
What can be wrong? This happens not only with this library, I suspect I'm doing something wrong...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artyom Sveshnikov, 2016-08-10
@TAnonim

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

R
Rou1997, 2016-08-10
@Rou1997

Better collect MinGW.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question