Results 1 to 5 of 5

Thread: cross compile problems - Undefined rinterface & ASSERT failure

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2009
    Posts
    65
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android
    Thanks
    10
    Thanked 4 Times in 4 Posts

    Default Re: cross compile problems - Undefined rinterface & ASSERT failure

    The first one is with Q_INTERFACES. That should realy be platform independant.
    I comment it out just to see is that the only problem, and it isn't.
    I plan to fix it (with help from here), not to leave it commented (i spent some time to create the interface)
    The other problem, you are right about one thing, i should not skip to next problem before solving first one.
    Anyway, that code has nothing in common with interface, and should also be platform independant.
    The thing that worries me is that it doesnt feel like "code once, deploy everywhere",

    For the QAbstractModel part, i went to qt source of QAbstractTableModel, and checked implementation, and fixed my own. The question remains, why there isn't ASSERT in linux if it was "something wrong"
    For the Q_INTERFACE part still need help, anyone had simmilar problem, or i am one of few trying to use Q_INTERFACE?

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3
    Thanked 127 Times in 126 Posts

    Default Re: cross compile problems - Undefined rinterface & ASSERT failure

    because *nix compilers and win compilers aren't identical. They will not be 100% c++ standard conformant, and indeed some of them let you get away with non-conformant code by filling in the blanks.

    If you want help with your problem, please read my sig.


    Added after 7 minutes:


    oh, and btw, I have just checked 'undefined interface' as it smells a bit - and I was right to suspect something. It is not a c++ compiler error, but a moc error.

    http://lists.trolltech.com/qt-intere...ad00531-0.html
    Last edited by amleto; 4th December 2012 at 13:16.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

Similar Threads

  1. Help!!!Problems in building Qt4.7.3 for Vxworks.. cross compile
    By study_c in forum Installation and Deployment
    Replies: 1
    Last Post: 7th September 2012, 12:54
  2. Assert failure with tablet installed
    By Spectralist in forum Qt Programming
    Replies: 2
    Last Post: 21st April 2011, 14:31
  3. Replies: 0
    Last Post: 9th April 2009, 07:12
  4. Debugging ASSERT failure in Qt header.
    By Doug Broadwell in forum Qt Programming
    Replies: 6
    Last Post: 27th December 2008, 02:40
  5. QWT assert failure
    By Andimat in forum Qwt
    Replies: 1
    Last Post: 21st June 2007, 15:36

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.