Linking against SHARED library on Windows [duplicate] - windows

This question already has an answer here:
CMake linking against shared library on windows: error about not finding .lib file
(1 answer)
Closed 4 years ago.
I'm a bit puzzled by the way that CMake deals with library linking on Windows machine. Below I have a simple CMakeLists.txt file:
cmake_minimum_required (VERSION 3.10)
project (sample)
add_library (quad SHARED quad.cpp)
add_executable (run main.cpp)
target_link_libraries (run PRIVATE quad)
On a Linux/Mac machine, CMake correctly builds the *.so/*.dylib libraries and links the executable against the *.so/*.dylib files. However on a Windows machine it builds the *.dll file and then attempts to link against a *.lib file.
Underneath the hood CMake executes the following command:
>------ Build started: Project: CMakeLists, Configuration: Debug ------
[1/4] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1415~1.267\bin\HostX64\x64\cl.exe /nologo /TP -Dquad_EXPORTS /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\quad.dir\quad.cpp.obj /FdCMakeFiles\quad.dir\ /FS -c C:\Users\UX\Workspace\sample\quad.cpp
[2/4] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1415~1.267\bin\HostX64\x64\cl.exe /nologo /TP /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\run.dir\main.cpp.obj /FdCMakeFiles\run.dir\ /FS -c C:\Users\UX\Workspace\sample\main.cpp
[3/4] cmd.exe /C "cd . && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_dll --intdir=CMakeFiles\quad.dir --manifests -- C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1415~1.267\bin\Hostx64\x64\link.exe /nologo CMakeFiles\quad.dir\quad.cpp.obj /out:quad.dll /implib:quad.lib /pdb:quad.pdb /dll /version:0.0 /machine:x64 /debug /INCREMENTAL kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
[4/4] cmd.exe /C "cd . && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\run.dir --manifests -- C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1415~1.267\bin\Hostx64\x64\link.exe /nologo CMakeFiles\run.dir\main.cpp.obj /out:run.exe /implib:run.lib /pdb:run.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console quad.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
FAILED: run.exe
cmd.exe /C "cd . && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\run.dir --manifests -- C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1415~1.267\bin\Hostx64\x64\link.exe /nologo CMakeFiles\run.dir\main.cpp.obj /out:run.exe /implib:run.lib /pdb:run.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console quad.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
LINK Pass 1: command "C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1415~1.267\bin\Hostx64\x64\link.exe /nologo CMakeFiles\run.dir\main.cpp.obj /out:run.exe /implib:run.lib /pdb:run.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console quad.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\run.dir/intermediate.manifest CMakeFiles\run.dir/manifest.res" failed (exit code 1104) with the following output:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\LINK : fatal error LNK1104: cannot open file 'quad.lib'
ninja: build stopped: subcommand failed.
Build failed.
My question is why does it fail on Windows when the CMake documentation states the following:
target_link_libraries(<target>
<PRIVATE|PUBLIC|INTERFACE> <item>...
[<PRIVATE|PUBLIC|INTERFACE> <item>...]...)
Where item can be A library target name? Shouldn't it have enough information from the target's properties to identify the full path to the compiled library as well as its type (i.e. SHARED) to be able to properly link the executable?

This is how linking works in Windows. You need a foo.lib file to link to foo.dll library. This .lib is produced when .dll itself is linked. You have to distribute .lib files together with library headers.

Related

Building KFR C API with MSVC2017

I am trying to build KFR C API with MSVC2017 according to instructions in README:
with following error
lld-link: error: : undefined symbol: mainCRTStartup
The log from MSVC2017 command prompt:
C:\Users\msd\DSP\kfr\build>cmake -GNinja -DENABLE_CAPI_BUILD=ON
-DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER="C:\Program Files\LLVM\bin\clang-cl.exe" ..
-- The CXX compiler identification is Clang 14.0.6 with MSVC-like command-line
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: C:\Program Files\LLVM\bin\clang-cl.exe
-- Check for working CXX compiler: C:\Program Files\LLVM\bin\clang-cl.exe - broken CMake Error at C:/Program
Files/CMake/share/cmake-3.24/Modules/CMakeTestCXXCompiler.cmake:62
(message): The C++ compiler
"C:\Program Files\LLVM\bin\clang-cl.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/msd/DSP/kfr/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/PROGRA~1/NINJA-~1/ninja.exe cmTC_9cb05 && [1/2] Building CXX object
CMakeFiles\cmTC_9cb05.dir\testCXXCompiler.cxx.obj
[2/2] Linking CXX executable cmTC_9cb05.exe
FAILED: cmTC_9cb05.exe
cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_9cb05.dir
--rc=C:\PROGRA~2\WI3CF2~1\10\bin\100177~1.0\x86\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100177~1.0\x86\mt.exe --manifests -- C:\PROGRA~1\LLVM\bin\lld-link.exe /nologo
CMakeFiles\cmTC_9cb05.dir\testCXXCompiler.cxx.obj /out:cmTC_9cb05.exe
/implib:cmTC_9cb05.lib /pdb:cmTC_9cb05.pdb /version:0.0 /machine:x64
/debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib
gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
comdlg32.lib advapi32.lib && cd ."
LINK Pass 1: command "C:\PROGRA~1\LLVM\bin\lld-link.exe /nologo CMakeFiles\cmTC_9cb05.dir\testCXXCompiler.cxx.obj /out:cmTC_9cb05.exe
/implib:cmTC_9cb05.lib /pdb:cmTC_9cb05.pdb /version:0.0 /machine:x64
/debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib
gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
comdlg32.lib advapi32.lib /MANIFEST
/MANIFESTFILE:CMakeFiles\cmTC_9cb05.dir/intermediate.manifest
CMakeFiles\cmTC_9cb05.dir/manifest.res" failed (exit code 1) with the
following output:
lld-link: error: : undefined symbol: mainCRTStartup
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project. Call
Stack (most recent call first): CMakeLists.txt:23 (project)
-- Configuring incomplete, errors occurred! See also "C:/Users/msd/DSP/kfr/build/CMakeFiles/CMakeOutput.log". See also
"C:/Users/msd/DSP/kfr/build/CMakeFiles/CMakeError.log". You have
changed variables that require your cache to be deleted. Configure
will be re-run and you may have to reset some variables. The following
variables have changed: CMAKE_CXX_COMPILER= C:\Program
Files\LLVM\bin\clang-cl.exe
-- Generating done CMake Warning: Manually-specified variables were not used by the project:
ENABLE_CAPI_BUILD
CMake Generate step failed. Build files cannot be regenerated
correctly.
C:\Users\msd\DSP\kfr\build>
Can anybody help me with this issue?
Thanks a lot

espressif setup: the install.bat file failed

I'm using:
Windows 10 64
Python 2.7.16
Git 2.21.0
Cmake 3.15.1
Ninja 1.10.1
MConf V4.6.0.0-idf-20190628
Toolchain xtensa-esp32-elf-gcc8_2_0-esp32-2019r1-win32 (zip file)
To the PATH variable I added these paths:
C:\esp\cmake\bin
C:\Program Files\Git\bin
C:\Python27
C:\Python27\Scripts
C:\esp\toolchain\xtensa-esp32-elf\bin
C:\esp\mconf-v4.6.0.0-idf-20190628-win32
C:\esp\esp-idf\tools
C:\esp\cmake
I have created a new variable IDF_PATH with one path:
C:\esp\esp-idf
I have installed pip with python get-pip.py
When I'm running the install.bat file in the C:\esp\esp-idf order, I receive a failure (See image).install.bat logdata
The first time I ran it. The zip file xtensa-esp32s2-elf-gcc8_4_0-esp-2020r3-win64 could not be extracted/read completely. Now it is skipped because it was already done. That's the reason why I can't show the logdata (had closed the DOS). Or does anyone have an idea how to reproduce it or to see the log data of a closed command prompt ?
According to these logdata I have to install Microsoft Visual C++ 9.0. So if I install it, that does not fix it, or I have a second problem.
Here the logdata after installing Microsoft Visual C++ 9.0.
Building wheels for collected packages: esp-windows-curses, brotli
Building wheel for esp-windows-curses (setup.py) ... done
Created wheel for esp-windows-curses: filename=esp_windows_curses-0.1-py2-none-any.whl size=1186 sha256=f3d20e95c244846be0065eb4fb20dd2e0b0bfeb2b42bd3fb50487ccb37e77e80
Stored in directory: c:\users\antoine schnetz\appdata\local\pip\cache\wheels\6b\23\dc\3f08e5d8e20335c3a015cb544ae35ed0220a6ef91fad289528
Building wheel for brotli (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\antoin~1\\appdata\\local\\temp\\pip-install-0skvpo\\brotli\\setup.py'"'"'; __file__='"'"'c:\\users\\antoin~1\\appdata\\local\\temp\\pip-install-0skvpo\\brotli\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'c:\users\antoin~1\appdata\local\temp\pip-wheel-bfvqex'
cwd: c:\users\antoin~1\appdata\local\temp\pip-install-0skvpo\brotli\
Complete output (93 lines):
running bdist_wheel
running build
running build_py
creating bin
creating bin\lib.win-amd64-2.7
copying python\brotli.py -> bin\lib.win-amd64-2.7
running build_ext
building '_brotli' extension
creating bin\temp.win-amd64-2.7
creating bin\temp.win-amd64-2.7\Release
creating bin\temp.win-amd64-2.7\Release\c
creating bin\temp.win-amd64-2.7\Release\c\common
creating bin\temp.win-amd64-2.7\Release\c\dec
creating bin\temp.win-amd64-2.7\Release\c\enc
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/common/constants.c /Fobin\temp.win-amd64-2.7\Release\c/common/constants.obj
constants.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/common/context.c /Fobin\temp.win-amd64-2.7\Release\c/common/context.obj
context.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/common/dictionary.c /Fobin\temp.win-amd64-2.7\Release\c/common/dictionary.obj
dictionary.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/common/platform.c /Fobin\temp.win-amd64-2.7\Release\c/common/platform.obj
platform.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/common/transform.c /Fobin\temp.win-amd64-2.7\Release\c/common/transform.obj
transform.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/dec/bit_reader.c /Fobin\temp.win-amd64-2.7\Release\c/dec/bit_reader.obj
bit_reader.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/dec/decode.c /Fobin\temp.win-amd64-2.7\Release\c/dec/decode.obj
decode.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/dec/huffman.c /Fobin\temp.win-amd64-2.7\Release\c/dec/huffman.obj
huffman.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/dec/state.c /Fobin\temp.win-amd64-2.7\Release\c/dec/state.obj
state.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/backward_references.c /Fobin\temp.win-amd64-2.7\Release\c/enc/backward_references.obj
backward_references.c
c:\users\antoine schnetz\appdata\local\temp\pip-install-0skvpo\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/backward_references_hq.c /Fobin\temp.win-amd64-2.7\Release\c/enc/backward_references_hq.obj
backward_references_hq.c
c:\users\antoine schnetz\appdata\local\temp\pip-install-0skvpo\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/bit_cost.c /Fobin\temp.win-amd64-2.7\Release\c/enc/bit_cost.obj
bit_cost.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/block_splitter.c /Fobin\temp.win-amd64-2.7\Release\c/enc/block_splitter.obj
block_splitter.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/brotli_bit_stream.c /Fobin\temp.win-amd64-2.7\Release\c/enc/brotli_bit_stream.obj
brotli_bit_stream.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/cluster.c /Fobin\temp.win-amd64-2.7\Release\c/enc/cluster.obj
cluster.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/command.c /Fobin\temp.win-amd64-2.7\Release\c/enc/command.obj
command.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/compress_fragment.c /Fobin\temp.win-amd64-2.7\Release\c/enc/compress_fragment.obj
compress_fragment.c
c:\users\antoine schnetz\appdata\local\temp\pip-install-0skvpo\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/compress_fragment_two_pass.c /Fobin\temp.win-amd64-2.7\Release\c/enc/compress_fragment_two_pass.obj
compress_fragment_two_pass.c
c:\users\antoine schnetz\appdata\local\temp\pip-install-0skvpo\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/dictionary_hash.c /Fobin\temp.win-amd64-2.7\Release\c/enc/dictionary_hash.obj
dictionary_hash.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/encode.c /Fobin\temp.win-amd64-2.7\Release\c/enc/encode.obj
encode.c
c:\users\antoine schnetz\appdata\local\temp\pip-install-0skvpo\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/encoder_dict.c /Fobin\temp.win-amd64-2.7\Release\c/enc/encoder_dict.obj
encoder_dict.c
c:\users\antoine schnetz\appdata\local\temp\pip-install-0skvpo\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/entropy_encode.c /Fobin\temp.win-amd64-2.7\Release\c/enc/entropy_encode.obj
entropy_encode.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/fast_log.c /Fobin\temp.win-amd64-2.7\Release\c/enc/fast_log.obj
fast_log.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/histogram.c /Fobin\temp.win-amd64-2.7\Release\c/enc/histogram.obj
histogram.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/literal_cost.c /Fobin\temp.win-amd64-2.7\Release\c/enc/literal_cost.obj
literal_cost.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/memory.c /Fobin\temp.win-amd64-2.7\Release\c/enc/memory.obj
memory.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/metablock.c /Fobin\temp.win-amd64-2.7\Release\c/enc/metablock.obj
metablock.c
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/static_dict.c /Fobin\temp.win-amd64-2.7\Release\c/enc/static_dict.obj
static_dict.c
c:\users\antoine schnetz\appdata\local\temp\pip-install-0skvpo\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/utf8_util.c /Fobin\temp.win-amd64-2.7\Release\c/enc/utf8_util.obj
utf8_util.c
creating bin\temp.win-amd64-2.7\Release\python
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tppython/_brotli.cc /Fobin\temp.win-amd64-2.7\Release\python/_brotli.obj /EHsc
_brotli.cc
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\link.exe /DLL /nologo /INCREMENTAL:NO "/LIBPATH:C:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\libs" "/LIBPATH:C:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PCbuild\amd64" "/LIBPATH:C:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC\VS9.0\amd64" /EXPORT:init_brotli bin\temp.win-amd64-2.7\Release\c/common/constants.obj bin\temp.win-amd64-2.7\Release\c/common/context.obj bin\temp.win-amd64-2.7\Release\c/common/dictionary.obj bin\temp.win-amd64-2.7\Release\c/common/platform.obj bin\temp.win-amd64-2.7\Release\c/common/transform.obj bin\temp.win-amd64-2.7\Release\c/dec/bit_reader.obj bin\temp.win-amd64-2.7\Release\c/dec/decode.obj bin\temp.win-amd64-2.7\Release\c/dec/huffman.obj bin\temp.win-amd64-2.7\Release\c/dec/state.obj bin\temp.win-amd64-2.7\Release\c/enc/backward_references.obj bin\temp.win-amd64-2.7\Release\c/enc/backward_references_hq.obj bin\temp.win-amd64-2.7\Release\c/enc/bit_cost.obj bin\temp.win-amd64-2.7\Release\c/enc/block_splitter.obj bin\temp.win-amd64-2.7\Release\c/enc/brotli_bit_stream.obj bin\temp.win-amd64-2.7\Release\c/enc/cluster.obj bin\temp.win-amd64-2.7\Release\c/enc/command.obj bin\temp.win-amd64-2.7\Release\c/enc/compress_fragment.obj bin\temp.win-amd64-2.7\Release\c/enc/compress_fragment_two_pass.obj bin\temp.win-amd64-2.7\Release\c/enc/dictionary_hash.obj bin\temp.win-amd64-2.7\Release\c/enc/encode.obj bin\temp.win-amd64-2.7\Release\c/enc/encoder_dict.obj bin\temp.win-amd64-2.7\Release\c/enc/entropy_encode.obj bin\temp.win-amd64-2.7\Release\c/enc/fast_log.obj bin\temp.win-amd64-2.7\Release\c/enc/histogram.obj bin\temp.win-amd64-2.7\Release\c/enc/literal_cost.obj bin\temp.win-amd64-2.7\Release\c/enc/memory.obj bin\temp.win-amd64-2.7\Release\c/enc/metablock.obj bin\temp.win-amd64-2.7\Release\c/enc/static_dict.obj bin\temp.win-amd64-2.7\Release\c/enc/utf8_util.obj bin\temp.win-amd64-2.7\Release\python/_brotli.obj /OUT:bin\lib.win-amd64-2.7\_brotli.pyd /IMPLIB:bin\temp.win-amd64-2.7\Release\c/common\_brotli.lib /MANIFESTFILE:bin\temp.win-amd64-2.7\Release\c/common\_brotli.pyd.manifest
_brotli.obj : warning LNK4197: export 'init_brotli' specified multiple times; using first specification
Creating library bin\temp.win-amd64-2.7\Release\c/common\_brotli.lib and object bin\temp.win-amd64-2.7\Release\c/common\_brotli.exp
encode.obj : error LNK2001: unresolved external symbol _tzcnt_u64
static_dict.obj : error LNK2001: unresolved external symbol _tzcnt_u64
backward_references.obj : error LNK2019: unresolved external symbol _tzcnt_u64 referenced in function FindMatchLengthWithLimit
backward_references_hq.obj : error LNK2001: unresolved external symbol _tzcnt_u64
compress_fragment.obj : error LNK2001: unresolved external symbol _tzcnt_u64
compress_fragment_two_pass.obj : error LNK2001: unresolved external symbol _tzcnt_u64
bin\lib.win-amd64-2.7\_brotli.pyd : fatal error LNK1120: 1 unresolved externals
error: command 'C:\\Users\\Antoine Schnetz\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\link.exe' failed with exit status 1120
----------------------------------------
ERROR: Failed building wheel for brotli
What am I doing wrong or what is missing on my computer ?
Thanks
Looks like a recent issue in brotli, see here.
In the mean time you should be able to install an older version. I hit this today and found that 1.0.7 works for me.
python -m pip install --user brotli==1.0.7

How to manually fix Qt PATH: fatal error RC1106: invalid option: -ologo, LNK1327 / LNK1158 : fatal error during running rc.exe

This is a rare problem some people have after installing the Qt IDE. With all the reports of a similar problem in VS I found it very hard to find the answer to this problem.
The problem is as follows: Qt searches for the PATH that VS uses. Qt fails to find correct PATH even if VS has the correct path. When it tries to compile and attempts to run rc.exe it cannot, because it has no idea where it is. It then throws the following compiler outputs depending on your configuration:
Compile output 1/2:
07:53:21: Running steps for project untitled...
07:53:21: Configuration unchanged, skipping qmake step.
07:53:21: Starting: "D:\Qt\Tools\QtCreator\bin\jom.exe"
D:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST:embed /OUT:debug\untitled.exe #C:\Users\willi\AppData\Local\Temp\untitled.exe.10340.16.jom
fatal error RC1106: invalid option: -ologo
LINK : fatal error LNK1327: failure during running rc.exe
jom: D:\Documents\build-untitled-Desktop_Qt_5_11_0_MSVC2015_32bit-Debug\Makefile.Debug [debug\untitled.exe] Error 1327
jom: D:\Documents\build-untitled-Desktop_Qt_5_11_0_MSVC2015_32bit-Debug\Makefile [debug] Error 2
07:53:22: The process "D:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project untitled (kit: Desktop Qt 5.11.0 MSVC2015 32bit)
The kit Desktop Qt 5.11.0 MSVC2015 32bit has configuration issues which might be the root cause for this problem.
When executing step "Make"
07:53:22: Elapsed time: 00:00.
Compile Output 2/2:
11:23:23: Running steps for project untitled3...
11:23:23: Starting: "D:\Qt\5.11.1\msvc2015\bin\qmake.exe" D:\Documents\untitled3\untitled3.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
Info: creating stash file D:\Documents\build-untitled3-Desktop_Qt_5_11_1_MSVC2015_32bit-Debug.qmake.stash
11:23:23: The process "D:\Qt\5.11.1\msvc2015\bin\qmake.exe" exited normally.
11:23:23: Starting: "D:\Qt\Tools\QtCreator\bin\jom.exe" qmake_all
jom 1.1.2 - empower your cores
11:23:23: The process "D:\Qt\Tools\QtCreator\bin\jom.exe" exited normally.
11:23:23: Starting: "D:\Qt\Tools\QtCreator\bin\jom.exe"
D:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
D:\Qt\5.11.1\msvc2015\bin\uic.exe ..\untitled3\mainwindow.ui -o ui_mainwindow.h
cl -c -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zi -MDd -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -EHsc /Fddebug\untitled3.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\untitled3 -I. -I....\Qt\5.11.1\msvc2015\include -I....\Qt\5.11.1\msvc2015\include\QtWidgets -I....\Qt\5.11.1\msvc2015\include\QtGui -I....\Qt\5.11.1\msvc2015\include\QtANGLE -I....\Qt\5.11.1\msvc2015\include\QtCore -Idebug -I. -I\include -I....\Qt\5.11.1\msvc2015\mkspecs\win32-msvc -Fodebug\ #C:\Users\willi\AppData\Local\Temp\main.obj.11648.16.jom
cl -BxD:\Qt\5.11.1\msvc2015\bin\qmake.exe -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zi -MDd -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -E ....\Qt\5.11.1\msvc2015\mkspecs\features\data\dummy.cpp 2>NUL >debug\moc_predefs.h
main.cpp
cl -c -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zi -MDd -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -EHsc /Fddebug\untitled3.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\untitled3 -I. -I....\Qt\5.11.1\msvc2015\include -I....\Qt\5.11.1\msvc2015\include\QtWidgets -I....\Qt\5.11.1\msvc2015\include\QtGui -I....\Qt\5.11.1\msvc2015\include\QtANGLE -I....\Qt\5.11.1\msvc2015\include\QtCore -Idebug -I. -I\include -I....\Qt\5.11.1\msvc2015\mkspecs\win32-msvc -Fodebug\ #C:\Users\willi\AppData\Local\Temp\mainwindow.obj.11648.31.jom
mainwindow.cpp
D:\Qt\5.11.1\msvc2015\bin\moc.exe -DUNICODE -D_UNICODE -DWIN32 -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --compiler-flavor=msvc --include debug/moc_predefs.h -ID:/Qt/5.11.1/msvc2015/mkspecs/win32-msvc -ID:/Documents/untitled3 -ID:/Qt/5.11.1/msvc2015/include -ID:/Qt/5.11.1/msvc2015/include/QtWidgets -ID:/Qt/5.11.1/msvc2015/include/QtGui -ID:/Qt/5.11.1/msvc2015/include/QtANGLE -ID:/Qt/5.11.1/msvc2015/include/QtCore -I. -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" ..\untitled3\mainwindow.h -o debug\moc_mainwindow.cpp
cl -c -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zi -MDd -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -EHsc /Fddebug\untitled3.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\untitled3 -I. -I....\Qt\5.11.1\msvc2015\include -I....\Qt\5.11.1\msvc2015\include\QtWidgets -I....\Qt\5.11.1\msvc2015\include\QtGui -I....\Qt\5.11.1\msvc2015\include\QtANGLE -I....\Qt\5.11.1\msvc2015\include\QtCore -Idebug -I. -I\include -I....\Qt\5.11.1\msvc2015\mkspecs\win32-msvc -Fodebug\ #C:\Users\willi\AppData\Local\Temp\moc_mainwindow.obj.11648.375.jom
moc_mainwindow.cpp
link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST:embed /OUT:debug\untitled3.exe #C:\Users\willi\AppData\Local\Temp\untitled3.exe.11648.1359.jom
LINK : fatal error LNK1158: cannot run 'rc.exe'
jom: D:\Documents\build-untitled3-Desktop_Qt_5_11_1_MSVC2015_32bit-Debug\Makefile.Debug [debug\untitled3.exe] Error 1158
jom: D:\Documents\build-untitled3-Desktop_Qt_5_11_1_MSVC2015_32bit-Debug\Makefile [debug] Error 2
11:23:25: The process "D:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project untitled3 (kit: Desktop Qt 5.11.1 MSVC2015 32bit)
The kit Desktop Qt 5.11.1 MSVC2015 32bit has configuration issues which might be the root cause for this problem.
When executing step "Make"
11:23:25: Elapsed time: 00:02.
Go to Tools -> Options -> Build and Run -> Kits -> (The kit you are using) -> then adding the proper directory to the Environment with the "PATH=${PATH};" command. Example in attachments. To find the file path, follow mine to the bin folder and select the one you need.
Thanks to #aha_1980 #kkoehne and #J.Hilk over at: https://forum.qt.io/topic/92145/qt-cannot-find-rc-exe-codes-fatal-error-rc1106-invalid-option-ologo-lnk1327-lnk1158-fatal-error-during-running-rc-exe

(libgfortran.a) Absolute symbol '_strtoflt128' used as target of REL32 relocation

I am trying to link on Windows a Fortran code with C++. The Fortran code is compiled with gfortran from MinGW, and the other C++ parts are being compiled with MSVC.
The problem is that the linker generates the following error message:
libgfortran.a(read.o) : error LNK2016: Absolute symbol '_strtoflt128' used as target of REL32 relocation
With the Intel fortran compiler it works.
Tools:
GNU Fortran 6.3.0
MSVC 2013
I used the CMake generated Visual Studio project, which automatically invokes the Microsoft linker. The linker arguments(cleaned):
/MANIFEST /NXCOMPAT /DYNAMICBASE "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "comdlg32.lib" "advapi32.lib" "libgfortran.a" "libmingwex.a" "libmingw32.a" "libquadmath.a" "libgcc_s.a" "libgcc.a" "libgcc_eh.a" /MACHINE:X86 /SAFESEH:NO /INCREMENTAL:NO /SUBSYSTEM:CONSOLE /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /ERRORREPORT:PROMPT /NOLOGO /TLBID:1 /machine:X86 /NODEFAULTLIB:"libcpmt.lib"
I tested also on 64 bit and it generates the same error.

Build Qt for Visual Studio

I searched the Web for few days now, for how to build Qt 4.8.6 for Visual Studio 2012. I am using Windows 10 x64.
I tried following:
Enviroment Variables:
QTDIR=c:\Qt\4.8.6
Path=%QTDIR%\bin
QMAKESPEC=%QTDIR%\mkspecs\win32-msvc2012
Visual Studio Native Tools Command Prompt:
cd c:\Qt\4.8.6
nmake confclean
configure -no-webkit -debug-and-release -opensource -platform win32-msvc2012
jom -j 8
But I always get Error-Codes: (last few lines)
cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DNDEBUG -I"..\..\..\include\QtCore" -I"..\..\..\include\QtGui" -I"..\..\..\include" -I"..\..\..\include\ActiveQt" -I"tmp\moc\release_shared" -I"..\..\..\mkspecs\win32-msvc2012" -Fotmp\obj\release_shared\ #C:\Users\HONIAH~1\AppData\Local\Temp\moc_mainwindow.obj.146576.5359.jom
moc_mainwindow.cpp
link /LIBPATH:"c:\Qt\4.8.6\lib" /LIBPATH:"c:\Qt\4.8.6\lib" /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /OUT:release\undoframework.exe #C:\Users\HONIAH~1\AppData\Local\Temp\undoframework.exe.146576.7484.jom
jom: C:\Qt\4.8.6\Makefile [sub-examples-make_default-ordered] Error 2

Resources