[Qt-jambi-interest] QtJambi compiled!

Joel JO joeljo08 at gmail.com
Tue May 19 18:37:36 CEST 2009


It did compile, but it won't run... did I see today.

I get the terrible
java.lang.UnsatisfiedLinkError: 
C:\Users\Joel\AppData\Local\Temp\QtJambi_Joel_x86_4.5.0_01_msvc2008-20090519-0029\bin\qtjambi.dll: 
Can't find dependent libraries
     at java.lang.ClassLoader$NativeLibrary.load(Native Method)
     at java.lang.ClassLoader.loadLibrary0(Unknown Source)
     at java.lang.ClassLoader.loadLibrary(Unknown Source)
     at java.lang.Runtime.load0(Unknown Source)
     at java.lang.Runtime.load(Unknown Source)
     at 
com.trolltech.qt.internal.NativeLibraryManager.loadLibrary_helper(NativeLibraryManager.java:458)
     at 
com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:424)
     at 
com.trolltech.qt.internal.NativeLibraryManager.loadLibrary(NativeLibraryManager.java:323)
     at com.trolltech.qt.Utilities.loadJambiLibrary(Utilities.java:142)
     at 
com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:55)
     at com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:58)

One explanation is that I used Qt 4.5.1 with QtJambi 4.5.0.
Or something with Visual Studio 2008 ?
How can I move forward ?

Regards,
Joel

On 5/19/2009 11:23 AM, Joel JO wrote:
> Hi,
>
> I managed to compile qt and qtjambi. It went overall really well.
> I run Vista and wanted to compile with Visual Studio 2008.
>
> I though I would share my experience and the small issues I encountered.
>
> I first tried to compile Qt 4.5.1 from the git repositery.
> Configure.exe did not work at all. It got stuck at the very header 
> qstringlist.h that it could not find.
> There is obviously something I missed here.
> Then I tried with the source archive and it worked like a charm with 
> the very same configure command.
>
> configure -D QT_JAMBI_BUILD -no-qt3support -no-mmx -no-sse -no-sse2 
> -no-3dnow -prefix c:\qt
>
>
> Then I opened a Visual Studio command prompt and typed nmake.
> A long time later, qt was properly compiled.
>
> Then for Jambi, I did not really bother with git and got the source 
> zip from ftp directly.
>
> I ran into a few failures due to some missing environment variables.
> Here is all I needed to set:
> QTDIR=c:\qt
> INCLUDE=C:\Program Files\Microsoft Visual Studio 
> 9.0\VC\include;C:\Program Files\Microsoft SDKs\Windows\v6.1\Include;
> LIB=C:\Program Files\Microsoft Visual Studio 9.0\VC\lib;C:\Program 
> Files\Microsoft SDKs\Windows\v6.1\Lib;
> PATH=%PATH%;C:\Program Files\Microsoft Visual Studio 
> 9.0\VC\bin;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;
> VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 9.0
> JAVA_HOME=C:\Program Files\Java\jdk1.6.0_11
>
> It all went very well until the javac tasks. I had to remove fork=true 
> for all of them to get it to work and set Xmx1024M in the vm running 
> ant itself.
> I don't know why but javac failed without error message when fork was 
> true. I used the ant shipped with eclipse and ran the build.xml from 
> the right click menu of eclipse.
>
> That's it! I baked my own jambi. Now the next challenge is to compile 
> it from git to be able to contribute something eventually...
> That will be for another week.
>
> Bye,
> Joel
>
>
>
>
>




More information about the Qt-jambi-interest mailing list