Re: [PyQt] Help needed with SIP

2011-08-10 Thread Vipul Raheja
I solved it, I was missing linking the ossimPlanetQt library in
makefile.extra_libs in config.py file.
Thanks for your replies.

On Tue, Aug 9, 2011 at 4:59 PM, Hans-Peter Jansen h...@urpla.net wrote:

 On Sunday 07 August 2011, 15:29:59 Vipul Raheja wrote:
  Hi,
 
  Thanks for your replies, Pete and Phil, I was able to fix the issues
  and build PyQt on my system by doing a few rebuilds with changes in
  them. I had earlier installed sip and PyQt using apt-get, but later I
  did the same by directly building the sources, and it worked.
 
  However, now I am facing a different issue. I was able to create a
  .so file by executing configure.oy with python and doing a make and
  make install, however, when I do an import of the library in python
  console, it gives me this error: http://paste.debian.net/125358/ (I
  hope paste.debian is fine, if not, kindly suggest an alternate way)

 Hard to say, what's going on. I guess, it cannot locate the ossim.so
 lib, at least not the version, that you linked to.

 Maybe, it's just missing a call to ldconfig.

 Try to check the python site libs with ldd, and compare with the build
 logs.

 If that stuff is publically available somewhere, please provide a
 detailed description on what you did, which versions, etc., and I might
 try to reproduce your issue in a couple of days..

 Pete




-- 
*Vipul Raheja*
Senior Undergraduate
Computer Science and Engineering (Dual)
Lab for Spatial Informatics
IIIT Hyderabad
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Help needed with SIP

2011-08-09 Thread Hans-Peter Jansen
On Sunday 07 August 2011, 15:29:59 Vipul Raheja wrote:
 Hi,

 Thanks for your replies, Pete and Phil, I was able to fix the issues
 and build PyQt on my system by doing a few rebuilds with changes in
 them. I had earlier installed sip and PyQt using apt-get, but later I
 did the same by directly building the sources, and it worked.

 However, now I am facing a different issue. I was able to create a
 .so file by executing configure.oy with python and doing a make and
 make install, however, when I do an import of the library in python
 console, it gives me this error: http://paste.debian.net/125358/ (I
 hope paste.debian is fine, if not, kindly suggest an alternate way)

Hard to say, what's going on. I guess, it cannot locate the ossim.so 
lib, at least not the version, that you linked to.

Maybe, it's just missing a call to ldconfig.

Try to check the python site libs with ldd, and compare with the build 
logs.

If that stuff is publically available somewhere, please provide a 
detailed description on what you did, which versions, etc., and I might 
try to reproduce your issue in a couple of days..

Pete
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Help needed with SIP

2011-08-07 Thread Phil Thompson
On Sun, 7 Aug 2011 02:58:05 +0530, Vipul Raheja vipul.ii...@gmail.com
wrote:
 Hi,
 
 Thanks for your reply Phil.
 
 I had earlier installed SIP and PyQt4 through apt-get in Ubuntu, but was
 still getting the same problem since there was no QtGuimod.sip file
present
 on my system. I removed them and tried installing SIP and PyQt4 again
from
 their sources. I am getting the following error now while building PyQt4
 and
 cannot find any answers over the web : http://pastebin.com/apSq180u

You probably have bits of the older version of SIP still installed.

Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Help needed with SIP

2011-08-07 Thread Vipul Raheja
Hi,

Thanks for your replies, Pete and Phil, I was able to fix the issues and
build PyQt on my system by doing a few rebuilds with changes in them. I had
earlier installed sip and PyQt using apt-get, but later I did the same by
directly building the sources, and it worked.

However, now I am facing a different issue. I was able to create a .so file
by executing configure.oy with python and doing a make and make install,
however, when I do an import of the library in python console, it gives me
this error: http://paste.debian.net/125358/ (I hope paste.debian is fine, if
not, kindly suggest an alternate way)

Here is my config.py file : http://paste.debian.net/125359/

