Qt-jambi-interest Archive, March 2007
Jambi on the Mac
Message 1 in thread
I'm trying to develop a QtJambi application the Mac. I installed
QtJambi and the demos run fine. However I'm unable to run or debug even a
HelloWorld app from inside either NetBeans or IDEA. I get this error
Exception in thread "main" java.lang.UnsatisfiedLinkError: __qt_initLibrary
at com.trolltech.qt.core.QtJambi_LibraryInitializer.__qt_initLibrary(Native
Method)
at com.trolltech.qt.core.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:10)
at com.trolltech.qt.core.QAbstractFileEngineHandler.<clinit>(
QAbstractFileEngineHandler.java:43)
at com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:25)
at com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:27)
If I copy the exact run command to a shell it works fine.
Here is what I have tried/done
set DYLD_LIBRARY_PATH and LD_LIBRARY_PATH in /etc/profile to include the
jambi lib directory.
Added -Djava.library.path=.../qtjambi/lib to the vm arguments for the jambi
app (along with -XstartOnFirstThread)
Modifed the Info.plist of the IDE to add -Djava.library.path
Created symlinks from qtjambi/lib to /usr/java/lib, /Library/Java/Extensions
It seems that on the Mac, Netbeans and IDEA do not cause a shell to be
launched when a progam is run.
I could just run it from the command line, but I lose the ability to debug.
I tried the guys at JetBrains/IDEA but they gave up pretty fast.
Any ideas ?
Thanks in Advance
- Jim
Message 2 in thread
James Apple wrote:
> I'm trying to develop a QtJambi application the Mac. I installed
> QtJambi and the demos run fine. However I'm unable to run or debug even
> a HelloWorld app from inside either NetBeans or IDEA. I get this error
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError: __qt_initLibrary
> at com.trolltech.qt.core.QtJambi
> _LibraryInitializer.__qt
> _initLibrary(Native Method)
> at com.trolltech.qt.core.QtJambi_LibraryInitializer
> .<clinit>(QtJambi_LibraryInitializer.java:10)
> at
> com.trolltech.qt.core.QAbstractFileEngineHandler.<clinit>(QAbstractFileEngineHandler.java:43)
> at
> com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:25)
> at com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:27)
Hi James,
You can try specifying -Dcom.trolltech.qt.verbose-loading=true as well
in the VM parameters. That would give you slightly more information on
where Qt Jambi tries to load the libraries and in particular, which
libraries fail...
> Added -Djava.library.path=.../qtjambi/lib to the vm arguments for the
You have three '.' here? Was that intended? I also don't know what these
IDE's treat as their current directory so maybe the absolute path would
be better.
-
Gunnar