microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.26k stars 6.41k forks source link

Install qt5 failed. #2303

Closed wby238 closed 5 years ago

wby238 commented 6 years ago

Env: x64 win7 sp1, vs2017, other tools are latest Use vcpkg install qt5(This is the second time I tried), and then:

C:\src\vcpkg>vcpkg install qt5
The following packages will be built and installed:
    qt5:x86-windows
Starting package 1/1: qt5:x86-windows
Building package qt5:x86-windows...
-- CURRENT_INSTALLED_DIR=C:/src/vcpkg/installed/x86-windows
-- DOWNLOADS=C:/src/vcpkg/downloads
-- CURRENT_PACKAGES_DIR=C:/src/vcpkg/packages/qt5_x86-windows
-- CURRENT_BUILDTREES_DIR=C:/src/vcpkg/buildtrees/qt5
-- CURRENT_PORT_DIR=C:/src/vcpkg/ports/qt5/.
-- Using cached C:/src/vcpkg/downloads/qt-5.8.0.7z
-- Testing integrity of cached file...
-- Testing integrity of cached file... OK
-- Extracting done
-- Applying patch C:/src/vcpkg/ports/qt5/fix-qalgorithms-vs2017.patch
-- Applying patch failed. This is expected if this patch was previously applied.

-- Applying patch C:/src/vcpkg/ports/qt5/fix-qalgorithms-vs2017.patch done
-- Applying patch C:/src/vcpkg/ports/qt5/fix-commandline-overrides.patch
-- Applying patch failed. This is expected if this patch was previously applied.

-- Applying patch C:/src/vcpkg/ports/qt5/fix-commandline-overrides.patch done
-- Configuring x86-windows-rel
-- Configuring x86-windows-rel done
-- Configuring x86-windows-dbg
-- Configuring x86-windows-dbg done
-- Package x86-windows-rel
CMake Error at C:/src/vcpkg/scripts/cmake/vcpkg_execute_required_process.cmake:4
4 (message):
    Command failed: C:/src/vcpkg/downloads/tools/jom/jom-1.1.2/jom.exe;/J;8
    Working Directory: C:/src/vcpkg/buildtrees/qt5/x86-windows-rel
    See logs for more information:
      C:\src\vcpkg\buildtrees\qt5\build-x86-windows-rel-out.log
      C:\src\vcpkg\buildtrees\qt5\build-x86-windows-rel-err.log

Call Stack (most recent call first):
  C:/src/vcpkg/ports/qt5/install_qt.cmake:19 (vcpkg_execute_required_process)
  C:/src/vcpkg/ports/qt5/portfile.cmake:67 (install_qt)
  C:/src/vcpkg/scripts/ports.cmake:72 (include)

Error: Building package qt5:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: qt5:x86-windows
  Vcpkg version: 0.0.99-2017-12-03-fe03086399a61745f07079815a1460dbc38c44c3

Additionally, attach any relevant sections from the log files above.

Logs: C:\src\vcpkg\buildtrees\qt5\build-x86-windows-rel-out.log(The last of it):

