<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>1275</bug_id>
          
          <creation_ts>2015-12-24 14:34:33 +0100</creation_ts>
          <short_desc>Jogl-2.3.2 - FreeBSD - Building from source : swt.jar  version mismatch</short_desc>
          <delta_ts>2019-03-29 13:58:09 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>swt</component>
          <version>tbd</version>
          <rep_platform>pc_x86_64</rep_platform>
          <op_sys>bsd</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Valery">valery</reporter>
          <assigned_to name="Petros Koutsolampros">pjgl</assigned_to>
          <cc>gouessej</cc>
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>5499</commentid>
    <comment_count>0</comment_count>
    <who name="Valery">valery</who>
    <bug_when>2015-12-24 14:34:33 +0100</bug_when>
    <thetext>* env: FreeBSD-10.2 AMD64, OpenJDK Runtime Environment (build 1.8.0_45-b14)

* Goal : building jogl for processing-3.0.1 for my freebsd box.

* Building jogl from source leads to an error :
&gt;&gt;
jogamp-2.3.2/jogl/src/newt/classes/jogamp/newt/swt/event/SWTNewtEventFactory.java:157: error: cannot find symbol
case com.jogamp.newt.event.KeyEvent.VK_SPACE         : return SWT.SPACE
&lt;&lt;

* Description : 
1) swt.jar version is too old (365) and SWT.SPACE exists from swt-3.7 only
2) jogamp-2.3.2/jogl/make/lib/swt/gtk-freebsd-x86_64/README.txt is wrong too : show &apos;version 3.7.1&apos;, but the swt.jar in the same dir is actually &apos;3.6.5&apos;

* Fixing / Workarround (short) :
1) compile x11-toolkits/swt-devel from the FreeBSD ports tree (3.7.1)
2) get swt-devel.jar from the ports working directory and add every *.so library to it (see the swt.jar contents from jogl source)
3) mv jogl/make/lib/swt/gtk-freebsd-x86_64/sw.jar to swt.jar.orig (or delete it)
4) copy the swt-devel.jar from the working ports directory to jogl/make/lib/swt/gtk-freebsd-x86_64/swt.jar
5) re-run ant

==&gt; BUILD SUCCESSFUL


* A small word to the jogamp team : 
- please, remove the bad swt.jar from your sources (and perhaps fix the README.txt too), it has the wrong version.
This error is here since (at least) 2.1 ... (i didn&apos;t open a bug ..)
Perhaps leaves this &apos;howto&apos; instead of the README.txt ..
Many thanks to you,

--
Valéry Seys
Paris /\</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5529</commentid>
    <comment_count>1</comment_count>
    <who name="Julien Gouesse">gouessej</who>
    <bug_when>2016-02-16 19:53:07 +0100</bug_when>
    <thetext>Hi

I can use the same swt JAR than in JogAmp&apos;s Ardor3D Continuation, it should work.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>