[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyKDE] first sip example
From: Jean-Didier Lemarechal <Jean-Didier.Lemarechal () chups ! jussieu ! fr>
Date: 2005-05-31 8:00:04
Message-ID: 429C1984.1000603 () chups ! jussieu ! fr
[Download RAW message or body]
Hello,
I am trying to run my first SIP example.
And as you can figure, it's not working...
Thanks for help !
My MEEGData.sip file looks like this:
/********************************************/
// Interface to the MEEGFormat library.
%Module meegformat 0
class MEEGData {
%TypeHeaderCode
#include <format/MEEGData.h>
%End
public:
MEEGData ( string );
};
/********************************************/
I use the example configure.py script:
import os
import sipconfig
# The name of the SIP build file generated by SIP and used by the build
# system.
build_file = "MEEGData.sbf"
# Get the SIP configuration information.
config = sipconfig.Configuration()
# Run SIP to generate the code.
os.system(" ".join([config.sip_bin, "-c", ".", "-b", build_file,
"MEEGData.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 = ["MEEGData"]
# Generate the Makefile itself.
makefile.generate()
/***************************************************************/
and when I run 'python ./configure.py', I get the following error messages:
sip: string is undefined
Error: Unable to open "MEEGData.sbf": [Errno 2] No such file or directory:
'MEEGData.sbf'
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic