[PyKDE] qscintilla fix

Hans-Peter Jansen hpj at urpla.net
Sat Mar 1 15:37:01 GMT 2003


Hi Phil,

in order to build this snapshot, I've needed an additional patch,
because this error:

g++ -c -pipe -w -O2 -march=i586 -mcpu=i686 -fno-exceptions -fmessage-length=0 
-DNO_DEBUG -D_REENTRANT -fPIC  -DQEXTSCINTILLA_MAKE_DLL -DQT -DSCI_LEXER 
-DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I../include -I../src 
-I/usr/lib/qt3/include -I/usr/lib/qt3/mkspecs/default -o PlatQt.o PlatQt.cxx
PlatQt.cxx: In static member function `static int 
Platform::DBCSCharLength(int, const char*)':
PlatQt.cxx:762: `MB_CUR_MAX' undeclared (first use this function)
PlatQt.cxx:762: (Each undeclared identifier is reported only once for each 
function it appears in.)
PlatQt.cxx:762: `mblen' undeclared (first use this function)
make: *** [PlatQt.o] Fehler 1

MB_CUR_MAX is defined in stdlib.h here (still SuSE 8.1), which is not listed 
in the includes of PlatQt.cxx. Patch attached.

Gerard, thanks for digging into the glitch below. Obviously I needed
your patch, too ;-) Hopefully it does the right thing, too...
BTW, did you advanced in the setup.py/pyqt_support.py tidy up?

Bye,
Pete

On Saturday 01 March 2003 09:58, gvermeul at grenoble.cnrs.fr wrote:
> Phil,
>
> Compiling qscintilla-*-20030227 with Qt-3.0.5 gives the following error:
>
> packer:~/BLFS/bld/qscintilla-1.51-x11-gpl-snapshot-20030227/qt$ make
> g++ -c -pipe -w -O2 -D_REENTRANT -fPIC  -DQEXTSCINTILLA_MAKE_DLL -DQT
> -DSCI_LEXER -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I../include -I../src
> -I/usr/lib/qt3/include -I/usr/lib/qt3/mkspecs/default -o SciListBox.o
> SciListBox.cxx SciListBox.cxx: In method `int ListBoxX::GetSelection()':
> SciListBox.cxx:180: no matching function for call to
> `SciListBox::selectedItem ()' make: *** [SciListBox.o] Error 1
> packer:~/BLFS/bld/qscintilla-1.51-x11-gpl-snapshot-20030227/qt$
>
> Grepping for selectedItem gives:
>
> packer:~/BLFS/bin$ grep selectedItem /usr/lib/qt3/include/*.h
> /usr/lib/qt3/include/qlistview.h:    QListViewItem * selectedItem() const;
> packer:~/BLFS/bin$
>
> And looking for the base classes of QListBox, gives:
>
> packer:~/BLFS/bin$ grep -3 'QListBox :' /usr/lib/qt3/include/qlistbox.h
> class QStringList;
>
>
> class Q_EXPORT QListBox : public QScrollView
> {
>     friend class QListBoxItem;
>     friend class QListBoxPrivate;
> packer:~/BLFS/bin$
>
> Attached patch fixes the compiler error (I hope it does what you mean)
>
> Gerard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qscintilla-1.51-x11-gpl-snapshot-20030227-platqt.diff
Type: text/x-diff
Size: 393 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20030301/179c16e6/qscintilla-1.51-x11-gpl-snapshot-20030227-platqt.bin


More information about the PyQt mailing list