[Qt-interest] calling Qt based library from Java

Thiago Macieira thiago at kde.org
Mon Aug 30 18:00:20 CEST 2010


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100830/1171daea/attachment.bin 


More information about the Qt-interest-old mailing list