2008/5/19 Gunnar Sletta <[EMAIL PROTECTED]>:
> Bráulio Barros de Oliveira wrote:
>
> I had already tried setting QT_PLUGIN_PATH both on eclipse and on the
>> shell
>> and unfortunetely it didn't work.
>>
>
>
> QApplication.addLibraryPath("/home/braulio/qtjambi-linux32-gpl-4.3.4_01/plugins");
>>
>
> This one is the correct to use.
>
> The abose function put just after QApplication.initialize(args) also
>> didn't
>> worked
>>
>
>
> Also, I've restored the original sqldrivers directory, which contains the
>> libqsqlite.so driver only.
>> In both cases the list of available drivers is empty. (shouldn't it show
>> at
>> leeast the sqlite driver?)
>>
>
> Have you lost jpeg support as well? If you start the launcher and open the
> image viewer, can you see jpegs?
Uhm, the strange thing is that it work on the launcher (./qtjambi.sh),
demonstrating that the plugins work on it.
>
>
> Another insteresting thing i've noticed is that the output of
>>
>> System.out.println(QLibraryInfo.location(QLibraryInfo.LibraryLocation.PluginsPath));
>> is /home/qt/package-builder/qt-gpl/plugins. Shouldn't it be a relative
>> path,
>> as this is a static package (qtjambi-linux32-gpl-4.3.4_01.tar.gz)?
>>
>
> This is how qt binaries work, unfortunatly. The hardcoded paths in the
> binary are created at compile time. You can replace them using a number of
> deployment tricks, such as setting QT_PLUGIN_PATH, adding library path or
> creating your own qt.conf file (http://doc.trolltech.com/4.4/qt-conf.html).
> From Java these approaches are less than ideal, which we recommend the JDBC
> approach. With 4.4's improved deployment system most of the plugin nastyness
> is also handled.
I would like to try JDBC, but I'm lazy to discover on how to connect it to
PostgreSQL... Besides that I dont' know its driver name, I think it might
need to download and include the driver on the source code. Also, as a Java
novice, I don't know nothing about JDBC.
I was trying to make a compile qtjambi from source so I can use my system qt
libraries. Also, I would do a package for ArchLinux. Unfortunetely, the
build failed with the following messages:
./com/trolltech/qt/core/QLocale.java:1338: cannot find symbol
symbol : method
toChar(java.lang.String,com.trolltech.qt.QNativePointer,int)
location: class com.trolltech.qt.core.QLocale
char returned = (char) toChar(s, ok, base);
^
./com/trolltech/qt/core/QLocale.java:1338: inconvertible types
found : toChar
required: char
char returned = (char) toChar(s, ok, base);
^
./com/trolltech/qt/core/QByteArray.java:697: cannot find symbol
symbol : method toChar_private(com.trolltech.qt.QNativePointer,int)
location: class com.trolltech.qt.core.QByteArray
char res = toChar_private(ok, base);
^
Is there any kind of patch for it?
bráulio
>
> -
> Gunnar
>
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest