簡體   English   中英

構建Qt 5.3時出錯

[英]Error while building Qt 5.3

當我想在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;
     ^

之后,與PCRE相關的錯誤很多。

我發現PCRE庫與Perl相關,但是Perl已正確安裝在我的PC上。

你有解決方案嗎?

您必須安裝失敗。 力求全新安裝。

這與安裝的pcre.h一起正常工作。 我建議您重新安裝您的安裝程序,因為即使您替換了流浪pcre.h文件,其他內容也可能會在某個時候崩潰。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM