From: Kenneth M. <ken...@ya...> - 2013-08-28 20:02:03
|
ping :) ________________________________ From: Kenneth Miller <ken...@ya...> To: "swi...@li..." <swi...@li...> Sent: Monday, August 26, 2013 8:16 AM Subject: Using SWIG to wrap application written in QT So I have this application that I'm writing that uses the Qt libraries. I want to wrap the my application and all of it's objects so that I can call it from a scripting language quickly, be it python, or ocaml or whatever. Anyway, for the last bit I've been trying to get a module compiled that will allow me to dynamically call into the classes & functions that I've defined. SWIG seems to work right, and recently I even got my own self defined class within a module from my C++ source to run, although it segfaulted and I have yet to find out exactly why. Can this be done? I mean, I was wondering it would be more appropriate that I use SIP, or if maybe what I'm looking to do is dangerous because I am building off the Qt platform... One of the problems that I'm facing (I think) is that some arguments to my classes and functions are Qt objects. But I can't export those functions in my SWIG module without also writing a wrapper to the Qt objects manually (is that right?). I'm very new to SWIG, but I definitely need the speed of a scripting language for my development, because C++ and qt without it are just tremendously slow. Plus I have a slow machine. Can anybody advise me what the best route is in order to get what I want? SIP or SWIG? |