| Summary: | Compile error: "/usr/include/QtGStreamer/QGlib/refpointer.h:359: error: invalid use of incomplete type 'struct Tpl::TextEvent'" | ||
|---|---|---|---|
| Product: | [Unmaintained] telepathy | Reporter: | Martin Walch <walch.martin> |
| Component: | text-ui | Assignee: | Telepathy Bugs <kde-telepathy-bugs-null> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | CC: | kde, mail, mklapetek |
| Priority: | NOR | ||
| Version First Reported In: | 0.5.3 | ||
| Target Milestone: | Future | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Do you have telepathy-logger-qt-0.5.3 installed? Yes, I have tried several versions of ktp-text-ui and telepathy-logger-qt, including 0.5.3 of both. Line numbers in the error message may vary slightly, but the error is always the same. I should have mentioned in the first place: it works all fine with gcc 4.6.3. This shouldn't be happening, tbh, but you shouldn't be using such an old compiler either, as QtGLib will fail at runtime -> http://cgit.freedesktop.org/gstreamer/qt-gstreamer/tree/README#n43 Thank you for the link. Is it sure that QtGLib is likely to fail at runtime when using gcc 4.4? Shouldn't cmake then fail when encountering <=gcc-4.5? Yes, it is sure that it will fail if you use the libstdc++ provided by gcc 4.4. I haven't done any strict cmake checks because it is only a runtime requirement. You should be able to compile with gcc 4.4 and run the executable with libstdc++ 4.6 just fine. George's answer seems valid, closing. |
Compiling fails with gcc 4.4.7. I am not sure if this comes from text-ui or from QtGStreamer: In file included from /usr/include/QtGStreamer/QGlib/object.h:23, from /usr/include/QtGStreamer/QGlib/Object:1, from /usr/include/telepathy-logger-0.2/TelepathyLoggerQt4/log-manager.h:27, from /usr/include/telepathy-logger-0.2/TelepathyLoggerQt4/LogManager:8, from /home/neo/ktp-text-ui-0.5.3/lib/logmanager.h:26, from /home/neo/ktp-text-ui-0.5.3/lib/chat-widget.cpp:28: /usr/include/QtGStreamer/QGlib/refpointer.h: In instantiation of 'QGlib::RefPointer<Tpl::TextEvent>': /home/neo/ktp-text-ui-0.5.3/lib/chat-widget.cpp:682: instantiated from here /usr/include/QtGStreamer/QGlib/refpointer.h:359: error: invalid use of incomplete type 'struct Tpl::TextEvent' /usr/include/telepathy-logger-0.2/TelepathyLoggerQt4/global.h:62: error: forward declaration of 'struct Tpl::TextEvent' /usr/include/QtGStreamer/QGlib/refpointer.h:326: error: invalid use of incomplete type 'struct Tpl::TextEvent' /usr/include/telepathy-logger-0.2/TelepathyLoggerQt4/global.h:62: error: forward declaration of 'struct Tpl::TextEvent' Reproducible: Always gcc (Gentoo 4.4.7 p1.1, pie-0.4.5) 4.4.7