Help will be greatly appreciated.

Thanks and regards,
Vipul Raheja


On Sun, Aug 7, 2011 at 4:22 AM, Hans-Peter Jansen h...@urpla.net wrote:

 On Saturday 06 August 2011, 23:28:05 Vipul Raheja wrote:
  Hi,
 
  Thanks for your reply Phil.
 
  I had earlier installed SIP and PyQt4 through apt-get in Ubuntu, but
  was still getting the same problem since there was no QtGuimod.sip
  file present on my system.

 Probably, your local sip/PyQt maintainer provides some matching -devel
 packages somewhere, since without these files, you cannot build any
 descendant packages ({python-}qscintilla, PyKDE, PyQwt, ..).

  I removed them and tried installing SIP
  and PyQt4 again from their sources. I am getting the following error
  now while building PyQt4 and cannot find any answers over the web :
  http://pastebin.com/apSq180u

 Don't provide build logs via paste bin services, please. When they
 vanish, followers by search engines will fail.

 This looks like the usual installed by packetmanager/from source
 dichotomy (for package sip in your case).

 Pete
 ___
 PyQt mailing listPyQt@riverbankcomputing.com
 http://www.riverbankcomputing.com/mailman/listinfo/pyqt

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Help needed with SIP

2011-08-06 Thread Vipul Raheja
Hi all,

I am trying to wrap the Qt module of OSSIM, an image-processing tool. I was
just beginning to dive into the wrapping process and created a .sip file to
wrap a class, ossimPlanetQtAboutDialog. But I am getting the following error
on executing the sip command:

vipul@vipul-laptop:~/ossim-svn/src/pyossim/sip$ sip -I /usr/include/qt4 -c .
pyossim.sip
sip: /usr/include/qt4/QtGui/QWidget:1: syntax error

Here is the file ossimPlanetAboutDialog.h that I am trying to wrap:

#ifndef ossimPlanetAboutDialog_HEADER
#define ossimPlanetAboutDialog_HEADER
#include QtGui/QDialog
#include ossimPlanetQt/ui_ossimPlanetQtAboutDialog.h
#include ossimPlanetQt/ossimPlanetQtExport.h

class OSSIMPLANETQT_DLL ossimPlanetQtAboutDialog :  public QDialog, public
Ui::ossimPlanetQtAboutDialog
{
public:
ossimPlanetQtAboutDialog(QWidget* parent);
};

#endif



Here is the file pyossim.sip that I am trying to compile:

%Module pyossim 0

%Import QtGui/QWidget
%Import QtGui/QDialog

class ossimPlanetQtAboutDialog : QDialog
{

%TypeHeaderCode
#include ossimPlanetQt/ui_ossimPlanetQtAboutDialog.h
#include ossimPlanetQt/ossimPlanetQtAboutDialog.h
%End

public:
ossimPlanetQtAboutDialog (QWidget *parent /TransferThis/ = 0);
};


Kindly help.

Thanks and regards,
Vipul Raheja
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Help needed with SIP

2011-08-06 Thread Phil Thompson
On Sat, 6 Aug 2011 20:45:19 +0530, Vipul Raheja vipul.ii...@gmail.com
wrote:
 Hi all,
 
 I am trying to wrap the Qt module of OSSIM, an image-processing tool. I
was
 just beginning to dive into the wrapping process and created a .sip file
to
 wrap a class, ossimPlanetQtAboutDialog. But I am getting the following
 error
 on executing the sip command:
 
 vipul@vipul-laptop:~/ossim-svn/src/pyossim/sip$ sip -I /usr/include/qt4
-c
 .
 pyossim.sip
 sip: /usr/include/qt4/QtGui/QWidget:1: syntax error
 
 Here is the file ossimPlanetAboutDialog.h that I am trying to wrap:


 #ifndef ossimPlanetAboutDialog_HEADER
 #define ossimPlanetAboutDialog_HEADER
 #include QtGui/QDialog
 #include ossimPlanetQt/ui_ossimPlanetQtAboutDialog.h
 #include ossimPlanetQt/ossimPlanetQtExport.h
 
 class OSSIMPLANETQT_DLL ossimPlanetQtAboutDialog :  public QDialog,
