[PyKDE] qscintilla fix

2003-03-01 Thread gvermeul
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



-
This message was sent using HTTPS service from CNRS Grenoble.
 ---   https://grenoble.cnrs.fr   --- 


qscintilla-1.51-x11-gpl-snapshot-20030227.patch
Description: Binary data


Re: [PyKDE] qscintilla fix

2003-03-01 Thread Hans-Peter Jansen
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, [EMAIL PROTECTED] 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
--- qscintilla-1.51-x11-gpl-snapshot-20030227/qt/PlatQt.cxx~	2003-02-28 02:04:15.0 +0100
+++ qscintilla-1.51-x11-gpl-snapshot-20030227/qt/PlatQt.cxx	2003-03-01 15:20:39.0 +0100
 -21,10 +21,11 
 
 
 #include stdio.h
 #include stdarg.h
 #include string.h
+#include stdlib.h
 
 #include qapplication.h
 #include qwidget.h
 #include qfont.h
 #include qpixmap.h


Re: [PyKDE] qscintilla fix - pyqt_distutils

2003-03-01 Thread Hans-Peter Jansen
Hi Gerard,

you may have noticed, that I've announced among others things your 
current PyQwt package. Since I'm a bit tight timewise at the moment 
(because my girlfriend :), just let me attest, your package builds 
without a hitch! Therefore I haven't even needed to take a single
look into it, thus your rewritten pyqt_* stuff gone by unnoticed ;-)
Will do it soon. (For my vindication, this was after my qscintilla 
build note). 

Thanks,
Pete

On Saturday 01 March 2003 17:25, [EMAIL PROTECTED] wrote:
 Hi Pete,

  BTW, did you advanced in the setup.py/pyqt_support.py tidy up?

 Yes, I did and tested it in an already abandoned project: a PyQt
 wrapper for a Qt-C++ class for VTK (a 3D visualization toolkit).
 The project was motivated by the fact that the PyQt widgets included
 with VTK did not work on Windows.
 In the end, I got into fixing the pure Python PyQt widgets that
 come with VTK (they are now in the VTK cvs -- a new release VTK-4.2
 is imminent).

 The most interesting widget -- QVTKRenderWindowInteractor.py -- is
 also available from my web page ( http://gerard.vermeulen.free.fr ).
 A happy user, who discovered it by accident, reports that it works, but
 that it needs a little bit of tweaking. QVTKRenderWindowInteractor
 is compatible with VTK-4.0.

 The new setup.py/pyqt_support.py will be part of a new PyQwt release.
 Actually, pyqt_support.py will be replaced by a pyqt_distutils directory,
 writing a setup.py script will be much simpler, and recompiling minimized
 (for my own sake).

Really cool news.

 Gerard

___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde