Heiner Strauss
|
Posted: October 14, 2009 17:06 by Heiner Strauss
|
|
Hi, I'm having a problem to compile it with my NetBeans 6.8 M2 installation. First some warnings: ... Building jar: /usr/home/heiner/NetBeansProjects/netbeans-opengl-pack~glpack-git/build/cluster/modules/javax-xml-bind.jar javax.xml.bind.netbeans-extra: javax.xml.bind.module-xml-regular: javax.xml.bind.module-xml-autoload: Autoload modules: [JAXB Library] javax.xml.bind.module-xml-eager: javax.xml.bind.javahelp: javax.xml.bind.module-auto-deps: javax.xml.bind.release: Copying 4 files to /usr/home/heiner/NetBeansProjects/netbeans-opengl-pack~glpack-git/build/cluster javax.xml.bind.chmod-executables: javax.xml.bind.verify-class-linkage: Warning: com.sun.xml.bind.v2.runtime.output.FastInfosetStreamWriterOutput cannot access com.sun.xml.fastinfoset.stax.StAXDocumentSerializer Warning: com.sun.xml.bind.v2.runtime.output.FastInfosetStreamWriterOutput$AppData cannot access org.jvnet.fastinfoset.VocabularyApplicationData Warning: com.sun.xml.bind.v2.runtime.output.StAXExStreamWriterOutput cannot access org.jvnet.staxex.XMLStreamWriterEx Warning: com.sun.xml.bind.v2.runtime.unmarshaller.FastInfosetConnector cannot access com.sun.xml.fastinfoset.stax.StAXDocumentParser Warning: com.sun.xml.bind.v2.runtime.unmarshaller.FastInfosetConnector$CharSequenceImpl cannot access com.sun.xml.fastinfoset.stax.StAXDocumentParser Warning: com.sun.xml.bind.v2.runtime.unmarshaller.StAXExConnector cannot access org.jvnet.staxex.Base64Data Warning: com.sun.xml.bind.v2.runtime.unmarshaller.StAXExConnector cannot access org.jvnet.staxex.XMLStreamReaderEx ... and in module Native library support: net.java.nativelibsupport.compile: Created dir: /usr/home/heiner/NetBeansProjects/netbeans-opengl-pack~glpack-git/native-lib-support/build/classes Compiling 2 source files to /usr/home/heiner/NetBeansProjects/netbeans-opengl-pack~glpack-git/native-lib-support/build/classes /usr/home/heiner/NetBeansProjects/netbeans-opengl-pack~glpack-git/native-lib-support/src/net/java/nativelibsupport/NativeLibSupport.java:17: package net.java.nativelibsupport.natives_config does not exist import net.java.nativelibsupport.natives_config.Library; /usr/home/heiner/NetBeansProjects/netbeans-opengl-pack~glpack-git/native-lib-support/src/net/java/nativelibsupport/NativeLibSupport.java:18: package net.java.nativelibsupport.natives_config.Library does not exist import net.java.nativelibsupport.natives_config.Library.Os; /usr/home/heiner/NetBeansProjects/netbeans-opengl-pack~glpack-git/native-lib-support/src/net/java/nativelibsupport/NativeLibSupport.java:19: package net.java.nativelibsupport.natives_config.Library.Os does not exist import net.java.nativelibsupport.natives_config.Library.Os.Cpu; /usr/home/heiner/NetBeansProjects/netbeans-opengl-pack~glpack-git/native-lib-support/src/net/java/nativelibsupport/NativeLibSupport.java:209: cannot find symbol symbol : class Library location: class net.java.nativelibsupport.NativeLibSupport private final static void assambleLibPath(Library lib, String osName, String cpuName, StringBuilder nativesFolderPath) { /usr/home/heiner/NetBeansProjects/netbeans-opengl-pack~glpack-git/native-lib-support/src/net/java/nativelibsupport/NativeLibSupport.java:17: package net.java.nativelibsupport.natives_config does not exist import net.java.nativelibsupport.natives_config.Library; /usr/home/heiner/NetBeansProjects/netbeans-opengl-pack~glpack-git/native-lib-support/src/net/java/nativelibsupport/NativeLibSupport.java:18: package net.java.nativelibsupport.natives_config.Library does not exist import net.java.nativelibsupport.natives_config.Library.Os; /usr/home/heiner/NetBeansProjects/netbeans-opengl-pack~glpack-git/native-lib-support/src/net/java/nativelibsupport/NativeLibSupport.java:19: package net.java.nativelibsupport.natives_config.Library.Os does not exist import net.java.nativelibsupport.natives_config.Library.Os.Cpu; /usr/home/heiner/NetBeansProjects/netbeans-opengl-pack~glpack-git/native-lib-support/src/net/java/nativelibsupport/NativeLibSupport.java:209: cannot find symbol symbol : class Library location: class net.java.nativelibsupport.NativeLibSupport private final static void assambleLibPath(Library lib, String osName, String cpuName, StringBuilder nativesFolderPath) { /usr/home/heiner/NetBeansProjects/netbeans-opengl-pack~glpack-git/native-lib-support/src/net/java/nativelibsupport/NativeLibSupport.java:105: cannot find symbol symbol : class Library location: class net.java.nativelibsupport.NativeLibSupport if(obj instanceof Library == false) { /usr/home/heiner/NetBeansProjects/netbeans-opengl-pack~glpack-git/native-lib-support/src/net/java/nativelibsupport/NativeLibSupport.java:109: cannot find symbol symbol : class Library location: class net.java.nativelibsupport.NativeLibSupport Library lib = (Library)obj; /usr/home/heiner/NetBeansProjects/netbeans-opengl-pack~glpack-git/native-lib-support/src/net/java/nativelibsupport/NativeLibSupport.java:109: cannot find symbol symbol : class Library location: class net.java.nativelibsupport.NativeLibSupport Library lib = (Library)obj; /usr/home/heiner/NetBeansProjects/netbeans-opengl-pack~glpack-git/native-lib-support/src/net/java/nativelibsupport/NativeLibSupport.java:206: warning: [deprecation] extractJar(org.openide.filesystems.FileObject,java.io.InputStream) in org.openide.filesystems.FileUtil has been deprecated FileUtil.extractJar(libTargetFolder, libSource.getInputStream()); /usr/home/heiner/NetBeansProjects/netbeans-opengl-pack~glpack-git/native-lib-support/src/net/java/nativelibsupport/NativeLibSupport.java:211: cannot find symbol symbol : class Os location: class net.java.nativelibsupport.NativeLibSupport List<Os> oses = lib.getOs(); /usr/home/heiner/NetBeansProjects/netbeans-opengl-pack~glpack-git/native-lib-support/src/net/java/nativelibsupport/NativeLibSupport.java:213: cannot find symbol symbol : class Os location: class net.java.nativelibsupport.NativeLibSupport for (Os os : oses) { /usr/home/heiner/NetBeansProjects/netbeans-opengl-pack~glpack-git/native-lib-support/src/net/java/nativelibsupport/NativeLibSupport.java:223: cannot find symbol symbol : class Cpu location: class net.java.nativelibsupport.NativeLibSupport List<Cpu> cpus = os.getCpu(); /usr/home/heiner/NetBeansProjects/netbeans-opengl-pack~glpack-git/native-lib-support/src/net/java/nativelibsupport/NativeLibSupport.java:225: cannot find symbol symbol : class Cpu location: class net.java.nativelibsupport.NativeLibSupport for (Cpu cpu : cpus) { 11 errors 1 warning /usr/local/netbeans68/harness/suite.xml:169: The following error occurred while executing this line: /usr/local/netbeans68/harness/common.xml:168: Compile failed; see the compiler error output for details. BUILD FAILED (total time: 1 minute 26 seconds) javac 1.6.0_07 on FreeBSD Greetings, Heiner |
Will the OpenGL Pack run with NetBeans 6.8 M2 ?
13 topics, 35 posts
» Share this
Replies: 4 - Last Post: October 15, 2009 16:56
by: Heiner Strauss
by: Heiner Strauss
showing 1 - 5 of 5
Michael Bien
|
Posted: October 14, 2009 17:43 by Michael Bien
|
|
Hi Heiner, I haven't yet moved to 6.8 but try to invoke the 'jaxb-code-generation' ant target in native-lib-support/nbproject/xml_binding_build.xml manually. Subsequent builds of the project suite should work after that again. regards, michael |
Heiner Strauss
|
Posted: October 15, 2009 13:19 by Heiner Strauss
|
|
Hi Michael, thank you for your quick answer. Now I can generate and install all NetBean modules. When I start NetBeans I get: net.java.nativelibsupport.LibDeploymentException: The jogl native libraries are either not available for this system (OS: FreeBSD CPU: i386) or an error accrued while deploying at net.java.nativelibsupport.NativeLibSupport.deploy(NativeLibSupport.java:167) Caused: net.java.nativelibsupport.LibDeploymentException: can not deploy jogl.all.jar natives at net.java.nativelibsupport.NativeLibSupport.deploy(NativeLibSupport.java:177) at net.java.nboglpack.jogl.Installer.restored(Installer.java:28) at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:440) at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:361) at org.netbeans.ModuleManager.enable(ModuleManager.java:917) at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:289) at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:225) at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:276) at org.netbeans.core.startup.Main.getModuleSystem(Main.java:168) at org.netbeans.core.startup.Main.start(Main.java:309) at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:111) [catch] at java.lang.Thread.run(Thread.java:619) My native libs would look like: > ll /usr/local/jogl-2.0-freebsd-i586/lib/*.so -rw-r--r-- 1 root wheel 6702 1 Okt 01:07 /usr/local/jogl-2.0-freebsd-i586/lib/libgluegen-rt.so -rw-r--r-- 1 root wheel 214303 1 Okt 01:07 /usr/local/jogl-2.0-freebsd-i586/lib/libjogl_es1.so -rw-r--r-- 1 root wheel 189786 1 Okt 01:07 /usr/local/jogl-2.0-freebsd-i586/lib/libjogl_es2.so -rw-r--r-- 1 root wheel 1274504 1 Okt 01:07 /usr/local/jogl-2.0-freebsd-i586/lib/libjogl_gl2.so -rw-r--r-- 1 root wheel 241506 1 Okt 01:07 /usr/local/jogl-2.0-freebsd-i586/lib/libjogl_gl2es12.so -rw-r--r-- 1 root wheel 8479 1 Okt 01:07 /usr/local/jogl-2.0-freebsd-i586/lib/libnativewindow_awt.so -rw-r--r-- 1 root wheel 4660 1 Okt 01:07 /usr/local/jogl-2.0-freebsd-i586/lib/libnativewindow_jvm.so -rw-r--r-- 1 root wheel 14702 1 Okt 01:07 /usr/local/jogl-2.0-freebsd-i586/lib/libnativewindow_x11.so -rw-r--r-- 1 root wheel 17279 1 Okt 01:07 /usr/local/jogl-2.0-freebsd-i586/lib/libnewt.so Greetings, Heiner |
Michael Bien
|
Posted: October 15, 2009 15:53 by Michael Bien
|
|
you get the exception since the Pack bundles JOGL and gluegen too but has no deployment pattern for FreeBSD: http://projectkenai.com/projects/netbeans-opengl-pack/sources/glpack-git/content/jogl/src/net/java/nboglpack/jogl/jogl-natives-config.xml?rev=5350ed01ebfe72f306667be415e945e7261f2dc2 do you know if linux JOGL libs would work on FreeBSD? If yes i could modify the scripts accordingly. deploying jars in system folders could be dangerous. It could provoke conflicts between the libs e.g in /usr/local and jogl used in webstart apps or the gl pack... If you ignore the exception, does the Capabilities viewer work (Tools->GL Capabilities)? |
Heiner Strauss
|
Posted: October 15, 2009 16:56 by Heiner Strauss
|
|
I think the linux JOGL would work with the linux compatibility modul + needed libs. But it was easier to convince gluegen to generate the JNIs directly. gluegen-cpptasks.xml : <target name="gluegen.cpptasks.declare.compiler.freebsd" if="isFreeBSD"> <echo message="FreeBSD" /> <property name="compiler.cfg.id.base" value="compiler.cfg.freebsd" /> <property name="linker.cfg.id.base" value="linker.cfg.linux" /> <property name="java.includes.dir.platform" value="${java.includes.dir}/freebsd" /> <property name="java.lib.dir.platform" value="${java.home.dir}/jre/lib/i386" /> </target> <target name="gluegen.cpptasks.detect.os.freebsd" unless="gluegen.cpptasks.detected.os.2" if="isFreeBSD"> <property name="os.and.arch" value="freebsd-i586" /> </target> I will try to change the os config in the packaged gluegen / jogl, very often it is enough to copy the linux entry and replace every "linux" with "freebsd". I have just forgotten to change it the packaged versions. The OpenGL pack basicly works, I can generate the gears example and everything is at it's place. The GL capability viewer is a little bit unhappy because it can't get a visual for direct rendering. I have tested JOGL without the NetBeans pack and it works without problems, could even run the redbook examples from NetBeans. More real soon. |
Replies: 4 - Last Post: October 15, 2009 16:56
by: Heiner Strauss
by: Heiner Strauss








