I compile the QHTTPEngine library, on Windows 7 64-bit for qt 5.7. I have installed Visual Studio 2015 Community. In Qt Creator, the following compilers are available to me: Desktop Qt 5.7.0 MSVC2015 64 bit(amd 64) and 64bit 2(x86_amd64) , as well as MinQW 32-bit .

I do everything as described in the Readme. Installed CMake , added to Path, added to the Path also the folder C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin Launched vcvarsall.bat with the x86_amd64 parameter to set up environment variables. Then I run cmake -G "NMake Makefiles" .. on the command line cmake -G "NMake Makefiles" .. - everything is generated. Then, when I run nmake , I nmake bunch of errors from cl.exe with the codes "0x2" and "0xffffff" . Already the second day I can not install.

In this case, everything is compiled and compiled if the x86 parameter is passed to the bat file, but then Qt Creator gives the error QHttpEngine.lib(QHttpEngine.dll):-1: ошибка: LNK1112: Ρ‚ΠΈΠΏ ΠΊΠΎΠΌΠΏΡŒΡŽΡ‚Π΅Ρ€Π° модуля "X86" ΠΏΡ€ΠΎΡ‚ΠΈΠ²ΠΎΡ€Π΅Ρ‡ΠΈΡ‚ Ρ‚ΠΈΠΏΡƒ Ρ†Π΅Π»Π΅Π²ΠΎΠ³ΠΎ ΠΊΠΎΠΌΠΏΡŒΡŽΡ‚Π΅Ρ€Π° "x64" .

Please tell me how to fix the problem. I want to run at least the simplest example.

  • 1) try to clear the solution (In Qt creator, this happens often to cure problems) 2) I would do the following if I were you, reinstall Qt creator and carefully look at what is marked for installation, there is such a crap that it DOES NOT INSTALL the default Linker , poke into sections and make sure that everything is worth what you need 3) Qt creator does not know that you have collected something, you can still try - Xambey
  • look carefully at the build settings and add the compiler you used - Xambey
  • @Xambey Yes, Qt Creator has almost nothing to do with it - it only needs to feed the compiled library. Errors occur on the command line, when compiling, when running the nmake - Nik
  • uh ... well, then check out the makefile, maybe there are problems with it - Xambey
  • @Xambey heh, quite possibly. But I do not know what could be wrong there. Yes, and make file cmake generates fine. Here, it seems the problem is with the compiler. But what exactly - this is the question. - Nik

0