Trolltech Home | Qt-jambi-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-jambi-interest Archive, January 2008
QtJambiAwtBridge problem - pre-built for Windows?


Message 1 in thread

This is a follow-up to an earlier technical support effort:
I am a former Qt/C++ developer now trying to use the (pre-built)
evaluation version of Qt Jambi for Windows to put together a demo of
using Qt Jambi as part of an existing large Java-based development
effort.  I have the Qt Jambi evaluation download running successfully
within our environment, but to make the demo useful I need to be able to
embed some Qt widgets within Swing/Awt containers so I was interested in
trying out the QtJambiAwtBridge.  However, since I do not currently have
a Qt/C++ development environment (only Java), I requested and received a
pre-compiled version of the bridge.  Unfortunately I cannot get it to
successfully load the native qawt.dll library despite all my environment
configuration efforts, and I only get UnsatisfiedLink errors even though
the library is located at referenced paths (actually in the same
directory as QtCore4.dll and jawt.dll which do load successfully).

Running the QtInAwt example using the -Dcom.trolltech.qt.verbose-loading
option, provides the output listed below.  My assumption at this point
is that the qawt.dll library was not compiled in a way that is
compatible with how the Qt Jambi evaluation version I downloaded was
compiled.  Can anyone provide any assistance here, or provide me a
pre-compiled version of qawt.dll for Windows that is compatible with the
Qt Jambi evaluation download?

Thank you.  Any help is much appreciated!
-John DeNisi
john.denisi@xxxxxxxxx

No 'qt_system_libs' file
Loaded(C:\Qt\qtjambi-win32-commercial-4.3.3_01\bin\QtCore4.dll) using
deploy path, as QtCore4.dll
Loaded(C:\Qt\qtjambi-win32-commercial-4.3.3_01\bin\QtGui4.dll) using
deploy path, as QtGui4.dll
Loaded(C:\Qt\qtjambi-win32-commercial-4.3.3_01\bin\qtjambi.dll) using
deploy path, as qtjambi.dll
Already loaded: QtCore4.dll skipping it.
Already loaded: QtGui4.dll skipping it.
Loaded(C:\Qt\qtjambi-win32-commercial-4.3.3_01\bin\com_trolltech_qt_core
.dll) using deploy path, as com_trolltech_qt_core.dll
Already loaded: QtGui4.dll skipping it.
Loaded(C:\Qt\qtjambi-win32-commercial-4.3.3_01\bin\com_trolltech_qt_gui.
dll) using deploy path, as com_trolltech_qt_gui.dll
Loading plugins from: null
Loaded(C:\Qt\qtjambi-win32-commercial-4.3.3_01\bin\jawt.dll) using
deploy path, as jawt.dll
Already loaded: QtCore4.dll skipping it.
Already loaded: QtGui4.dll skipping it.
Already loaded: qtjambi.dll skipping it.
Failed to laod : qawt.dll
Below you will se how we tried to load it:

Going to load: qawt.dll
.. from environment: com.trolltech.qt.library-path 
(Skipped, environment was empty)
.. from environment: com.trolltech.qt.internal.jambipath 
(Skipped, environment was empty)
.. from classpath:
   Failed with exception:
     java.lang.RuntimeException: Library: 'qawt.dll' could not be
resolved
     com.trolltech.qt.Utilities.loadLibrary(Utilities.java:188)
     com.trolltech.qt.Utilities.loadJambiLibrary(Utilities.java:125)
 
com.trolltech.research.qtjambiawtbridge.QWidgetHost.<clinit>(QWidgetHost
.java:34)
 
com.trolltech.research.qtjambiawtbridge.examples.QtInAwt.<init>(QtInAwt.
java:50)
 
com.trolltech.research.qtjambiawtbridge.examples.QtInAwt.main(QtInAwt.ja
va:78)
     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
     java.lang.reflect.Method.invoke(Method.java:585)
     com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

.. using relative path (com.trolltech.qt.implicit-loading).
   Failed with exception:
     java.lang.UnsatisfiedLinkError:
C:\Qt\qtjambi-win32-commercial-4.3.3_01\bin\qawt.dll: This application
has failed to start because the application configuration is incorrect.
Reinstalling the application may fix this problem
     java.lang.ClassLoader$NativeLibrary.load(Native Method)
     java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
     java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
     java.lang.Runtime.load0(Runtime.java:769)
     java.lang.Runtime.load(Runtime.java:757)
     com.trolltech.qt.Utilities.loadLibrary(Utilities.java:240)
     com.trolltech.qt.Utilities.loadJambiLibrary(Utilities.java:125)
 
com.trolltech.research.qtjambiawtbridge.QWidgetHost.<clinit>(QWidgetHost
.java:34)
 
com.trolltech.research.qtjambiawtbridge.examples.QtInAwt.<init>(QtInAwt.
java:50)
 
com.trolltech.research.qtjambiawtbridge.examples.QtInAwt.main(QtInAwt.ja
va:78)
     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
     java.lang.reflect.Method.invoke(Method.java:585)
     com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

.. in standard way.
   Failed with exception:
     java.lang.UnsatisfiedLinkError:
C:\Qt\qtjambi-win32-commercial-4.3.3_01\bin\qawt.dll: This application
has failed to start because the application configuration is incorrect.
Reinstalling the application may fix this problem
     java.lang.ClassLoader$NativeLibrary.load(Native Method)
     java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
     java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
     java.lang.Runtime.loadLibrary0(Runtime.java:822)
     java.lang.System.loadLibrary(System.java:993)
     com.trolltech.qt.Utilities.loadLibrary(Utilities.java:258)
     com.trolltech.qt.Utilities.loadJambiLibrary(Utilities.java:125)
 
com.trolltech.research.qtjambiawtbridge.QWidgetHost.<clinit>(QWidgetHost
.java:34)
 
com.trolltech.research.qtjambiawtbridge.examples.QtInAwt.<init>(QtInAwt.
java:50)
 
com.trolltech.research.qtjambiawtbridge.examples.QtInAwt.main(QtInAwt.ja
va:78)
     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
     java.lang.reflect.Method.invoke(Method.java:585)
     com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

.. from environment: java.library.path 
   Failed to load qawt.dll from java.library.path

... giving up loading library: qawt.dll
Failed to laod : qawt.dll
Below you will se how we tried to load it:

Going to load: qawt.dll
.. from environment: com.trolltech.qt.library-path 
(Skipped, environment was empty)
.. from environment: com.trolltech.qt.internal.jambipath 
(Skipped, environment was empty)
.. from classpath:
   Failed with exception:
     java.lang.RuntimeException: Library: 'qawt.dll' could not be
resolved
     com.trolltech.qt.Utilities.loadLibrary(Utilities.java:188)
     com.trolltech.qt.Utilities.loadJambiLibrary(Utilities.java:125)
 
com.trolltech.research.qtjambiawtbridge.QWidgetHost.<clinit>(QWidgetHost
.java:34)
 
com.trolltech.research.qtjambiawtbridge.examples.QtInAwt.<init>(QtInAwt.
java:50)
 
com.trolltech.research.qtjambiawtbridge.examples.QtInAwt.main(QtInAwt.ja
va:78)
     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
     java.lang.reflect.Method.invoke(Method.java:585)
     com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

.. using relative path (com.trolltech.qt.implicit-loading).
   Failed with exception:
     java.lang.UnsatisfiedLinkError:
C:\Qt\qtjambi-win32-commercial-4.3.3_01\bin\qawt.dll: This application
has failed to start because the application configuration is incorrect.
Reinstalling the application may fix this problem
     java.lang.ClassLoader$NativeLibrary.load(Native Method)
     java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
     java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
     java.lang.Runtime.load0(Runtime.java:769)
     java.lang.Runtime.load(Runtime.java:757)
     com.trolltech.qt.Utilities.loadLibrary(Utilities.java:240)
     com.trolltech.qt.Utilities.loadJambiLibrary(Utilities.java:125)
 