public
 Ui::ossimPlanetQtAboutDialog
 {
 public:
 ossimPlanetQtAboutDialog(QWidget* parent);
 };
 
 #endif


 
 
 Here is the file pyossim.sip that I am trying to compile:


 %Module pyossim 0
 
 %Import QtGui/QWidget
 %Import QtGui/QDialog

These are Qt .h files not .sip files.

Do something like...

%Import QtGui/QtGuimod.sip

Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Help needed with SIP

2011-08-06 Thread Vipul Raheja
Hi,

Thanks for your reply Phil.

I had earlier installed SIP and PyQt4 through apt-get in Ubuntu, but was
still getting the same problem since there was no QtGuimod.sip file present
on my system. I removed them and tried installing SIP and PyQt4 again from
their sources. I am getting the following error now while building PyQt4 and
cannot find any answers over the web : http://pastebin.com/apSq180u

Kindly help.

Thanks and regards,
Vipul Raheja


On Sat, Aug 6, 2011 at 9:19 PM, Phil Thompson
p...@riverbankcomputing.comwrote:

 On Sat, 6 Aug 2011 20:45:19 +0530, Vipul Raheja vipul.ii...@gmail.com
 wrote:
  Hi all,
 
  I am trying to wrap the Qt module of OSSIM, an image-processing tool. I
 was
  just beginning to dive into the wrapping process and created a .sip file
 to
  wrap a class, ossimPlanetQtAboutDialog. But I am getting the following
  error
  on executing the sip command:
 
  vipul@vipul-laptop:~/ossim-svn/src/pyossim/sip$ sip -I /usr/include/qt4
 -c
  .
  pyossim.sip
  sip: /usr/include/qt4/QtGui/QWidget:1: syntax error
 
  Here is the file ossimPlanetAboutDialog.h that I am trying to wrap:
 

 
  #ifndef ossimPlanetAboutDialog_HEADER
  #define ossimPlanetAboutDialog_HEADER
  #include QtGui/QDialog
  #include ossimPlanetQt/ui_ossimPlanetQtAboutDialog.h
  #include ossimPlanetQt/ossimPlanetQtExport.h
 
  class OSSIMPLANETQT_DLL ossimPlanetQtAboutDialog :  public QDialog,
 public
  Ui::ossimPlanetQtAboutDialog
  {
  public:
  ossimPlanetQtAboutDialog(QWidget* parent);
  };
 
  #endif
 

 
 
 
  Here is the file pyossim.sip that I am trying to compile:
 

 
  %Module pyossim 0
 
  %Import QtGui/QWidget
  %Import QtGui/QDialog

 These are Qt .h files not .sip files.

 Do something like...

 %Import QtGui/QtGuimod.sip

 Phil

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Help needed with SIP

2011-08-06 Thread Hans-Peter Jansen
On Saturday 06 August 2011, 23:28:05 Vipul Raheja wrote:
 Hi,

 Thanks for your reply Phil.

 I had earlier installed SIP and PyQt4 through apt-get in Ubuntu, but
 was still getting the same problem since there was no QtGuimod.sip
 file present on my system.

Probably, your local sip/PyQt maintainer provides some matching -devel 
packages somewhere, since without these files, you cannot build any 
descendant packages ({python-}qscintilla, PyKDE, PyQwt, ..).

 I removed them and tried installing SIP 
 and PyQt4 again from their sources. I am getting the following error
 now while building PyQt4 and cannot find any answers over the web :
 http://pastebin.com/apSq180u

Don't provide build logs via paste bin services, please. When they 
vanish, followers by search engines will fail.

This looks like the usual installed by packetmanager/from source 
dichotomy (for package sip in your case).

Pete
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt