Results 1 to 10 of 10

Thread: Qt 4.6 - api\qscriptextensionplugin.h(43): Error: Undefined interface

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2009
    Posts
    7
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.6 - api\qscriptextensionplugin.h(43): Error: Undefined interface

    Hi,

    I had the same problem building 4.6 (SDK 2009.05) with MinGW. I discovered that the source as shipped from Nokia contains generated files in tmp\moc. I did a brute-force removal of all such generated files (find . -path '*/tmp/moc/* -type f -exec rm {} \; in cygwin) and were able to successfully build afterwards (crossing fingers, it's building the examples now so I guess the src is good :-)

    HTH,
    Tore

  2. The following 2 users say thank you to toreo for this useful post:

    doberkofler (7th December 2009), jml (25th March 2011)

  3. #2
    Join Date
    Oct 2009
    Location
    Vienna, Austria
    Posts
    57
    Thanks
    24
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Qt 4.6 - api\qscriptextensionplugin.h(43): Error: Undefined interface

    Quote Originally Posted by toreo View Post
    Hi,

    I had the same problem building 4.6 (SDK 2009.05) with MinGW. I discovered that the source as shipped from Nokia contains generated files in tmp\moc. I did a brute-force removal of all such generated files (find . -path '*/tmp/moc/* -type f -exec rm {} \; in cygwin) and were able to successfully build afterwards (crossing fingers, it's building the examples now so I guess the src is good :-)

    HTH,
    Tore
    Thank you! This is it.

    I've now been using:
    Qt Code:
    1. configure -debug-and-release -opensource -shared -no-qt3support -platform win32-msvc2003 -plugin-sql-oci
    To copy to clipboard, switch view to plain text mode 
    and it works like a charm.

    Hopefully (for all other Qt users) this will be fixed in the distribution.

    -Dieter

  4. #3
    Join Date
    Mar 2009
    Location
    Nanjing,China
    Posts
    40
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.6 - api\qscriptextensionplugin.h(43): Error: Undefined interface

    to delete the src/script/tmp/moc/debug_shared/mocinclude.tmp
    and the same file in release_shared.
    then nmake it.

  5. #4
    Join Date
    Dec 2006
    Posts
    33
    Thanks
    10
    Thanked 5 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt 4.6 - api\qscriptextensionplugin.h(43): Error: Undefined interface

    I had to modify this slightly to

    find . -path '*/tmp/moc*' -type f -exec rm '{}' \;

    Then it did the trick. Thanks!
    Jim L
    Seattle, WA

  6. #5
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Qt 4.6 - api\qscriptextensionplugin.h(43): Error: Undefined interface

    I recommend everyone who need to build Qt to do yourself a favor and download the Qt framework source files and build that, it's the "cleaner" way and it never failed for me

Similar Threads

  1. Replies: 3
    Last Post: 22nd December 2010, 14:22
  2. Replies: 12
    Last Post: 22nd March 2009, 11:22
  3. Interface composition and QObject
    By brcain in forum Qt Programming
    Replies: 9
    Last Post: 20th November 2006, 17:56
  4. Qt interface running extremely slowly...
    By jazztpt in forum Qt Programming
    Replies: 1
    Last Post: 4th February 2006, 11:12

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.