com.trolltech.research.qtjambiawtbridge.QWidgetHost.<clinit>(QWidgetHost
.java:34)
 
com.trolltech.research.qtjambiawtbridge.examples.QtInAwt.<init>(QtInAwt.
java:50)
 
com.trolltech.research.qtjambiawtbridge.examples.QtInAwt.main(QtInAwt.ja
va:78)
     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
     java.lang.reflect.Method.invoke(Method.java:585)
     com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

.. in standard way.
   Failed with exception:
     java.lang.UnsatisfiedLinkError:
C:\Qt\qtjambi-win32-commercial-4.3.3_01\bin\qawt.dll: This application
has failed to start because the application configuration is incorrect.
Reinstalling the application may fix this problem
     java.lang.ClassLoader$NativeLibrary.load(Native Method)
     java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
     java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
     java.lang.Runtime.loadLibrary0(Runtime.java:822)
     java.lang.System.loadLibrary(System.java:993)
     com.trolltech.qt.Utilities.loadLibrary(Utilities.java:258)
     com.trolltech.qt.Utilities.loadJambiLibrary(Utilities.java:125)
 
com.trolltech.research.qtjambiawtbridge.QWidgetHost.<clinit>(QWidgetHost
.java:34)
 
com.trolltech.research.qtjambiawtbridge.examples.QtInAwt.<init>(QtInAwt.
java:50)
 
com.trolltech.research.qtjambiawtbridge.examples.QtInAwt.main(QtInAwt.ja
va:78)
     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
     java.lang.reflect.Method.invoke(Method.java:585)
     com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

.. from environment: java.library.path 
   Failed to load qawt.dll from java.library.path

... giving up loading library: qawt.dll
Using fall back for attachWidget
java.lang.UnsatisfiedLinkError: attach
	at
com.trolltech.research.qtjambiawtbridge.QtJambiAwtBridge.attach(Native
Method)
	at
com.trolltech.research.qtjambiawtbridge.QtJambiAwtBridge.attachWidget(Qt
JambiAwtIntegration.java:153)
	at
com.trolltech.research.qtjambiawtbridge.QWidgetHost$3.run(QWidgetHost.ja
va:157)
	at
com.trolltech.research.qtjambiawtbridge.SynchronousInvokable.event(Synch
ronousInvokable.java:50)
	at com.trolltech.qt.gui.QApplication.exec(Native Method)
	at
com.trolltech.research.qtjambiawtbridge.examples.QtInAwt.main(QtInAwt.ja
va:86)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at
com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

________________________________________________________________________
______
John DeNisi             General Dynamics C4 Systems | Viz    tel:
412-432-2443
Software Engineer       2730 Sidney St, Suite 310            fax:
412.432.2210
John.DeNisi@xxxxxxxxx   Pittsburgh, PA 15203                 web:
mayaviz.com


Message 2 in thread

DeNisi, John-P64048 wrote:
>
> Running the QtInAwt example using the 
> -Dcom.trolltech.qt.verbose-loading option, provides the output listed 
> below.  My assumption at this point is that the qawt.dll library was 
> not compiled in a way that is compatible with how the Qt Jambi 
> evaluation version I downloaded was compiled.  Can anyone provide any 
> assistance here, or provide me a pre-compiled version of qawt.dll for 
> Windows that is compatible with the Qt Jambi evaluation download?
>

Hi, John!

That may be the case, as we recently switched to using Microsoft Visual 
Studio 2005 for the binary packages.

We'll put compatible binary versions of the QtJambiAwtBridge out on 
labs.trolltech.com sometime next week so people won't have this problem. 
I'll send a brief reminder to the list when this happens.

-- Eskil




Message 3 in thread