OgreXmlSerializer.cpp
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\../include/assimp/defs.h: warning C4828: The file contains a character starting at offset 0x1c7c that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\OgreXmlSerializer.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\../include/assimp/defs.h: warning C4828: The file contains a character starting at offset 0x1c8f that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\OgreXmlSerializer.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix3x3.h: warning C4828: The file contains a character starting at offset 0x15e1 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\FBXConverter.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix4x4.h: warning C4828: The file contains a character starting at offset 0x20e2 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\FBXConverter.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix3x3.inl: warning C4828: The file contains a character starting at offset 0x233d that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\FBXConverter.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix4x4.inl: warning C4828: The file contains a character starting at offset 0x48f7 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\FBXConverter.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix3x3.h: warning C4828: The file contains a character starting at offset 0x15e1 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\FBXProperties.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix4x4.h: warning C4828: The file contains a character starting at offset 0x20e2 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\FBXProperties.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix3x3.inl: warning C4828: The file contains a character starting at offset 0x233d that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\FBXProperties.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix4x4.inl: warning C4828: The file contains a character starting at offset 0x48f7 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\FBXProperties.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix3x3.h: warning C4828: The file contains a character starting at offset 0x15e1 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\FBXTokenizer.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix4x4.h: warning C4828: The file contains a character starting at offset 0x20e2 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\FBXTokenizer.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix3x3.inl: warning C4828: The file contains a character starting at offset 0x233d that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\FBXTokenizer.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix3x3.h: warning C4828: The file contains a character starting at offset 0x15e1 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\FBXDocumentUtil.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix4x4.h: warning C4828: The file contains a character starting at offset 0x20e2 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\FBXDocumentUtil.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix3x3.inl: warning C4828: The file contains a character starting at offset 0x233d that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\FBXDocumentUtil.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix4x4.inl: warning C4828: The file contains a character starting at offset 0x48f7 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\FBXDocumentUtil.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix4x4.inl: warning C4828: The file contains a character starting at offset 0x48f7 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\FBXTokenizer.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix3x3.h: warning C4828: The file contains a character starting at offset 0x15e1 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\IFCBoolean.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix4x4.h: warning C4828: The file contains a character starting at offset 0x20e2 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\IFCBoolean.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix3x3.inl: warning C4828: The file contains a character starting at offset 0x233d that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\IFCBoolean.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix4x4.inl: warning C4828: The file contains a character starting at offset 0x48f7 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\IFCBoolean.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\contrib\poly2tri\poly2tri\sweep\sweep.h: warning C4828: The file contains a character starting at offset 0x773 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\IFCOpenings.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\contrib\poly2tri\poly2tri\sweep\sweep.h: warning C4828: The file contains a character starting at offset 0x776 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\IFCOpenings.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix3x3.h: warning C4828: The file contains a character starting at offset 0x15e1 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\OgreXmlSerializer.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix4x4.h: warning C4828: The file contains a character starting at offset 0x20e2 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\OgreXmlSerializer.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\../contrib/clipper/clipper.hpp: warning C4828: The file contains a character starting at offset 0x8ea that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\IFCOpenings.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix3x3.inl: warning C4828: The file contains a character starting at offset 0x233d that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\OgreXmlSerializer.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix4x4.inl: warning C4828: The file contains a character starting at offset 0x48f7 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\OgreXmlSerializer.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix3x3.h: warning C4828: The file contains a character starting at offset 0x15e1 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\OgreStructs.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix4x4.h: warning C4828: The file contains a character starting at offset 0x20e2 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\OgreStructs.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix3x3.inl: warning C4828: The file contains a character starting at offset 0x233d that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\OgreStructs.cpp)
c:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\include\assimp\matrix4x4.inl: warning C4828: The file contains a character starting at offset 0x48f7 that is illegal in the current source character set (codepage 65001). (compiling source file C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\3rdparty\assimp\code\OgreStructs.cpp)
    link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:..\..\bin\qgltf.exe @C:\Users\ADMINI~1\AppData\Local\Temp\qgltf.exe.67480.74007.jom

C:\src\vcpkg\buildtrees\qt5\build-x86-windows-rel-err.log:


jom 1.1.2 - empower your cores

