1

When I want to build Qt 5.3 on Windows, it give me an error:

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.

I found that the PCRE library is related to Perl, but Perl is correctly installed on my PC.

Do you have a solution?

Alan Moore
  • 73,866
  • 12
  • 100
  • 156
gcdu97
  • 25
  • 8
  • Can you add your `config.status` file? PCRE has nothing to do with the Perl you installed on your system. Do you *also* have PCRE installed somewhere else, i.e. do you have a `pcre.h` in a system path? – peppe May 31 '14 at 12:48
  • Thanks for your reply. I found a pcre.h file in `.\3rdparty\pcre` and I also built the PCRE library. So I have 2 pcre.h files. – gcdu97 May 31 '14 at 13:02
  • I uploaded the config.summary file : http://pastebin.com/afhA6Z5N . I can't find the config.status file. – gcdu97 May 31 '14 at 13:13
  • I found the problem. There were an old (2006) `pcre.h` file in gnuwin32 folder. I deleted it and replaced with the one I had compiled from PCRE sources and it works. – gcdu97 May 31 '14 at 13:49
  • Just FYI, this has nothing to do with Perl. The PCRE library is a completely separate project that attempts to emulate Perl's regex capabilities for inclusion in other languages/tools. Thus, the fact that your Perl installation is working is not relevant. – Alan Moore Jul 25 '14 at 15:35

1 Answers1

0

You must have a broken installation. Strive for a clean new installation.

This works fine with the pcre.h installed. 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.

László Papp
  • 51,870
  • 39
  • 111
  • 135
  • At the moment Qt was compiled successfully. I'll see later if I have problems. Thank you for your help. – gcdu97 May 31 '14 at 17:28