[QScintilla] Linker error in QScintilla python bindings

Andre Alexander Bell pyqt at andre-bell.de
Sun Jun 1 22:51:19 BST 2008


Hello,

I've just tried to upgrade my installation to the most recent snapshots 
of Qt library, SIP, PyQt, QScintilla, and Eric versions. I'm running MS 
Visual Studio 2008 on Windows XP and have proceeded in the order given 
in the Eric manual. I had no problem in compiling Qt, SIP, QScintilla, 
and PyQt. I can run all Qt native example apps. I can run sip. I can 
import PyQt4 in python.
After this worked well, I tried to continue and compile the QScintilla 
python binding. However, when compiling I receive the following linker 
error:

C:\Programme\QScintilla\Python>python configure.py
QScintilla 2.2.1-snapshot-20080309 is being used.
PyQt 4.4.3-snapshot-20080531 is being used.
Qt v4.4.0 free edition is being used.
SIP 4.7.7-snapshot-20080530 is being used.
The QScintilla module will be installed in
C:\Programme\Python\Lib\site-packages\PyQt4.
The QScintilla API file will be installed in 
C:\Programme\Qt4\qsci\api\python.
The QScintilla .sip files will be installed in 
C:\Programme\Python\sip\PyQt4.
Generating the C++ source for the Qsci module...
Creating the Makefile for the Qsci module...

C:\Programme\QScintilla\Python>nmake
[...] some more output [...]
sipQsciQsciScintillaBase.cpp
sipQsciQsciScintilla.cpp
Generating Code...
        link /NOLOGO /DLL /MANIFEST /MANIFESTFILE:Qsci.pyd.manifest 
/INCREMENTAL
:NO /OUT:Qsci.pyd @C:\DOKUME~1\graham\LOKALE~1\Temp\nm1684.tmp
   Creating library Qsci.lib and object Qsci.exp
sipQsciQsciMacro.obj : error LNK2001: unresolved external symbol 
"public: static
 struct QMetaObject const QsciMacro::staticMetaObject" 
(?staticMetaObject at QsciMa
cro@@2UQMetaObject@@B)
sipQsciQsciLexerVHDL.obj : error LNK2001: unresolved external symbol 
"public: st
atic struct QMetaObject const QsciLexerVHDL::staticMetaObject" 
(?staticMetaObjec
t at QsciLexerVHDL@@2UQMetaObject@@B)
sipQsciQsciLexerTeX.obj : error LNK2001: unresolved external symbol 
"public: sta
tic struct QMetaObject const QsciLexerTeX::staticMetaObject" 
(?staticMetaObject@
QsciLexerTeX@@2UQMetaObject@@B)
sipQsciQsciLexerTCL.obj : error LNK2001: unresolved external symbol 
"public: sta
tic struct QMetaObject const QsciLexerTCL::staticMetaObject" 
(?staticMetaObject@
QsciLexerTCL@@2UQMetaObject@@B)
[...] some more LNK2001 [...]
Qsci.pyd : fatal error LNK1120: 28 unresolved externals
NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio 
9.0\VC\BIN\lin
k.EXE"' : return code '0x460'
Stop.

I've been reading the docs, searched the mailinglist archive and the 
web, but could not figure out, why it fails.
Did I miss anything? Can you give me a pointer, where to find an answer, 
why the compilation fails?

Thanks in advance.

Greetings


Andre


More information about the QScintilla mailing list