---- Reported by desjardins 2005-01-04 07:03:27 ---- I made changes to the build script and 2 source files in order to get the Native driver to compile on FreeBSD. The changes will not effect any other OS, and should also work on Net/OpenBSD. Id be happy to verify them once they get included in a build. If they work, is there any chance of getting a precompiled Native FreeBSD release available in the future? --- diff -r jogl-src-orig/make/build.xml jogl-src/make/build.xml 198d197 < <property name="java.includes.dir.linux" value="${java.includes.dir}/linux" /> 199a199,200 > <property name="java.includes.dir.linux" value="${java.includes.dir}/linux" /> > <property name="java.includes.dir.freebsd" value="${java.includes.dir}/freebsd" /> 202a204 > <property name="java.lib.dir.freebsd" value="${java.home.dir}/jre/lib/i386" /> 305a308,315 > <target name="declare.freebsd" depends="declare.x11"> > <property name="java.includes.dir.platform" value="${java.includes.dir.freebsd}" /> > <property name="java.lib.dir.platform" value="${java.lib.dir.freebsd}" /> > > <property name="compiler.cfg.id" value="compiler.cfg.linux" /> > <property name="linker.cfg.id" value="linker.cfg.linux" /> > </target> > 787a798 > <includepath path="/usr/X11R6/include"/> 1050a1062,1070 > > <target name="freebsd" depends="declare.freebsd"> > <!-- Generate, compile, and build the jar for the Java sources. --> > <antcall target="jar" inheritRefs="true" /> > > <!-- Compile the native C sources and build the jogl lib. --> > <antcall target="c.compile.jogl.linux" /> > </target> > ----- diff -r jogl-src-orig/src/native/jogl/JAWT_DrawingSurfaceInfo.c jogl-src/src/native/jogl/JAWT_DrawingSurfaceInfo.c 45c45 < #elif defined(linux) || defined(__sun) --- > #elif defined(linux) || defined(__sun) || defined(__FreeBSD__) ---- diff -r jogl-src-orig/src/net/java/games/gluegen/StructLayout.java jogl-src/src/net/java/games/gluegen/StructLayout.java 125d124 < (os.startsWith("linux") && cpu.equals("i386")) || 126a126,127 > (os.startsWith("linux") && cpu.equals("i386")) || > (os.startsWith("freebsd") && cpu.equals("i386")) || ---- Additional Comments From kbr 2005-01-27 19:27:58 ---- Thanks for the patch. A slightly modified version which didn't perturb the Linux portions of build.xml in any way was just checked in. I'm marking this bug as fixed; please reopen it if the changes don't work. As for supporting FreeBSD in the official JOGL builds, we will try to do that once we have our nightly build system completely on-line. Feel free to file a low-priority RFE about that. --- Bug imported by sgothel@jausoft.com 2010-03-24 07:47 EDT --- This bug was previously known as _bug_ 126 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=126