Results 1 to 10 of 10

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

  1. #1
    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 Qt 4.6 - api\qscriptextensionplugin.h(43): Error: Undefined interface

    Just downloaded Qt 4.6 and tried to build 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 

    but during the build I get the following error message:

    Qt Code:
    1. D:\Qt\2009.05-vc\qt\bin\moc.exe -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DJSC=QTJSC -Djscyy
    2. parse=qtjscyyparse -Djscyylex=qtjscyylex -Djscyyerror=qtjscyyerror -DQT_BUILD_SCRIPT_LIB -DQT_NO_USING_NAMESPACE -DQLALR_NO_QSCRIPTG
    3. RAMMAR_DEBUG_INFO -DQT_MAKEDLL -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -D_USE_MATH_DEFINES -DBUILDING_QT__=1
    4. -DUSE_SYSTEM_MALLOC -DBUILDING_QT__ -DBUILDING_JavaScriptCore -DBUILDING_WTF -DENABLE_JIT=0 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWT
    5. F_CHANGES=1 -DNDEBUG -DJS_EXPORT= -DJS_EXPORTDATA= -DQT_DLL -DQT_CORE_LIB @tmp\moc\debug_shared/mocinclude.tmp -D_MSC_VER=1310 -DWIN
    6. 32 ..\3rdparty\javascriptcore\JavaScriptCore\wtf\qt\MainThreadQt.cpp -o tmp\moc\debug_shared\MainThreadQt.moc
    7. D:\Qt\2009.05-vc\qt\bin\moc.exe -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DJSC=QTJSC -Djscyy
    8. parse=qtjscyyparse -Djscyylex=qtjscyylex -Djscyyerror=qtjscyyerror -DQT_BUILD_SCRIPT_LIB -DQT_NO_USING_NAMESPACE -DQLALR_NO_QSCRIPTG
    9. RAMMAR_DEBUG_INFO -DQT_MAKEDLL -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -D_USE_MATH_DEFINES -DBUILDING_QT__=1
    10. -DUSE_SYSTEM_MALLOC -DBUILDING_QT__ -DBUILDING_JavaScriptCore -DBUILDING_WTF -DENABLE_JIT=0 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWT
    11. F_CHANGES=1 -DNDEBUG -DJS_EXPORT= -DJS_EXPORTDATA= -DQT_DLL -DQT_CORE_LIB @tmp\moc\debug_shared/mocinclude.tmp -D_MSC_VER=1310 -DWIN
    12. 32 api\qscriptengine.h -o tmp\moc\debug_shared\moc_qscriptengine.cpp
    13. D:\Qt\2009.05-vc\qt\bin\moc.exe -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DJSC=QTJSC -Djscyy
    14. parse=qtjscyyparse -Djscyylex=qtjscyylex -Djscyyerror=qtjscyyerror -DQT_BUILD_SCRIPT_LIB -DQT_NO_USING_NAMESPACE -DQLALR_NO_QSCRIPTG
    15. RAMMAR_DEBUG_INFO -DQT_MAKEDLL -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -D_USE_MATH_DEFINES -DBUILDING_QT__=1
    16. -DUSE_SYSTEM_MALLOC -DBUILDING_QT__ -DBUILDING_JavaScriptCore -DBUILDING_WTF -DENABLE_JIT=0 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWT
    17. F_CHANGES=1 -DNDEBUG -DJS_EXPORT= -DJS_EXPORTDATA= -DQT_DLL -DQT_CORE_LIB @tmp\moc\debug_shared/mocinclude.tmp -D_MSC_VER=1310 -DWIN
    18. 32 bridge\qscriptqobject_p.h -o tmp\moc\debug_shared\moc_qscriptqobject_p.cpp
    19. D:\Qt\2009.05-vc\qt\bin\moc.exe -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DJSC=QTJSC -Djscyy
    20. parse=qtjscyyparse -Djscyylex=qtjscyylex -Djscyyerror=qtjscyyerror -DQT_BUILD_SCRIPT_LIB -DQT_NO_USING_NAMESPACE -DQLALR_NO_QSCRIPTG
    21. RAMMAR_DEBUG_INFO -DQT_MAKEDLL -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -D_USE_MATH_DEFINES -DBUILDING_QT__=1
    22. -DUSE_SYSTEM_MALLOC -DBUILDING_QT__ -DBUILDING_JavaScriptCore -DBUILDING_WTF -DENABLE_JIT=0 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWT
    23. F_CHANGES=1 -DNDEBUG -DJS_EXPORT= -DJS_EXPORTDATA= -DQT_DLL -DQT_CORE_LIB @tmp\moc\debug_shared/mocinclude.tmp -D_MSC_VER=1310 -DWIN
    24. 32 api\qscriptextensionplugin.h -o tmp\moc\debug_shared\moc_qscriptextensionplugin.cpp
    25. api\qscriptextensionplugin.h(43): Error: Undefined interface
    26. NMAKE : fatal error U1077: 'D:\Qt\2009.05-vc\qt\bin\moc.exe' : return code '0x1'
    To copy to clipboard, switch view to plain text mode 

    Any help is appreciated

  2. #2
    Join Date
    Nov 2009
    Posts
    6
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

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

    I had the same problem on my first attempt to build the system.
    4.5.3 built for the win32 tools, so I reverted to wait for the build fix.

  3. #3
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

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

    Since when can you use opensource version with Visual Studio?
    Qt 5.3 Opensource & Creator 3.1.2

  4. #4
    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 MarkoSan View Post
    Since when can you use opensource version with Visual Studio?
    Why should this not be working? In Qt 4.5 I have no problem.

  5. #5
    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 barryhf View Post
    I had the same problem on my first attempt to build the system.
    4.5.3 built for the win32 tools, so I reverted to wait for the build fix.
    But now with 4.6 released this should work

  6. #6
    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

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

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

  8. #7
    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

  9. #8
    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.

  10. #9
    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

  11. #10
    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, 15:22
  2. Replies: 12
    Last Post: 22nd March 2009, 12:22
  3. Interface composition and QObject
    By brcain in forum Qt Programming
    Replies: 9
    Last Post: 20th November 2006, 18:56
  4. Qt interface running extremely slowly...
    By jazztpt in forum Qt Programming
    Replies: 1
    Last Post: 4th February 2006, 12: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.