0
I Use This!
Activity Not Available

Project Summary

The aim of this project is to provide Java language support for the libqglviewer library which is written on top of Qt. The Java bindings are being implemented using QtJambi and related tools.

A. Source containsREADME: same as this document. COPYING: the text of the GPL (v2 and v3) which is the license used in jqglviewer. build_generator_example.xml: file to be called by ant to build the bindings (see below). QGLViewerExample.java: source file to port the simpleViewer example (currently its contain is the same as GeneratorExample.java). typesystem_qglviewerbindings.xml: file that specifies the mapping between C++ and Java. The generator parses this file and generates the Java API. THIS IS THE FILE THAT SHOULD BE EDITED. qtjambi-src-lgpl.patch: patch file that contains the preceding three items, i.e., directories and files already contained in the patch: $JAMBIDIR/qglviewer_bindings/ which contains the typesystem_qglviewerbindings.xml and the libqglviewer library, version 2.3.1. $JAMBIDIR/build_qglviewer_bindings.xml $JAMBIDIR/com/trolltech/examples/QGLViewerExample.java The command to build the patch was: diff -crBN qtjambi-src-orig qtjambi-src-modified > qtjambi-src-lgpl.patch where qtjambi-src-modified = qtjambi-src-orig + the above directories and files.

Please note that (among others) the file typesystem_qglviewerbindings.xml is included twice: in the patch and as stand alone file. If it happens that you change this file the patch should be updated accordingly.

B. Installation procedure1. Download the Qt4.5.2 and QtJambi4.5.2 sources from http://qt.nokia.com/Put them in the same working directory, uncompress them and rename them as: Qt-4.5.2 and qtjambi-src-lgpl, respectively.

2. Download Ubuntu packages neededsudo apt-get install chrpath libjogl-java libjogl-java-doc libjogl-jni If your jvm is the one provided by openjdk, then you have to fix the jogl installation as follows:
cd /usr/lib/jvm/java-6-openjdk/jre/lib/amd64 sudo ln -s /usr/lib/jni/libjogl_awt.so libjogl_awt.so sudo ln -s /usr/lib/jni/libjogl.so libjogl.so sudo ln -s /usr/lib/jni/libgluegen-rt.so libgluegen-rt.so Don't know if the fix should be performed on the Sun jvm.

3. Set up the environmental variablesexport QTDIR=/PATH_TO_WORKING_DIRECTORY/Qt-4.5.2 export JAMBIDIR=/PATH_TO_WORKING_DIRECTORY/qtjambi-src-lgpl Of course PATH_TO_WORKING_DIRECTORY depends on your local installation. The other variables can be copied/pasted:
export JAVA_HOME=/usr/lib/jvm/default-java export JAVA_DIR=$JAVA_HOME export CLASSPATH_DIR=/usr/share/java export CLASSPATH=$CLASSPATH_DIR/jogl.jar:$CLASSPATH_DIR/gluegen-rt.jar:$CLASSPATH export PATH=$QTDIR/bin:$PATH export QT_PLUGIN_PATH=$QTDIR/plugins export CLASSES_JAR=qtjambi-4.5.2_01.jar export EXAMPLES_JAR=qtjambi-examples-4.5.2_01.jar export PLATFORM_OS_JAR=qtjambi-linux64-gcc-4.5.2_01.jar export PLATFORM_GEN_EX_JAR=qtjambi-generator-example-linux64-gcc-4.5.2_01.jar export GEN_EX_PATH=$JAMBIDIR/$PLATFORM_GEN_EX_JAR:$JAMBIDIR/$EXAMPLES_JAR:$CLASSPATH export CLASSPATH=$JAMBIDIR/$CLASSES_JAR:$JAMBIDIR/$PLATFORM_OS_JAR:$JAMBIDIR/$EXAMPLES_JAR:$CLASSPATH 4. Compile the sourcesQtcd $QTDIR ./configure -prefix $PWD -D QT_JAMBI_BUILD -no-qt3support make QT-Jambicd $JAMBIDIR ant Build and study the generator example:

ant -f build_generator_example.xml 5. Apply the jqglviewer patch and build the jqglviewer projectCheck the project in the same working directory where Qt and Qt Jambi were installed:

cd $JAMBIDIR/.. svn checkout http://jqglviewer.googlecode.com/svn/trunk/ jqglviewer cd $JAMBIDIR patch -p1 -i ../jqglviewer/qtjambi-src-lgpl.patch ant -f build_qglviewer_bindings.xml 6. Compile and run the examplesCompilationCompile the generator example

cd $JAMBIDIR/com/trolltech/examples javac -cp $GEN_EX_PATH GeneratorExample.java

Compile the JOGL Example

cd $JAMBIDIR/com/trolltech/demos javac HelloGL.java

Running the examplesRun the example

cd $JAMBIDIR java com.trolltech.examples.

Run the generator example

cd $JAMBIDIR java -cp $GEN_EX_PATH com.trolltech.examples.GeneratorExample

To run the JOGL demo

cd $JAMBIDIR java com.trolltech.demos.HelloGL

QGLViewerExampleOnce supported, in the future the QGLViewerExample should be compiled and run like this:

export GEN_QGL_PATH=$JAMBIDIR/$PLATFORM_QGLVIEWER_JAR:$JAMBIDIR/$EXAMPLES_JAR:$CLASSPATH cd $JAMBIDIR/com/trolltech/examples javac -classpath $GEN_QGL_PATH QGLViewerExample.java cd $JAMBIDIR java -cp $GEN_QGL_PATH com.trolltech.examples.QGLViewerExample

Tags

java libqglviewer opengl qt qtjambi

In a Nutshell, jqglviewer...

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

GNU General Public License v3.0 or later
Permitted

Commercial Use

Modify

Distribute

Place Warranty

Use Patent Claims

Forbidden

Sub-License

Hold Liable

Required

Distribute Original

Disclose Source

Include Copyright

State Changes

Include License

Include Install Instructions

These details are provided for information only. No information here is legal advice and should not be used as such.

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    65% of companies leverage OSS to speed application development in 2016
  • ...
    learn about Open Hub updates and features on the Open Hub blog
  • ...
    nearly 1 in 3 companies have no process for identifying, tracking, or remediating known open source vulnerabilities
  • ...
    search using multiple tags to find exactly what you need

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

Community Rating

Be the first to rate this project
Click to add your rating
  
Review this Project!