Web lists-archives.org

Re: kdemultimedia/juk fails to compile with QT_NO_STL




Han? Values for the defines?

No No, You just check it,

#ifdef QT_NO_SLT..
doSomething
#endif
Just that, no value, and for this, normally, this goes with the g++ command..

2008/2/2, Michael Biebl <mbiebl@xxxxxxxxx>:
2008/2/2, Michael Biebl <mbiebl@xxxxxxxxx>:
> 2008/2/2, Stephan Kulow <coolo@xxxxxxx>:
> > Am Samstag, 2. Februar 2008 schrieb Michael Biebl:
> > >
> > > juk should either not use fromStdWString or add a cmake check, so juk
> > > is disabled from compilation when Qt was compiled without STL
> > > compatibility support.
> >
> > -stl is the default of qt and of qt-copy - so if you want to break your
> > Qt, then please also add the cmake check.

Looking further into it, it actually seems, as if my copy of Qt4
(version 4.3.3 from Debian unstable) is built with STL support.

The relevant part of qstring.h is
#ifndef QT_NO_STL
    static inline QString fromStdString(const std::string &s);
    inline std::string toStdString() const;
# ifdef qdoc
    static inline QString fromStdWString(const std::wstring &s);
    inline std::wstring toStdWString() const;
# else
#  ifndef QT_NO_STL_WCHAR
    static inline QString fromStdWString(const QStdWString &s);
    inline QStdWString toStdWString() const;
#  endif // QT_NO_STL_WCHAR
# endif // qdoc
#endif

So it still could be a missing qdoc define or QT_NO_STL_WCHAR.

Where can I find the values of these defines? Has anyone a clue what's
going wrong here?

Michael

--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<



--

Otávio Souza
* KinuX Linux Creator <http://kinux.codigolivre.org.br>
* Representante Fedora-SE
* Participante Linux-SE
* Criador do MSLC-SE
* Criador dos lunatiKos (Grupo de usuários KDE do Nordeste)
* Linux User #415774
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<