[Qt-interest] calling Qt based library from Java
Michael S
msherman77 at yahoo.com
Mon Aug 30 18:53:47 CEST 2010
Thanks Thiago.
We don't use jars, it's just one .class file. We don't assume there's qt on the customer's system (even if it's installed it's an older version, they're using an earlier version of (open)SUSE). I provide qt dlls. They sit in the same dir where my own dll is.
Also, I forgot to mention, we ask the customer to set the LD_LIBRARY_PATH to current dir.
Michael
--- On Mon, 8/30/10, Thiago Macieira <thiago at kde.org> wrote:
> From: Thiago Macieira <thiago at kde.org>
> Subject: Re: [Qt-interest] calling Qt based library from Java
> To: qt-interest at trolltech.com
> Date: Monday, August 30, 2010, 12:00 PM
> Em Segunda-feira 30 Agosto 2010, às
> 15:56:14, Michael S escreveu:
> > When java code calls the DLL, the library fails to
> load jpeg and tiff
> > images. It used to happen before with C, but now that
> I have the
> > imageformats directory with all the necessary
> plug-ins, it works
> > perfectly. I am using Qt 4.6.3, dynamic loading.
> Running on SUSE Linux.
>
> I don't know much about Java, so you have to fill in the
> blanks here.
>
> Is the JNI loading libQtGui.so from the system? Or is that
> in a .jar package
> somewhere?
>
> If it's a .jar somewhere, then you most likely forgot to
> include the jpeg and
> tiff plugins. They must be found in the Qt installation
> dir, subdirectory
> plugins/imageformats.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT)
> kde.org
> Senior Product Manager - Nokia, Qt Development
> Frameworks
> PGP/GPG: 0x6EF45358; fingerprint:
> E067 918B B660 DBD1 105C 966C
> 33F5 F005 6EF4 5358
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list