PDA

View Full Version : Qt 4.7.1-- api\qscriptextensionplugin.h(43): Error: Undefined interface



mmroden
16th January 2011, 21:16
I saw the threads that were posted over a year ago on this topic, and none of their suggested solutions worked for me.

I'm getting this error after trying to build Qt from source, which I need to do in order to use Qt with commontk and vtk.

Platform: Windows 7 64 bit
Visual Studio 2008
Qt 4.7.1 (most recent, as of Friday)

build command lines:

D:\Qt\2010.05\qt>configure -release -opensource -shared -no-qt3support -platform win32-msvc2008

followed by

D:\Qt\2010.05\qt>nmake


These errors are produced:
api\qscriptextensionplugin.h(43): Error: Undefined interface
NMAKE : fatal error U1077: 'D:\Qt\2010.05\qt\bin\moc.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.


Deleting the contents of the tmp/moc directory don't help (especially as they get repopulated as the configure script runs).

I understand that there's also the jom build tool, but if it doesn't work in a single thread, I don't see how it can work with multiple threads/processes.

Please help!

mmroden
17th January 2011, 05:18
So after following the advice in this thread:
http://www.qtforum.org/article/31561/error-when-building-libraries.html

I now am down to these errors:

mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "release\threadedfortuneserver.exe". Acce
ss is denied.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe"' : return code '0x1f'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

I assume that's an install directory error, ie, trying to put things in a system directory or something. Or is it?