El Wednesday 08 October 2008 08:10:58 Figux escribió:
> >Hi,
> >
> >To build and use the generator it is highly recommended that you build Qt
>
> from source and then >Qt Jambi from source based on this Qt. Both source
>
> packages can be found on our website:
> >http://trolltech.com/downloads/opensource/appdev/linux-x11-cpp<http://trol
> >ltech.com/downloads/opensource/appdev/linux-x11-cpp>
> > http://trolltech.com/downloads/opensource/appdev/linux-x11-java<http://tr
> >olltech.com/downloads/opensource/appdev/linux-x11-java>
> >
> >Once compiled, the generator will be located in the JAMBI/generator
>
> directory
>
> ok, i understant, i download the source but i can't built none of the two.
> i installed Qt 4.4.3 from
> http://packages.debian.org/search?keywords=libqt4&searchon=names&suite=all&;
>section=all
>
> > Hi, I'm using qt jambi in Kubuntu and it's and easy task to setup.
> > First, you need to install the sun-jdk-1.6 package from ubuntu
> > repositories.
> > Next, you need to download the qt jambi for X11 from the website of
> > trolltech
> > and unpackage in the directory that you want to install (I like to
> > unpackage
> > in my home dir for myself or in /usr/local/share when in share with more
> > users).
> > After that, you can run the qtjambi.sh in a console.
>
> ok... the first ready, the second too... but when i  unpackage, i can see
> the the qtjambi.sh but this  dont show a installer i only see the demos.
>
You don't need to do anymore to use qt jambi. 

> > I recommend to not use the qt jambi package in ubuntu, because is
> > incompatible
> > with the eclipse integration (if this is not a problem for you, you can
> > use it).
>
> a question respect this, the plugin for eclipse integration only is for the
> designer???
Yes, in fact, you can omit the plugin and only add the two jars to a java 
project. But its more comfortably to work with the designer inside the 
eclipse.
>
> > To compile some code with qt you only need to add the
> > qtjambi-4.4.3_01.jar and qtjambi-linux32-gcc-4.4.3_01.jar to the
> > classpath and compile like any other java code.
>
> how to that?

To compile someting you only need to do this (supposing that you install qt 
jambi in your home dir):

1.- Create a file name name HelloWorld.java with this inside:

import com.trolltech.qt.gui.*;

public class HelloWorld
{
    public static void main(String args[])
    {
        QApplication.initialize(args);

        QPushButton hello = new QPushButton("Hello World!");
        hello.resize(120, 40);
        hello.setWindowTitle("Hello World");
        hello.show();

        QApplication.exec();
    }
}

2.- Compile the file with this instruction(supposing that you have qtjambi 
in /home/arcangel/qtjambi):
javac -classpath 
/home/arcangel/qtjambi/qtjambi-linux32-gcc-4.4.3_01.jar:/home/arcangel/qtjambi/qtjambi-4.4.3_01.jar
 
HelloWorld.java

3.- Run the file with this instruction (supposing that you create the 
HelloWorld.java in /home/arcangel/):
java -classpath 
/home/arcangel/qtjambi/qtjambi-linux32-gcc-4.4.3_01.jar:/home/arcangel/qtjambi/qtjambi-4.4.3_01.jar:/home/arcangel/
  
HelloWorld

And that its all.



_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to