Eskil Abrahamsen Blomfeldt wrote:
> DeNisi, John-P64048 wrote:
>>
>> Running the QtInAwt example using the 
>> -Dcom.trolltech.qt.verbose-loading option, provides the output listed 
>> below.  My assumption at this point is that the qawt.dll library was 
>> not compiled in a way that is compatible with how the Qt Jambi 
>> evaluation version I downloaded was compiled.  Can anyone provide any 
>> assistance here, or provide me a pre-compiled version of qawt.dll for 
>> Windows that is compatible with the Qt Jambi evaluation download?
>>
> 
> Hi, John!
> 
> That may be the case, as we recently switched to using Microsoft Visual 
> Studio 2005 for the binary packages.
> 
> We'll put compatible binary versions of the QtJambiAwtBridge out on 
> labs.trolltech.com sometime next week so people won't have this problem. 
> I'll send a brief reminder to the list when this happens.

Hi,

I've created binaries for win32 for use with commercial/evaluation and 
opensource. They are located in the subfolders
   - prebuilt/win32-commercial-4.3.3_01 for commercial and eval
   - prebuilt/win32-gpl-4.3.3_01 for open source.

Please note that these versions are tied strictly to the licenced 
editions and the version of Qt Jambi so these will only work for the 
current release.

best regards,
Gunnar


Message 4 in thread

Thanks Gunnar!
Are the subfolders for these prebuilt QtJambiAwtBridge win32 binaries
subversion subfolders, or somewhere on a trolltech web/FTP site?  I've
never used subversion before, but I assume I can just install a Windows
subversion folder and do something like:
	
svn://labs.trolltech.com/svn/qtjambi/qtjambiawtbridge/prebuilt/win32-com
mercial-4.3.3_01

I'll look forward to trying out the bridge and will hopefully be able to
provide you some useful feedback.

-John DeNisi
Software Developer
General Dynamics | Viz
john.denisi@xxxxxxxxx

-----Original Message-----
From: Gunnar Sletta [mailto:gunnar@xxxxxxxxxxxxx] 
Sent: Tuesday, January 15, 2008 6:02 AM
To: DeNisi, John-P64048
Cc: qt-jambi-interest@xxxxxxxxxxxxx
Subject: Re: QtJambiAwtBridge problem - pre-built for Windows?

Eskil Abrahamsen Blomfeldt wrote:
> DeNisi, John-P64048 wrote:
>>
>> Running the QtInAwt example using the 
>> -Dcom.trolltech.qt.verbose-loading option, provides the output listed

>> below.  My assumption at this point is that the qawt.dll library was 
>> not compiled in a way that is compatible with how the Qt Jambi 
>> evaluation version I downloaded was compiled.  Can anyone provide any

>> assistance here, or provide me a pre-compiled version of qawt.dll for

>> Windows that is compatible with the Qt Jambi evaluation download?
>>
> 
> Hi, John!
> 
> That may be the case, as we recently switched to using Microsoft 
> Visual Studio 2005 for the binary packages.
> 
> We'll put compatible binary versions of the QtJambiAwtBridge out on 
> labs.trolltech.com sometime next week so people won't have this
problem.
> I'll send a brief reminder to the list when this happens.

Hi,

I've created binaries for win32 for use with commercial/evaluation and
opensource. They are located in the subfolders
   - prebuilt/win32-commercial-4.3.3_01 for commercial and eval
   - prebuilt/win32-gpl-4.3.3_01 for open source.

Please note that these versions are tied strictly to the licenced
editions and the version of Qt Jambi so these will only work for the
current release.

best regards,
Gunnar


Message 5 in thread

DeNisi, John-P64048 wrote:
> Thanks Gunnar!
> Are the subfolders for these prebuilt QtJambiAwtBridge win32 binaries
> subversion subfolders, or somewhere on a trolltech web/FTP site?  I've
> never used subversion before, but I assume I can just install a Windows
> subversion folder and do something like:
> 	
> svn://labs.trolltech.com/svn/qtjambi/qtjambiawtbridge/prebuilt/win32-com
> mercial-4.3.3_01
> 
> I'll look forward to trying out the bridge and will hopefully be able to
> provide you some useful feedback.

It should be enough to check out the toplevel folder:

svn co svn://labs.trolltech.com/svn/qtjambi/qtjambiawtbridge

The subdirectories will be included in the checkout.

-
Gunnar