Dear pyqt people,
I am having a problem with pyqt/sip doing what I think is quite a simple thing. I have a sip file:

%Module ffmpeg_reader_sip

%Import QtGui/qimage.sip

class FFMPEGReader {
%TypeHeaderCode
#include "ffmpeg_reader.h"
%End

public:
  FFMPEGReader(const char* filename);
  ~FFMPEGReader();
  QImage ReadFrame();
  int width();
  int height();
};

However, whether I try the command line
/System/Library/Frameworks/Python.framework/Versions/2.3/bin/sip -x VendorID -t WS_MACX -x PyQt_NoPrintRangeBug -t Qt_4_3_0 -x Py_DateTime -g -I/System/Library/Frameworks/Python.framework/Versions/ 2.3/share/sip/PyQt4 -c . ffmpeg_reader_sip.sip

or
python  configure.py  (using configure.py file below)

I get the error

sip: /System/Library/Frameworks/Python.framework/Versions/2.3/share/ sip/PyQt4/QtGui/qimage.sip:52: Lower bound is not a time version

This is with Qt-4.3, PyQt-4.3.1, sip 4.7.1

Thanks for any help,
Stuart McNicholas

configure.py file:

import os
import sipconfig
from  PyQt4 import pyqtconfig

# The name of the SIP build file generated by SIP and used by the build
# system.
build_file = "ffmpeg_reader_sip.sbf"

# Get the SIP configuration information.
config = pyqtconfig.Configuration()

# Get the extra SIP flags needed by the imported qt module.  Note that
# this normally only includes those flags (-x and -t) that relate to SIP's
# versioning system.
qt_sip_flags = config.pyqt_sip_flags
# Run SIP to generate the code.
os.system(" ".join([config.sip_bin, "-c", ".", "-b", build_file, "- I", config.pyqt_sip_dir, qt_sip_flags,"ffmpeg_reader_sip.sip"]))

# Create the Makefile.
makefile = sipconfig.SIPModuleMakefile(config, build_file)

# Add the library we are wrapping. The name doesn't include any platform
# specific prefixes or extensions (e.g. the "lib" prefix on UNIX, or the
# ".dll" extension on Windows).
makefile.extra_libs = ["ffmpeg_reader_sip"]

# Generate the Makefile itself.
#makefile.generate()
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to