PCRE

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

wondersye
Not too shy to talk
Not too shy to talk
Posts: 21
Joined: Sun May 22, 2011 16:04

PCRE

Postby wondersye » Fri Jun 03, 2011 10:12

Hello (this is my first CEGUI post!),

I had attempted to build CEGUI without PCRE support (--disable-pcre configure option) but apparently it was nevertheless still needed:

Code: Select all

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../cegui/include -I../../cegui/include -I/home/wondersye/Projects/LOANI-latest/LOANI-installations/freetype-2.4.3/include -I/home/wondersye/Projects/LOANI-latest/LOANI-installations/freetype-2.4.3/include/freetype2 -DDEBUG -g -O2 -MT libCEGUIBase_la-CEGUIEditbox.lo -MD -MP -MF .deps/libCEGUIBase_la-CEGUIEditbox.Tpo -c elements/CEGUIEditbox.cpp  -fPIC -DPIC -o .libs/libCEGUIBase_la-CEGUIEditbox.o                                                                                                                             
In file included from elements/CEGUIEditbox.cpp:38:0:                                                                                         
../../cegui/include/CEGUIPCRERegexMatcher.h:33:18: fatal error: pcre.h: No such file or directory                                             
compilation terminated.                                                                                                                       
make[3]: *** [libCEGUIBase_la-CEGUIEditbox.lo] Erreur 1   


When removing that configuration option and specifying an actual PCRE installation (that is, here, prefixed):

Code: Select all

   export pcre_CFLAGS="-I${pcre_PREFIX}/include"
   export pcre_LIBS="-L${pcre_PREFIX}/lib -lpcre"

everything worked correctly.

Best regards,

Olivier Boudeville.

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: PCRE

Postby Kulik » Fri Jun 03, 2011 14:09

We have abandoned automake and premake in favor of cmake for CEGUI 0.8 so focus is on the cmake build system right now.

Despite this, I recall trying this and it worked for me, perhaps something has changed. I will try this and post back.

wondersye
Not too shy to talk
Not too shy to talk
Posts: 21
Joined: Sun May 22, 2011 16:04

Re: PCRE

Postby wondersye » Sat Jun 04, 2011 16:30

Hello again,

For the record, building PCRE "as is" will not be sufficient for samples to work. Indeed I had for Demo6:

Code: Select all

CEGUI::InvalidRequestException in file CEGUIPCRERegexMatcher.cpp(62) : PCRERegexMatcher::setRegexString: Bad RegEx set: '.*'.  Additional Information: this version of PCRE is not compiled with PCRE_UTF8 support                                                                           
An exception was thrown within the sample framework:                                                                                         
PCRERegexMatcher::setRegexString: Bad RegEx set: '.*'.  Additional Information: this version of PCRE is not compiled with PCRE_UTF8 support   


Adding --enable-unicode-properties at PCRE-configuration time did the trick. So I could at last enjoy Demo6, which looks great!

Thanks,

Olivier Boudeville.


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 1 guest