Summary: | Qt 4.6.3 is built without STL support | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Keith Rusler <xzekecomax> |
Component: | New packages | Assignee: | Qt Bug Alias <qt> |
Status: | RESOLVED INVALID | ||
Severity: | enhancement | CC: | b.brachaczek, xzekecomax |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Qt's configuration file
Qt-4.7.0rc1 build log |
Description
Keith Rusler
2010-08-19 08:22:50 UTC
I assume we can add a use flag for it. Objections? Patches are always welcome WTF? We already pass -stl to the configure script... Well when I try use QString::fromStdString() etc like STL features in C++ it says they are not defined. I can't reproduce. Try re-emerging qt-core please. I just recompiled qt-core and can reproduce it again. I don't understand what is going on. /home/comawhite/projects/TagCorrecting/main.cxx:50:13: error: ‘fromStdString’ is not a member of ‘QString’ I just recompiled qt-core and can reproduce it again. I don't understand what is going on. /home/comawhite/projects/TagCorrecting/main.cxx:50:13: error: ‘fromStdString’ is not a member of ‘QString’ Attach /usr/share/qt4/mkspecs/gentoo/qconfig.pri please. Created attachment 243845 [details]
Qt's configuration file
(In reply to comment #8) > Created an attachment (id=243845) [details] > Qt's configuration file > This shows that stl support is enabled. So either you're doing something wrong or it's a gcc-4.5 issue. It might be a GCC-4.5.x bug, because I don't understand how I'm doing anything wrong. I've done it like it says to use that method in the documentation. I don't use gcc-4.5 myself, so I'm unable to debug this issue further. You can help by attaching a full build.log of x11-libs/qt-core. FWIW, I have world compiled with GCC 4.5.1 and my Qt 4.6.3 installation has proper STL support. My qconfig.pri differs from Keith's only in that I have a release build, not debug, and I have x86, not x86_64. Keith, attach your build.log for qt-core please. Created attachment 245810 [details]
Qt-4.7.0rc1 build log
I experienced it also in Qt-4.7.0-rc1, I posted the build log build.log attached, reopening I fixed the issue. It seems that it was disabled in my KDE4 project using CMake. I had to use remove_definitions(-DQT_NO_STL) for it to work when building my CMake project with KDE4. |