[Qt-jambi-interest] QtJambi compiled!

Joel JO joeljo08 at gmail.com
Tue May 19 11:23:39 CEST 2009


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