[Qt-interest] Problem porting software to QT
fungos
fungos at gmail.com
Fri Apr 10 17:47:29 CEST 2009
This is getting too weird :S
I thought it was easier to get this thing working...
Now just by inverting these two classes I got these errors:
Creating library file: debug\libEngineQt.a
./debug\moc_QtScreen.o: In function `ZSt17__verify_groupingPKcjRKSs':
c:/Qt/2009.01/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.tcc:2512:
undefined reference to `non-virtual thunk to
Engine::QT::Graphic::Screen::Initialize()'
c:/Qt/2009.01/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.tcc:2512:
undefined reference to `non-virtual thunk to
Engine::QT::Graphic::Screen::Reset()'
c:/Qt/2009.01/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.tcc:2512:
undefined reference to `non-virtual thunk to
Engine::QT::Graphic::Screen::Shutdown()'
c:/Qt/2009.01/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.tcc:2512:
undefined reference to `non-virtual thunk to
Engine::QT::Graphic::Screen::Setup(unsigned int)'
c:/Qt/2009.01/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.tcc:2512:
undefined reference to `non-virtual thunk to
Engine::QT::Graphic::Screen::FadeOut()'
c:/Qt/2009.01/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.tcc:2512:
undefined reference to `non-virtual thunk to
Engine::QT::Graphic::Screen::FadeIn()'
c:/Qt/2009.01/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.tcc:2512:
undefined reference to `non-virtual thunk to
Engine::QT::Graphic::Screen::CancelFade()'
c:/Qt/2009.01/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.tcc:2512:
undefined reference to `non-virtual thunk to
Engine::QT::Graphic::Screen::GetHeight() const'
c:/Qt/2009.01/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.tcc:2512:
undefined reference to `non-virtual thunk to
Engine::QT::Graphic::Screen::GetWidth() const'
c:/Qt/2009.01/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.tcc:2513:
undefined reference to `non-virtual thunk to
Engine::QT::Graphic::Screen::ToggleFullscreen()'
c:/Qt/2009.01/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.tcc:2514:
undefined reference to `non-virtual thunk to
Engine::QT::Graphic::Screen::SetRenderer(Engine::Interface::IRenderer*)'
./debug\moc_QtScreen.o: In function
`ZN3Engine2QT7Graphic6Screen11qt_metacastEPKc':
D:/Development/Qt/SDK/bin/debug/moc_QtScreen.cpp:49: undefined
reference to `non-virtual thunk to
Engine::QT::Graphic::Screen::~Screen()'
D:/Development/Qt/SDK/bin/debug/moc_QtScreen.cpp:49: undefined
reference to `non-virtual thunk to
Engine::QT::Graphic::Screen::~Screen()'
D:/Development/Qt/SDK/bin/debug/moc_QtScreen.cpp:50: undefined
reference to `non-virtual thunk to
Engine::QT::Graphic::Screen::Update()'
Thank you
On Fri, Apr 10, 2009 at 1:56 AM, Tony Rietwyk
<tony.rietwyk at rightsoft.com.au> wrote:
> Hi,
>
> I think there can only be one QObject based anscestor in the list, and it
> must come first. Try:
>
> class Screen : public QGraphicsScene, public IScreen
> {
> Q_OBJECT
> ...
> };
>
> Hope that helps,
>
> Tony
>
>
>> This problem was solved, but sometimes it comes back (must be
>> QtCreator bug or something else).
>>
>> No I'm having another problem:
>>
>> ..\Include\platform\qt\QtScreen.h:137: Warning: Class Screen inherits
>> from two QObject subclasses IScreen and QGraphicsScene. This is not
>> supported!
>> debug\moc_QtScreen.cpp:39: error: `staticMetaObject' is not a member
>> of `Engine::Interface::IScreen'
>> debug\moc_QtScreen.cpp: In member function `virtual void*
>> Engine::QT::Graphic::Screen::qt_metacast(const char*)':
>> debug\moc_QtScreen.cpp:55: error: `qt_metacast' is not a member of
>> `Engine::Interface::IScreen'
>> debug\moc_QtScreen.cpp: In member function `virtual int
>> Engine::QT::Graphic::Screen::qt_metacall(QMetaObject::Call, int,
>> void**)':
>> debug\moc_QtScreen.cpp:60: error: `qt_metacall' is not a member of
>> `Engine::Interface::IScreen'
>>
>>
>> As I said in the first post, my code is this:
>>
>> class Screen : public IScreen, public QGraphicsScene
>> {
>> Q_OBJECT
>>
>> friend ...
>>
>> private:
>> ...
>>
>> };
>>
>>
>> And this is the one class in ~450 files that has Q_OBJECT. This class
>> is declared in header and defined in a cpp.
>> What is the problem now?
>>
>> Thanks!
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
Animal Frontline Liberation
More information about the Qt-interest-old
mailing list