Qt-jambi-interest Archive, September 2006
link c++ library
Message 1 in thread
Hi list,
I m testing QT jambi Technology and I want to link a library made with QT4
(C++) on my application of QT jamby, This is possible or I need to rewrite
my library?
tanks
Message 2 in thread
luis muro wrote:
> Hi list,
>
> I m testing QT jambi Technology and I want to link a library made with QT4
> (C++) on my application of QT jamby, This is possible or I need to rewrite
> my library?
If you have an existing C++ library and based on Qt / C++ and you want
to use this library in Qt Jambi, you can map this library into Java
using the Qt Jambi generator. The example in the generator_example
directory shows how this is done.
Unfortunatly there was a bug in the tp2 package, so this example doesn't
compile... however:
There's a quick fix for this that may help you.
1. Open a command line shell
2. cd into the directory
path_to_qtjambi/cpp/com_trolltech_examples_generator
3. Write the following two lines on the command line
echo. > metainfo.cpp
echo void __metainfo_init() {} > metainfo.h
-
I hope this helps,
Gunnar