C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qtbase\src\corelib\kernel\qobjectdefs.h(0): Note: No relevant classes found. No output generated.
C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qtbase\src\network\access\qnetworkaccessdebugpipebackend_p.h(0): Note: No relevant classes found. No output generated.
Checking for jasper... no
Checking for libmng... no
Checking for libtiff... no
Checking for libwebp... no
Microsoft (R) 32b/64b MIDL Compiler Version 8.01.0620 
Copyright (c) Microsoft Corporation. All rights reserved.
testcon.idl
ocidl.idl
oleidl.idl
objidl.idl
unknwn.idl
wtypes.idl
wtypesbase.idl
basetsd.h
guiddef.h
oaidl.idl
servprov.idl
urlmon.idl
msxml.idl
oaidl.acf
ocidl.acf
C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qtscxml\src\scxml\qscxmlerror.h(0): Note: No relevant classes found. No output generated.
Project MESSAGE: Unsupported Bluetooth platform, will not build a working QtBluetooth library.
Project MESSAGE: Either no Qt D-Bus found or no BlueZ headers available.
Project MESSAGE: Unsupported Bluetooth platform, will not build a working QtBluetooth library.
Project MESSAGE: Either no Qt D-Bus found or no BlueZ headers available.
Project MESSAGE: Unsupported Bluetooth platform, will not build a working QtBluetooth library.
Project MESSAGE: Either no Qt D-Bus found or no BlueZ headers available.
C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qtconnectivity\src\bluetooth\qbluetoothdevicediscoveryagent_p.h(0): Note: No relevant classes found. No output generated.
C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qtconnectivity\src\bluetooth\qbluetoothlocaldevice_p.h(0): Note: No relevant classes found. No output generated.
Project MESSAGE: Unsupported NFC platform, will not build a working QtNfc library.
Project MESSAGE: Unsupported NFC platform, will not build a working QtNfc library.
Project MESSAGE: Unsupported NFC platform, will not build a working QtNfc library.
Checking for gypsy... no
Checking for winrt... yes
C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qt3d\src\core\aspects\aspectcommanddebugger_p.h(0): Note: No relevant classes found. No output generated.
jom: C:\src\vcpkg\buildtrees\qt5\x86-windows-rel\qtspeech\src\plugins\tts\sapi\Makefile.Release [.obj\release\qtexttospeech_sapi.obj] Error 2
jom: C:\src\vcpkg\buildtrees\qt5\x86-windows-rel\qtspeech\src\plugins\tts\sapi\Makefile [release] Error 2
jom: C:\src\vcpkg\buildtrees\qt5\x86-windows-rel\qtspeech\src\plugins\tts\Makefile [sub-sapi-make_first] Error 2
jom: C:\src\vcpkg\buildtrees\qt5\x86-windows-rel\qtspeech\src\plugins\Makefile [sub-tts-make_first] Error 2
jom: C:\src\vcpkg\buildtrees\qt5\x86-windows-rel\qtspeech\src\Makefile [sub-plugins-make_first] Error 2
jom: C:\src\vcpkg\buildtrees\qt5\x86-windows-rel\qtspeech\Makefile [sub-src-make_first] Error 2
C:\src\vcpkg\buildtrees\qt5\src\qt-5.8.0\qttools\src\linguist\linguist\main.cpp(0): Note: No relevant classes found. No output generated.
jom: C:\src\vcpkg\buildtrees\qt5\x86-windows-rel\Makefile [module-qtspeech-make_first] Error 2
Neumann-A commented 6 years ago

Try the portfile from my branch (only tested the build for x64-windows; never tested to build an actual qt application yet)

If you do not need qtwebengine I would highly suggest to add -skip qtwebengine to the configuration step in the portfile. (builds a lot faster; ~1h vs ~6h)

LarryIII commented 5 years ago

@wby238 Thanks for your feedback. I installed qt5 successfully. Please open a new issue if this is still a problem for you.

ImadGH commented 4 years ago

Try the portfile from my branch (only tested the build for x64-windows; never tested to build an actual qt application yet)

If you do not need qtwebengine I would highly suggest to add -skip qtwebengine to the configuration step in the portfile. (builds a lot faster; ~1h vs ~6h)

how do you do that if you dont mind lol you mean add -skip ... in the vcpkg install ... command ?

Neumann-A commented 4 years ago

Since qt as bin split up into its different modules the comment is outdated.