Discussion:
[Development] iOS, libpcre16, QString::trimmed_helper()
Harri Pasanen
2015-05-05 10:17:41 UTC
Permalink
I'm attempting to use libQt5Core with self compiled qt5.5 snapshot,
which is a couple of weeks old. The link fails, complaining about
missing libpcre16.
I believe that is not standard on iOS, at least it does not come up when
looking for "Other Libs" pcre in XCode. There does seem to be some
version of libpcre for OSX.

Trying with Qt5.4, I have another error, where
QString::trimmed_helper(QString const &) is missing.

Any advice?

Harri
Thiago Macieira
2015-05-05 14:40:55 UTC
Permalink
Post by Harri Pasanen
I'm attempting to use libQt5Core with self compiled qt5.5 snapshot,
which is a couple of weeks old. The link fails, complaining about
missing libpcre16.
I believe that is not standard on iOS, at least it does not come up when
looking for "Other Libs" pcre in XCode. There does seem to be some
version of libpcre for OSX.
libpcre is bundled with Qt. Can you check your config.summary for what it
decided to do for PCRE?
Post by Harri Pasanen
Trying with Qt5.4, I have another error, where
QString::trimmed_helper(QString const &) is missing.
There's no QString::trimmed_helper in Qt 5.4. It's introduced in 5.5.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Tim Blechmann
2015-05-11 13:26:45 UTC
Permalink
Post by Thiago Macieira
Post by Harri Pasanen
I'm attempting to use libQt5Core with self compiled qt5.5 snapshot,
which is a couple of weeks old. The link fails, complaining about
missing libpcre16.
I believe that is not standard on iOS, at least it does not come up when
looking for "Other Libs" pcre in XCode. There does seem to be some
version of libpcre for OSX.
libpcre is bundled with Qt. Can you check your config.summary for what it
decided to do for PCRE?
it is bundled, but not necessarily linked automatically. e.g. qt's cmake
integration lacks the usage requirement for libpcre (compare QTBUG-38913)

tim
Thiago Macieira
2015-05-11 18:37:41 UTC
Permalink
Post by Tim Blechmann
Post by Thiago Macieira
Post by Harri Pasanen
I'm attempting to use libQt5Core with self compiled qt5.5 snapshot,
which is a couple of weeks old. The link fails, complaining about
missing libpcre16.
I believe that is not standard on iOS, at least it does not come up when
looking for "Other Libs" pcre in XCode. There does seem to be some
version of libpcre for OSX.
libpcre is bundled with Qt. Can you check your config.summary for what it
decided to do for PCRE?
it is bundled, but not necessarily linked automatically. e.g. qt's cmake
integration lacks the usage requirement for libpcre (compare QTBUG-38913)
Are you trying to use CMake to link to a static build of Qt?

I don't think anyone has ever tested that combination.

In order for it to work properly, CMake needs to parse the libQt5Core.prl file
to get the full list of libraries that need to be linked to. This is a
mandatory step and I don't think it does that.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Tim Blechmann
2015-05-12 06:36:08 UTC
Permalink
Post by Thiago Macieira
Post by Tim Blechmann
Post by Thiago Macieira
Post by Harri Pasanen
I'm attempting to use libQt5Core with self compiled qt5.5 snapshot,
which is a couple of weeks old. The link fails, complaining about
missing libpcre16.
I believe that is not standard on iOS, at least it does not come up when
looking for "Other Libs" pcre in XCode. There does seem to be some
version of libpcre for OSX.
libpcre is bundled with Qt. Can you check your config.summary for what it
decided to do for PCRE?
it is bundled, but not necessarily linked automatically. e.g. qt's cmake
integration lacks the usage requirement for libpcre (compare QTBUG-38913)
Are you trying to use CMake to link to a static build of Qt?
yes
Post by Thiago Macieira
I don't think anyone has ever tested that combination.
apparently :/
Post by Thiago Macieira
In order for it to work properly, CMake needs to parse the libQt5Core.prl file
to get the full list of libraries that need to be linked to. This is a
mandatory step and I don't think it does that.
afaict this should be done when generating the cmake files for qt ...
i'm not familiar really with that toolchain, though ...

tim

Loading...