Qt-jambi-interest Archive, September 2006
[Fwd: Re: Generator error messages]
Message 1 in thread
Sorry, forgot to CC to mailing-list.
PS: I'm also trying to give the dll a more friendly name: maptool.dll,
dunno if that can have anything to do with it?
Helge F.
--- Begin Message ---
--- Begin Message ---
How do I resolve these:
java.lang.UnsatisfiedLinkError: __qt_initLibrary
at
com.trolltech.examples.generator.QtJambi_LibraryInitializer.__qt_initLibrary(Native
Method)
at
com.trolltech.examples.generator.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:7)
at
com.trolltech.examples.generator.CMapDisplay.<clinit>(CMapDisplay.java:8)
I'm trying to launch my own native widget. What is wrong?
Regards,
Helge F.
Eskil A. Blomfeldt wrote:
> Helge Fredriksen wrote:
>
>> QTextStream: No device
>> QTextStream: No device
>> QTextStream: No device
>> QTextStream: No device
>> QTextStream: No device
>> QTextStream: No device
>> QTextStream: No device
>> Critical?
>
> These are also harmless. The warnings will be removed for the next
> release, but they can safely be ignored for now.
>
> Just note that in order to make the generator example build, you will
> ufortunately have to patch the generated code, as described here:
>
>
> http://lists.trolltech.com/qt-jambi-interest/2006-09/msg00030.html#msg00030
>
>
> This goes for any generator-project in which all the mapped types are
> QObject-subtypes.
>
> -- Eskil
>
>
>
--- End Message ---
--- End Message ---
Message 2 in thread
Helge Fredriksen wrote:
> Sorry, forgot to CC to mailing-list.
>
> PS: I'm also trying to give the dll a more friendly name: maptool.dll,
> dunno if that can have anything to do with it?
[...]
>
> How do I resolve these:
>
> java.lang.UnsatisfiedLinkError: __qt_initLibrary
> at
> com.trolltech.examples.generator.QtJambi_LibraryInitializer.__qt_initLibrary(Native
> Method)
> at
> com.trolltech.examples.generator.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:7)
>
> at
> com.trolltech.examples.generator.CMapDisplay.<clinit>(CMapDisplay.java:8)
>
Hi, Helge.
I'm afraid that's probably it. Currently the generator assumes a certain
naming convention for the generated libraries. You may be able to get
away with adding the following to the start of your
typesystem_generator.txt:
<inject-code>
com.trolltech.qt.Utilities.loadJambiLibrary("maptool");
</inject-code>
If this works, then it can be considered a work around, but I'll
register a suggestion for customizing the library names created by the
generator.
-- Eskil
Message 3 in thread
No luck yet, getting these when running with the -D option you mentioned:
Loaded(QtOpenGL4.dll) in standard way as QtOpenGL4
Loaded(com_trolltech_qt_opengl.dll) in standard way as
com_trolltech_qt_opengl
java.lang.UnsatisfiedLinkError: no com_trolltech_examples_generator in
java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at com.trolltech.qt.Utilities.loadLibrary(Utilities.java:51)
at com.trolltech.qt.Utilities.loadJambiLibrary(Utilities.java:44)
at
com.trolltech.examples.generator.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:6)
at
com.trolltech.examples.generator.CMapDisplay.<clinit>(CMapDisplay.java:8)
at
com.poseidon.rescue.client.instructor.InitInstructorGUI.execute(InitInstructorGUI.java:77)
at
com.poseidon.common.client.jambi.JambiClient.bootComponents(JambiClient.java:124)
at
com.poseidon.common.client.jambi.JambiClient.init(JambiClient.java:111)
at
com.poseidon.rescue.client.instructor.LaunchJambiInstructor$1.run(LaunchJambiInstructor.java:33)
java.lang.RuntimeException: Library:
'com_trolltech_examples_generator.dll' could not be resolved
at com.trolltech.qt.Utilities.loadLibrary(Utilities.java:78)
at com.trolltech.qt.Utilities.loadJambiLibrary(Utilities.java:44)
at
com.trolltech.examples.generator.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:6)
at
com.trolltech.examples.generator.CMapDisplay.<clinit>(CMapDisplay.java:8)
at
com.poseidon.rescue.client.instructor.InitInstructorGUI.execute(InitInstructorGUI.java:77)
at
com.poseidon.common.client.jambi.JambiClient.bootComponents(JambiClient.java:124)
at
com.poseidon.common.client.jambi.JambiClient.init(JambiClient.java:111)
at
com.poseidon.rescue.client.instructor.LaunchJambiInstructor$1.run(LaunchJambiInstructor.java:33)
java.lang.UnsatisfiedLinkError: __qt_initLibrary
at
com.trolltech.examples.generator.QtJambi_LibraryInitializer.__qt_initLibrary(Native
Method)
at
com.trolltech.examples.generator.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:7)
at
com.trolltech.examples.generator.CMapDisplay.<clinit>(CMapDisplay.java:8)
at
com.poseidon.rescue.client.instructor.InitInstructorGUI.execute(InitInstructorGUI.java:77)
at
com.poseidon.common.client.jambi.JambiClient.bootComponents(JambiClient.java:124)
at
com.poseidon.common.client.jambi.JambiClient.init(JambiClient.java:111)
at
com.poseidon.rescue.client.instructor.LaunchJambiInstructor$1.run(LaunchJambiInstructor.java:33)
I'm having that com_trolltech_examples_generator.dll in
c:/windows/system32, so there shouldn't be a problem with that, rather I
think there must be some obscure error in how the dll looks like inside.
Helge F.
Eskil A. Blomfeldt wrote:
> Helge Fredriksen wrote:
>
>> Sorry, forgot to CC to mailing-list.
>>
>> PS: I'm also trying to give the dll a more friendly name:
>> maptool.dll, dunno if that can have anything to do with it?
>
> [...]
>
>>
>> How do I resolve these:
>>
>> java.lang.UnsatisfiedLinkError: __qt_initLibrary
>> at
>> com.trolltech.examples.generator.QtJambi_LibraryInitializer.__qt_initLibrary(Native
>> Method)
>> at
>> com.trolltech.examples.generator.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:7)
>>
>> at
>> com.trolltech.examples.generator.CMapDisplay.<clinit>(CMapDisplay.java:8)
>>
>>
> Hi, Helge.
>
> I'm afraid that's probably it. Currently the generator assumes a
> certain naming convention for the generated libraries. You may be able
> to get away with adding the following to the start of your
> typesystem_generator.txt:
>
> <inject-code>
> com.trolltech.qt.Utilities.loadJambiLibrary("maptool");
> </inject-code>
>
> If this works, then it can be considered a work around, but I'll
> register a suggestion for customizing the library names created by the
> generator.
>
> -- Eskil
>
Message 4 in thread
Sorry, just a little fingertrouble. It's working now.
Helge F.
Helge Fredriksen wrote:
> No luck yet, getting these when running with the -D option you mentioned:
>
> Loaded(QtOpenGL4.dll) in standard way as QtOpenGL4
> Loaded(com_trolltech_qt_opengl.dll) in standard way as
> com_trolltech_qt_opengl
> java.lang.UnsatisfiedLinkError: no com_trolltech_examples_generator in
> java.library.path
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
> at java.lang.Runtime.loadLibrary0(Runtime.java:822)
> at java.lang.System.loadLibrary(System.java:992)
> at com.trolltech.qt.Utilities.loadLibrary(Utilities.java:51)
> at com.trolltech.qt.Utilities.loadJambiLibrary(Utilities.java:44)
> at
> com.trolltech.examples.generator.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:6)
>
> at
> com.trolltech.examples.generator.CMapDisplay.<clinit>(CMapDisplay.java:8)
> at
> com.poseidon.rescue.client.instructor.InitInstructorGUI.execute(InitInstructorGUI.java:77)
>
> at
> com.poseidon.common.client.jambi.JambiClient.bootComponents(JambiClient.java:124)
>
> at
> com.poseidon.common.client.jambi.JambiClient.init(JambiClient.java:111)
> at
> com.poseidon.rescue.client.instructor.LaunchJambiInstructor$1.run(LaunchJambiInstructor.java:33)
>
> java.lang.RuntimeException: Library:
> 'com_trolltech_examples_generator.dll' could not be resolved
> at com.trolltech.qt.Utilities.loadLibrary(Utilities.java:78)
> at com.trolltech.qt.Utilities.loadJambiLibrary(Utilities.java:44)
> at
> com.trolltech.examples.generator.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:6)
>
> at
> com.trolltech.examples.generator.CMapDisplay.<clinit>(CMapDisplay.java:8)
> at
> com.poseidon.rescue.client.instructor.InitInstructorGUI.execute(InitInstructorGUI.java:77)
>
> at
> com.poseidon.common.client.jambi.JambiClient.bootComponents(JambiClient.java:124)
>
> at
> com.poseidon.common.client.jambi.JambiClient.init(JambiClient.java:111)
> at
> com.poseidon.rescue.client.instructor.LaunchJambiInstructor$1.run(LaunchJambiInstructor.java:33)
>
> java.lang.UnsatisfiedLinkError: __qt_initLibrary
> at
> com.trolltech.examples.generator.QtJambi_LibraryInitializer.__qt_initLibrary(Native
> Method)
> at
> com.trolltech.examples.generator.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:7)
>
> at
> com.trolltech.examples.generator.CMapDisplay.<clinit>(CMapDisplay.java:8)
> at
> com.poseidon.rescue.client.instructor.InitInstructorGUI.execute(InitInstructorGUI.java:77)
>
> at
> com.poseidon.common.client.jambi.JambiClient.bootComponents(JambiClient.java:124)
>
> at
> com.poseidon.common.client.jambi.JambiClient.init(JambiClient.java:111)
> at
> com.poseidon.rescue.client.instructor.LaunchJambiInstructor$1.run(LaunchJambiInstructor.java:33)
>
>
> I'm having that com_trolltech_examples_generator.dll in
> c:/windows/system32, so there shouldn't be a problem with that, rather
> I think there must be some obscure error in how the dll looks like
> inside.
>
> Helge F.
>
> Eskil A. Blomfeldt wrote:
>> Helge Fredriksen wrote:
>>
>>> Sorry, forgot to CC to mailing-list.
>>>
>>> PS: I'm also trying to give the dll a more friendly name:
>>> maptool.dll, dunno if that can have anything to do with it?
>>
>> [...]
>>
>>>
>>> How do I resolve these:
>>>
>>> java.lang.UnsatisfiedLinkError: __qt_initLibrary
>>> at
>>> com.trolltech.examples.generator.QtJambi_LibraryInitializer.__qt_initLibrary(Native
>>> Method)
>>> at
>>> com.trolltech.examples.generator.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:7)
>>>
>>> at
>>> com.trolltech.examples.generator.CMapDisplay.<clinit>(CMapDisplay.java:8)
>>>
>>>
>> Hi, Helge.
>>
>> I'm afraid that's probably it. Currently the generator assumes a
>> certain naming convention for the generated libraries. You may be
>> able to get away with adding the following to the start of your
>> typesystem_generator.txt:
>>
>> <inject-code>
>> com.trolltech.qt.Utilities.loadJambiLibrary("maptool");
>> </inject-code>
>>
>> If this works, then it can be considered a work around, but I'll
>> register a suggestion for customizing the library names created by
>> the generator.
>>
>> -- Eskil
>>
>
>