简体   繁体   English

构建Qt 5.3时出错

[英]Error while building Qt 5.3

When I want to build Qt 5.3 on Windows, it give me an error: 当我想在Windows上构建Qt 5.3时,它给我一个错误:

mingw32-make[4]: Entering directory 'c:/qt-5.3.0/qtbase/src/corelib'
g++ -c -include .pch\release\qt_pch.h -pipe -fno-keep-inline-dllexport -O2 -std=
gnu++0x -fexceptions -mthreads -frtti -Wall -Wextra -DUNICODE -DQT_NO_USING_NAME
SPACE -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -DQT_ASCII_
CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -
DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -D_USE_MATH_DEFINES -DQT_USE_ICU -DQT_COR
E_LIB -DQT_NO_DEBUG -I. -I"..\..\include" -I"..\..\include\QtCore" -I"..\..\incl
ude\QtCore\5.3.0" -I"..\..\include\QtCore\5.3.0\QtCore" -I"tmp" -I"global" -I"..
\3rdparty\harfbuzz\src" -I"..\3rdparty\md5" -I"..\3rdparty\md4" -I"..\3rdparty\s
ha3" -I".moc\release" -I"C:\JPEGLIB\jpeg-build\include" -I"C:\qt-5.3.0\qtwebkit\
Source\WebCore\plugins" -I"C:\gnuwin32\include" -I"C:\icu\icu\dist\include" -I".
.\3rdparty\pcre" -I"..\..\mkspecs\win32-g++" -o .obj\release\qregularexpression.
o tools\qregularexpression.cpp
tools\qregularexpression.cpp: In function 'int convertToPcreOptions(QRegularExpr
ession::PatternOptions)':
tools\qregularexpression.cpp:778:20: error: 'PCRE_UCP' was not declared in this
scope
         options |= PCRE_UCP;
                    ^
tools\qregularexpression.cpp: At global scope:
tools\qregularexpression.cpp:831:5: error: 'pcre16' does not name a type
     pcre16 *compiledPattern;
     ^

And there is lot of errors related to PCRE after that. 之后,与PCRE相关的错误很多。

I found that the PCRE library is related to Perl, but Perl is correctly installed on my PC. 我发现PCRE库与Perl相关,但是Perl已正确安装在我的PC上。

Do you have a solution? 你有解决方案吗?

You must have a broken installation. 您必须安装失败。 Strive for a clean new installation. 力求全新安装。

This works fine with the pcre.h installed. 这与安装的pcre.h一起正常工作。 I would suggest to reinstall your setup because even though if you replace your stray pcre.h file, other things may as well just blow up at some point. 我建议您重新安装您的安装程序,因为即使您替换了流浪pcre.h文件,其他内容也可能会在某个时候崩溃。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM