Error building joal libraries?

classic Classic list List threaded Threaded
22 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Error building joal libraries?

ebiglari
I tried building the joal library and I get:

BUILD FAILED
C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\make\build.xm
l:700: The following error occurred while executing this line:
C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\make\build.xm
l:517: The following error occurred while executing this line:
C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\make\build.xm
l:462: Requires '${compiler.cfg.id}'

I'm guessing it's not detecting my compiler correctly, but how do I fix this?
Reply | Threaded
Open this post in threaded view
|

Re: Error building joal libraries?

ebiglari
Nevermind.  Got it.
Reply | Threaded
Open this post in threaded view
|

Re: Error building joal libraries?

Michael Bien
In reply to this post by ebiglari
have you successfully build gluegen?

(maybe you can post the rest of the error log)

On 07/08/2010 08:53 PM, John Jacobs [via jogamp] wrote:
I tried building the joal library and I get:

BUILD FAILED
C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\make\build.xm
l:700: The following error occurred while executing this line:
C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\make\build.xm
l:517: The following error occurred while executing this line:
C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\make\build.xm
l:462: Requires '${compiler.cfg.id}'

I'm guessing it's not detecting my compiler correctly, but how do I fix this?


View message @ http://jogamp.762907.n3.nabble.com/Error-building-joal-libraries-tp952595p952595.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.


-- 
http://michael-bien.com/
Reply | Threaded
Open this post in threaded view
|

Re: Error building joal libraries?

ebiglari
I had to include the following lines in my gluegen.properties:


win32.c.compiler=mingw32
compiler.cfg.id=compiler.cfg.win32.mingw
linker.cfg.id=linker.cfg.win32.mingw


but both gluegen and joal compile just fine now.   However, now, when I go to run the tests using the test target I get:

    [javac] C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\t
est\build.xml:43: warning: 'includeantruntime' was not set, defaulting to build.
sysclasspath=last; set to false for repeatable builds
    [javac] C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\t
est\src\com\jogamp\openal\ALTest.java:14: package com.jogamp.openal.util does no
t exist
    [javac] import com.jogamp.openal.util.*;
    [javac] ^
    [javac] C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\t
est\src\com\jogamp\openal\ALTest.java:23: cannot find symbol
    [javac] symbol  : class AL
    [javac] location: class com.jogamp.openal.ALTest
    [javac]     static AL al;
    [javac]            ^


It seems like I'm missing something.
Reply | Threaded
Open this post in threaded view
|

Re: Error building joal libraries?

Michael Bien
specifying the compiler id is not required. It should be resolved automatically. If not please post/attach the complete log.

win32.c.compiler=mingw32

should be sufficient on windows32
(linux defaults to gcc)

-michael

On 07/08/2010 11:06 PM, John Jacobs [via jogamp] wrote:
I had to include the following lines in my gluegen.properties:


win32.c.compiler=mingw32
compiler.cfg.id=compiler.cfg.win32.mingw
linker.cfg.id=linker.cfg.win32.mingw


but both gluegen and joal compile just fine now.   However, now, when I go to run the tests using the test target I get:

    [javac] C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\t
est\build.xml:43: warning: 'includeantruntime' was not set, defaulting to build.
sysclasspath=last; set to false for repeatable builds
    [javac] C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\t
est\src\com\jogamp\openal\ALTest.java:14: package com.jogamp.openal.util does no
t exist
    [javac] import com.jogamp.openal.util.*;
    [javac] ^
    [javac] C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\t
est\src\com\jogamp\openal\ALTest.java:23: cannot find symbol
    [javac] symbol  : class AL
    [javac] location: class com.jogamp.openal.ALTest
    [javac]     static AL al;
    [javac]            ^


It seems like I'm missing something.


View message @ http://jogamp.762907.n3.nabble.com/Error-building-joal-libraries-tp952595p952851.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.


-- 
http://michael-bien.com/
Reply | Threaded
Open this post in threaded view
|

Re: Error building joal libraries?

ebiglari
Buildfile: C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\make\build.xml

load.user.properties:
     [echo] Loaded C:\Documents and Settings\Ehren/joal.properties. (optionally)

gluegen.properties.load.user:
     [echo] Loaded C:\Documents and Settings\Ehren/gluegen.properties.
     [echo] antlr.jar=C:/javalibs/antlr/antlr-3.2.jar
     [echo] junit.jar=../../gluegen/make/lib/junit.jar
     [echo] win32.c.compiler=mingw32

gluegen.cpptasks.initialize:

gluegen.cpptasks.detect.os.1:
     [echo] FreeBSD=${isFreeBSD}
     [echo] HPUX=${isHPUX}
     [echo] IA64=${isIA64}
     [echo] Linux=${isLinux}
     [echo] LinuxAMD64=${isLinuxAMD64}
     [echo] LinuxIA64=${isLinuxIA64}
     [echo] LinuxX86=${isLinuxX86}
     [echo] OS X=${isOSX}
     [echo] OS X PPC=${use.macosppc}
     [echo] OS X x32=true
     [echo] OS X x64=true
     [echo] Solaris=${isSolaris}
     [echo] Solaris32Bit=${isSolaris32Bit}
     [echo] SolarisSparc=${isSolarisSparc}
     [echo] SolarisSparcv9=${isSolarisSparcv9}
     [echo] SolarisAMD64=${isSolarisAMD64}
     [echo] SolarisX86=${isSolarisX86}
     [echo] Unix=${isUnix}
     [echo] Windows=true
     [echo] X11=${isX11}

gluegen.cpptasks.detect.os.freebsd:

gluegen.cpptasks.detect.os.hpux:

gluegen.cpptasks.detect.os.linux.amd64:

gluegen.cpptasks.detect.os.linux.ia64:

gluegen.cpptasks.detect.os.linux.x86:

gluegen.cpptasks.detect.os.linux:

gluegen.cpptasks.detect.os.osx:

gluegen.cpptasks.detect.os.solaris.sparc:

gluegen.cpptasks.detect.os.solaris.sparcv9:

gluegen.cpptasks.detect.os.solaris.amd64:

gluegen.cpptasks.detect.os.solaris.x86:

gluegen.cpptasks.detect.os.solaris:

gluegen.cpptasks.detect.os.unix:

gluegen.cpptasks.detect.os.windows.amd64:

gluegen.cpptasks.detect.os.windows.x86:

gluegen.cpptasks.detect.os.windows:

gluegen.cpptasks.detect.os.2:

gluegen.cpptasks.detect.os:

base.init:

setup.java.home.dir.nonmacosx:

setup.java.home.dir.macosx:

setup.java.home.dir:

gluegen.cpptasks.detect.compiler:
     [echo] VC6=${isVC6}
     [echo] VC7=${isVC7}
     [echo] VC8=${isVC8}
     [echo] VC8_X64=${isVC8_X64}
     [echo] VC9=${isVC9}
     [echo] MingW=true
     [echo] MingW32=true
     [echo] MingW64=${isMingW64}

declare.common:

clean:

clean:

load.user.properties:
     [echo] Loaded C:\Documents and Settings\Ehren/joal.properties. (optionally)

gluegen.properties.load.user:

gluegen.cpptasks.initialize:

gluegen.cpptasks.detect.os.1:

gluegen.cpptasks.detect.os.freebsd:

gluegen.cpptasks.detect.os.hpux:

gluegen.cpptasks.detect.os.linux.amd64:

gluegen.cpptasks.detect.os.linux.ia64:

gluegen.cpptasks.detect.os.linux.x86:

gluegen.cpptasks.detect.os.linux:

gluegen.cpptasks.detect.os.osx:

gluegen.cpptasks.detect.os.solaris.sparc:

gluegen.cpptasks.detect.os.solaris.sparcv9:

gluegen.cpptasks.detect.os.solaris.amd64:

gluegen.cpptasks.detect.os.solaris.x86:

gluegen.cpptasks.detect.os.solaris:

gluegen.cpptasks.detect.os.unix:

gluegen.cpptasks.detect.os.windows.amd64:

gluegen.cpptasks.detect.os.windows.x86:

gluegen.cpptasks.detect.os.windows:

gluegen.cpptasks.detect.os.2:

gluegen.cpptasks.detect.os:

base.init:

setup.java.home.dir.nonmacosx:

setup.java.home.dir.macosx:

setup.java.home.dir:

gluegen.cpptasks.detect.compiler:
     [echo] VC6=${isVC6}
     [echo] VC7=${isVC7}
     [echo] VC8=${isVC8}
     [echo] VC8_X64=${isVC8_X64}
     [echo] VC9=${isVC9}
     [echo] MingW=true
     [echo] MingW32=true
     [echo] MingW64=${isMingW64}

declare.common:

init:

antlr.jar.validate:

java.home.dir.validate:

test.for.jogl.jar:

java.class.path.validate:

validate:
    [mkdir] Created dir: C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\build\gensrc\classes
    [mkdir] Created dir: C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\build\gensrc\native\joal
    [mkdir] Created dir: C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\build\classes
    [mkdir] Created dir: C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\build\obj
    [mkdir] Created dir: C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\build\obj\joal

declare.win32.vc6:

declare.win32.vc7:

declare.win32.vc8:

declare.win32.vc8_x64:

declare.win32.mingw:

declare.win32:

declare.linux.x86:

declare.linux.amd64:

declare.linux.ia64:

declare.linux:

declare.solaris32:

declare.macosx.ppc:

declare.macosx.universal:

declare.macosx:

declare.freebsd:

declare:

all:

load.user.properties:
     [echo] Loaded C:\Documents and Settings\Ehren/joal.properties. (optionally)

gluegen.properties.load.user:

gluegen.cpptasks.initialize:

gluegen.cpptasks.detect.os.1:

gluegen.cpptasks.detect.os.freebsd:

gluegen.cpptasks.detect.os.hpux:

gluegen.cpptasks.detect.os.linux.amd64:

gluegen.cpptasks.detect.os.linux.ia64:

gluegen.cpptasks.detect.os.linux.x86:

gluegen.cpptasks.detect.os.linux:

gluegen.cpptasks.detect.os.osx:

gluegen.cpptasks.detect.os.solaris.sparc:

gluegen.cpptasks.detect.os.solaris.sparcv9:

gluegen.cpptasks.detect.os.solaris.amd64:

gluegen.cpptasks.detect.os.solaris.x86:

gluegen.cpptasks.detect.os.solaris:

gluegen.cpptasks.detect.os.unix:

gluegen.cpptasks.detect.os.windows.amd64:

gluegen.cpptasks.detect.os.windows.x86:

gluegen.cpptasks.detect.os.windows:

gluegen.cpptasks.detect.os.2:

gluegen.cpptasks.detect.os:

base.init:

setup.java.home.dir.nonmacosx:

setup.java.home.dir.macosx:

setup.java.home.dir:

gluegen.cpptasks.detect.compiler:
     [echo] VC6=${isVC6}
     [echo] VC7=${isVC7}
     [echo] VC8=${isVC8}
     [echo] VC8_X64=${isVC8_X64}
     [echo] VC9=${isVC9}
     [echo] MingW=true
     [echo] MingW32=true
     [echo] MingW64=${isMingW64}

declare.common:

init:

antlr.jar.validate:

java.home.dir.validate:

test.for.jogl.jar:

java.class.path.validate:

validate:

build.gluegen:

gluegen.properties.load.user:
     [echo] Loaded C:\Documents and Settings\Ehren/gluegen.properties.
     [echo] antlr.jar=C:/javalibs/antlr/antlr-3.2.jar
     [echo] junit.jar=../make/lib/junit.jar
     [echo] win32.c.compiler=mingw32

setup-excludes-1:

setup-excludes-2:

init:

java.class.path.validate:

validate:

gluegen.cpptasks.initialize:

gluegen.cpptasks.detect.os.1:
     [echo] FreeBSD=${isFreeBSD}
     [echo] HPUX=${isHPUX}
     [echo] IA64=${isIA64}
     [echo] Linux=${isLinux}
     [echo] LinuxAMD64=${isLinuxAMD64}
     [echo] LinuxIA64=${isLinuxIA64}
     [echo] LinuxX86=${isLinuxX86}
     [echo] OS X=${isOSX}
     [echo] OS X PPC=${use.macosppc}
     [echo] OS X x32=true
     [echo] OS X x64=true
     [echo] Solaris=${isSolaris}
     [echo] Solaris32Bit=${isSolaris32Bit}
     [echo] SolarisSparc=${isSolarisSparc}
     [echo] SolarisSparcv9=${isSolarisSparcv9}
     [echo] SolarisAMD64=${isSolarisAMD64}
     [echo] SolarisX86=${isSolarisX86}
     [echo] Unix=${isUnix}
     [echo] Windows=true
     [echo] X11=${isX11}

gluegen.cpptasks.detect.os.freebsd:

gluegen.cpptasks.detect.os.hpux:

gluegen.cpptasks.detect.os.linux.amd64:

gluegen.cpptasks.detect.os.linux.ia64:

gluegen.cpptasks.detect.os.linux.x86:

gluegen.cpptasks.detect.os.linux:

gluegen.cpptasks.detect.os.osx:

gluegen.cpptasks.detect.os.solaris.sparc:

gluegen.cpptasks.detect.os.solaris.sparcv9:

gluegen.cpptasks.detect.os.solaris.amd64:

gluegen.cpptasks.detect.os.solaris.x86:

gluegen.cpptasks.detect.os.solaris:

gluegen.cpptasks.detect.os.unix:

gluegen.cpptasks.detect.os.windows.amd64:

gluegen.cpptasks.detect.os.windows.x86:

gluegen.cpptasks.detect.os.windows:

gluegen.cpptasks.detect.os.2:

gluegen.cpptasks.detect.os:

gluegen.build.check:

gluegen.build:

junit.compile:

gluegen.properties.load.user:

init:

java.class.path.validate:

validate:
     [echo] test.base.dir: ../src/junit
     [echo] test.junit.dir: ../src/junit/com/jogamp
     [echo] test.junit.generation.dir: ../src/junit/com/jogamp/gluegen/test/junit/generation
     [echo] test.dir: ../build/test
     [echo] results: ../build/test/results
     [echo] build_t: ../build/test/build
     [echo] build_t.gen: ../build/test/build/gensrc
     [echo] build_t.java: ../build/test/build/classes
     [echo] build_t.obj: ../build/test/build/obj
     [echo] build_t.lib: ../build/test/build/natives

junit.compile.check:

junit.compile:

all:

java.generate.check:

java.generate:
  [gluegen] [WARNING com.sun.gluegen.CMethodBindingEmitter]: No capacity specified for java.nio.Buffer return value for function "dispatch_alcCaptureOpenDevice" assuming size of equivalent C return type (sizeof(ALCdevice *)): ALCdevice dispatch_alcCaptureOpenDevice(java.nio.ByteBuffer devicename, int frequency, int format, int buffersize)
     [echo]
     [echo] GlueGen has successfully generated files.

java.compile:
    [javac] Compiling 32 source files to C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\build\classes

setup-version-string-release:

setup-version-string-prerelease:

setup-version-string:

jar:
     [copy] Copying 1 file to C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\make
      [jar] Building MANIFEST-only jar: C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\build\joal.jar
   [delete] Deleting: C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\make\tempversion

c.build.joal:

load.user.properties:
     [echo] Loaded C:\Documents and Settings\Ehren/joal.properties. (optionally)

gluegen.properties.load.user:

gluegen.cpptasks.initialize:

gluegen.cpptasks.detect.os.1:

gluegen.cpptasks.detect.os.freebsd:

gluegen.cpptasks.detect.os.hpux:

gluegen.cpptasks.detect.os.linux.amd64:

gluegen.cpptasks.detect.os.linux.ia64:

gluegen.cpptasks.detect.os.linux.x86:

gluegen.cpptasks.detect.os.linux:

gluegen.cpptasks.detect.os.osx:

gluegen.cpptasks.detect.os.solaris.sparc:

gluegen.cpptasks.detect.os.solaris.sparcv9:

gluegen.cpptasks.detect.os.solaris.amd64:

gluegen.cpptasks.detect.os.solaris.x86:

gluegen.cpptasks.detect.os.solaris:

gluegen.cpptasks.detect.os.unix:

gluegen.cpptasks.detect.os.windows.amd64:

gluegen.cpptasks.detect.os.windows.x86:

gluegen.cpptasks.detect.os.windows:

gluegen.cpptasks.detect.os.2:

gluegen.cpptasks.detect.os:

base.init:

setup.java.home.dir.nonmacosx:

setup.java.home.dir.macosx:

setup.java.home.dir:

gluegen.cpptasks.configure.compiler:

c.configure:

c.build:
C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\make>ant clean all > "c:\Documents and Settings\Ehren\joal_build.log"

BUILD FAILED
C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\make\build.xml:700: The following error occurred while executing this line:
C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\make\build.xml:517: The following error occurred while executing this line:
C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\make\build.xml:462: Requires '${compiler.cfg.id}'

Total time: 4 seconds
Reply | Threaded
Open this post in threaded view
|

Re: Error building joal libraries?

Michael Bien
yes, feel free to do so. or just write a mail to the list. its a mailinglist and a forum.

On 07/08/2010 11:33 PM, John Jacobs [via jogamp] wrote:
I don't see the option for attachment.  Should I just post it here?


View message @ http://jogamp.762907.n3.nabble.com/Error-building-joal-libraries-tp952595p952921.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.


-- 
http://michael-bien.com/
Reply | Threaded
Open this post in threaded view
|

Re: Error building joal libraries?

Michael Bien
In reply to this post by ebiglari
thats strange. It looks right at the first glance.
system is properly detected and the declare.foo targets are run. for some reason it declare.win32.mingw not which means isMingw is not yet set at this point....

well at least you know a workaround :)

ebiglari wrote
Buildfile: C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\make\build.xml

load.user.properties:
     [echo] Loaded C:\Documents and Settings\Ehren/joal.properties. (optionally)

gluegen.properties.load.user:
     [echo] Loaded C:\Documents and Settings\Ehren/gluegen.properties.
     [echo] antlr.jar=C:/javalibs/antlr/antlr-3.2.jar
     [echo] junit.jar=../../gluegen/make/lib/junit.jar
     [echo] win32.c.compiler=mingw32

gluegen.cpptasks.initialize:

gluegen.cpptasks.detect.os.1:
     [echo] FreeBSD=${isFreeBSD}
     [echo] HPUX=${isHPUX}
     [echo] IA64=${isIA64}
     [echo] Linux=${isLinux}
     [echo] LinuxAMD64=${isLinuxAMD64}
     [echo] LinuxIA64=${isLinuxIA64}
     [echo] LinuxX86=${isLinuxX86}
     [echo] OS X=${isOSX}
     [echo] OS X PPC=${use.macosppc}
     [echo] OS X x32=true
     [echo] OS X x64=true
     [echo] Solaris=${isSolaris}
     [echo] Solaris32Bit=${isSolaris32Bit}
     [echo] SolarisSparc=${isSolarisSparc}
     [echo] SolarisSparcv9=${isSolarisSparcv9}
     [echo] SolarisAMD64=${isSolarisAMD64}
     [echo] SolarisX86=${isSolarisX86}
     [echo] Unix=${isUnix}
     [echo] Windows=true
     [echo] X11=${isX11}

gluegen.cpptasks.detect.os.freebsd:

gluegen.cpptasks.detect.os.hpux:

gluegen.cpptasks.detect.os.linux.amd64:

gluegen.cpptasks.detect.os.linux.ia64:

gluegen.cpptasks.detect.os.linux.x86:

gluegen.cpptasks.detect.os.linux:

gluegen.cpptasks.detect.os.osx:

gluegen.cpptasks.detect.os.solaris.sparc:

gluegen.cpptasks.detect.os.solaris.sparcv9:

gluegen.cpptasks.detect.os.solaris.amd64:

gluegen.cpptasks.detect.os.solaris.x86:

gluegen.cpptasks.detect.os.solaris:

gluegen.cpptasks.detect.os.unix:

gluegen.cpptasks.detect.os.windows.amd64:

gluegen.cpptasks.detect.os.windows.x86:

gluegen.cpptasks.detect.os.windows:

gluegen.cpptasks.detect.os.2:

gluegen.cpptasks.detect.os:

base.init:

setup.java.home.dir.nonmacosx:

setup.java.home.dir.macosx:

setup.java.home.dir:

gluegen.cpptasks.detect.compiler:
     [echo] VC6=${isVC6}
     [echo] VC7=${isVC7}
     [echo] VC8=${isVC8}
     [echo] VC8_X64=${isVC8_X64}
     [echo] VC9=${isVC9}
     [echo] MingW=true
     [echo] MingW32=true
     [echo] MingW64=${isMingW64}

declare.common:

clean:

clean:

load.user.properties:
     [echo] Loaded C:\Documents and Settings\Ehren/joal.properties. (optionally)

gluegen.properties.load.user:

gluegen.cpptasks.initialize:

gluegen.cpptasks.detect.os.1:

gluegen.cpptasks.detect.os.freebsd:

gluegen.cpptasks.detect.os.hpux:

gluegen.cpptasks.detect.os.linux.amd64:

gluegen.cpptasks.detect.os.linux.ia64:

gluegen.cpptasks.detect.os.linux.x86:

gluegen.cpptasks.detect.os.linux:

gluegen.cpptasks.detect.os.osx:

gluegen.cpptasks.detect.os.solaris.sparc:

gluegen.cpptasks.detect.os.solaris.sparcv9:

gluegen.cpptasks.detect.os.solaris.amd64:

gluegen.cpptasks.detect.os.solaris.x86:

gluegen.cpptasks.detect.os.solaris:

gluegen.cpptasks.detect.os.unix:

gluegen.cpptasks.detect.os.windows.amd64:

gluegen.cpptasks.detect.os.windows.x86:

gluegen.cpptasks.detect.os.windows:

gluegen.cpptasks.detect.os.2:

gluegen.cpptasks.detect.os:

base.init:

setup.java.home.dir.nonmacosx:

setup.java.home.dir.macosx:

setup.java.home.dir:

gluegen.cpptasks.detect.compiler:
     [echo] VC6=${isVC6}
     [echo] VC7=${isVC7}
     [echo] VC8=${isVC8}
     [echo] VC8_X64=${isVC8_X64}
     [echo] VC9=${isVC9}
     [echo] MingW=true
     [echo] MingW32=true
     [echo] MingW64=${isMingW64}

declare.common:

init:

antlr.jar.validate:

java.home.dir.validate:

test.for.jogl.jar:

java.class.path.validate:

validate:
    [mkdir] Created dir: C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\build\gensrc\classes
    [mkdir] Created dir: C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\build\gensrc\native\joal
    [mkdir] Created dir: C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\build\classes
    [mkdir] Created dir: C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\build\obj
    [mkdir] Created dir: C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\build\obj\joal

declare.win32.vc6:

declare.win32.vc7:

declare.win32.vc8:

declare.win32.vc8_x64:

declare.win32.mingw:

declare.win32:

declare.linux.x86:

declare.linux.amd64:

declare.linux.ia64:

declare.linux:

declare.solaris32:

declare.macosx.ppc:

declare.macosx.universal:

declare.macosx:

declare.freebsd:

declare:

all:

load.user.properties:
     [echo] Loaded C:\Documents and Settings\Ehren/joal.properties. (optionally)

gluegen.properties.load.user:

gluegen.cpptasks.initialize:

gluegen.cpptasks.detect.os.1:

gluegen.cpptasks.detect.os.freebsd:

gluegen.cpptasks.detect.os.hpux:

gluegen.cpptasks.detect.os.linux.amd64:

gluegen.cpptasks.detect.os.linux.ia64:

gluegen.cpptasks.detect.os.linux.x86:

gluegen.cpptasks.detect.os.linux:

gluegen.cpptasks.detect.os.osx:

gluegen.cpptasks.detect.os.solaris.sparc:

gluegen.cpptasks.detect.os.solaris.sparcv9:

gluegen.cpptasks.detect.os.solaris.amd64:

gluegen.cpptasks.detect.os.solaris.x86:

gluegen.cpptasks.detect.os.solaris:

gluegen.cpptasks.detect.os.unix:

gluegen.cpptasks.detect.os.windows.amd64:

gluegen.cpptasks.detect.os.windows.x86:

gluegen.cpptasks.detect.os.windows:

gluegen.cpptasks.detect.os.2:

gluegen.cpptasks.detect.os:

base.init:

setup.java.home.dir.nonmacosx:

setup.java.home.dir.macosx:

setup.java.home.dir:

gluegen.cpptasks.detect.compiler:
     [echo] VC6=${isVC6}
     [echo] VC7=${isVC7}
     [echo] VC8=${isVC8}
     [echo] VC8_X64=${isVC8_X64}
     [echo] VC9=${isVC9}
     [echo] MingW=true
     [echo] MingW32=true
     [echo] MingW64=${isMingW64}

declare.common:

init:

antlr.jar.validate:

java.home.dir.validate:

test.for.jogl.jar:

java.class.path.validate:

validate:

build.gluegen:

gluegen.properties.load.user:
     [echo] Loaded C:\Documents and Settings\Ehren/gluegen.properties.
     [echo] antlr.jar=C:/javalibs/antlr/antlr-3.2.jar
     [echo] junit.jar=../make/lib/junit.jar
     [echo] win32.c.compiler=mingw32

setup-excludes-1:

setup-excludes-2:

init:

java.class.path.validate:

validate:

gluegen.cpptasks.initialize:

gluegen.cpptasks.detect.os.1:
     [echo] FreeBSD=${isFreeBSD}
     [echo] HPUX=${isHPUX}
     [echo] IA64=${isIA64}
     [echo] Linux=${isLinux}
     [echo] LinuxAMD64=${isLinuxAMD64}
     [echo] LinuxIA64=${isLinuxIA64}
     [echo] LinuxX86=${isLinuxX86}
     [echo] OS X=${isOSX}
     [echo] OS X PPC=${use.macosppc}
     [echo] OS X x32=true
     [echo] OS X x64=true
     [echo] Solaris=${isSolaris}
     [echo] Solaris32Bit=${isSolaris32Bit}
     [echo] SolarisSparc=${isSolarisSparc}
     [echo] SolarisSparcv9=${isSolarisSparcv9}
     [echo] SolarisAMD64=${isSolarisAMD64}
     [echo] SolarisX86=${isSolarisX86}
     [echo] Unix=${isUnix}
     [echo] Windows=true
     [echo] X11=${isX11}

gluegen.cpptasks.detect.os.freebsd:

gluegen.cpptasks.detect.os.hpux:

gluegen.cpptasks.detect.os.linux.amd64:

gluegen.cpptasks.detect.os.linux.ia64:

gluegen.cpptasks.detect.os.linux.x86:

gluegen.cpptasks.detect.os.linux:

gluegen.cpptasks.detect.os.osx:

gluegen.cpptasks.detect.os.solaris.sparc:

gluegen.cpptasks.detect.os.solaris.sparcv9:

gluegen.cpptasks.detect.os.solaris.amd64:

gluegen.cpptasks.detect.os.solaris.x86:

gluegen.cpptasks.detect.os.solaris:

gluegen.cpptasks.detect.os.unix:

gluegen.cpptasks.detect.os.windows.amd64:

gluegen.cpptasks.detect.os.windows.x86:

gluegen.cpptasks.detect.os.windows:

gluegen.cpptasks.detect.os.2:

gluegen.cpptasks.detect.os:

gluegen.build.check:

gluegen.build:

junit.compile:

gluegen.properties.load.user:

init:

java.class.path.validate:

validate:
     [echo] test.base.dir: ../src/junit
     [echo] test.junit.dir: ../src/junit/com/jogamp
     [echo] test.junit.generation.dir: ../src/junit/com/jogamp/gluegen/test/junit/generation
     [echo] test.dir: ../build/test
     [echo] results: ../build/test/results
     [echo] build_t: ../build/test/build
     [echo] build_t.gen: ../build/test/build/gensrc
     [echo] build_t.java: ../build/test/build/classes
     [echo] build_t.obj: ../build/test/build/obj
     [echo] build_t.lib: ../build/test/build/natives

junit.compile.check:

junit.compile:

all:

java.generate.check:

java.generate:
  [gluegen] [WARNING com.sun.gluegen.CMethodBindingEmitter]: No capacity specified for java.nio.Buffer return value for function "dispatch_alcCaptureOpenDevice" assuming size of equivalent C return type (sizeof(ALCdevice *)): ALCdevice dispatch_alcCaptureOpenDevice(java.nio.ByteBuffer devicename, int frequency, int format, int buffersize)
     [echo]
     [echo] GlueGen has successfully generated files.

java.compile:
    [javac] Compiling 32 source files to C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\build\classes

setup-version-string-release:

setup-version-string-prerelease:

setup-version-string:

jar:
     [copy] Copying 1 file to C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\make
      [jar] Building MANIFEST-only jar: C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\build\joal.jar
   [delete] Deleting: C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\make\tempversion

c.build.joal:

load.user.properties:
     [echo] Loaded C:\Documents and Settings\Ehren/joal.properties. (optionally)

gluegen.properties.load.user:

gluegen.cpptasks.initialize:

gluegen.cpptasks.detect.os.1:

gluegen.cpptasks.detect.os.freebsd:

gluegen.cpptasks.detect.os.hpux:

gluegen.cpptasks.detect.os.linux.amd64:

gluegen.cpptasks.detect.os.linux.ia64:

gluegen.cpptasks.detect.os.linux.x86:

gluegen.cpptasks.detect.os.linux:

gluegen.cpptasks.detect.os.osx:

gluegen.cpptasks.detect.os.solaris.sparc:

gluegen.cpptasks.detect.os.solaris.sparcv9:

gluegen.cpptasks.detect.os.solaris.amd64:

gluegen.cpptasks.detect.os.solaris.x86:

gluegen.cpptasks.detect.os.solaris:

gluegen.cpptasks.detect.os.unix:

gluegen.cpptasks.detect.os.windows.amd64:

gluegen.cpptasks.detect.os.windows.x86:

gluegen.cpptasks.detect.os.windows:

gluegen.cpptasks.detect.os.2:

gluegen.cpptasks.detect.os:

base.init:

setup.java.home.dir.nonmacosx:

setup.java.home.dir.macosx:

setup.java.home.dir:

gluegen.cpptasks.configure.compiler:

c.configure:

c.build:
C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\make>ant clean all > "c:\Documents and Settings\Ehren\joal_build.log"

BUILD FAILED
C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\make\build.xml:700: The following error occurred while executing this line:
C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\make\build.xml:517: The following error occurred while executing this line:
C:\Documents and Settings\Ehren\My Documents\NetBeansProjects\joal\make\build.xml:462: Requires '${compiler.cfg.id}'

Total time: 4 seconds
Reply | Threaded
Open this post in threaded view
|

Re: Error building joal libraries?

ebiglari
True.  However, for the other issue (building the test target) I don't yet have a workaround.  Any ideas on that one?
Reply | Threaded
Open this post in threaded view
|

Re: Error building joal libraries?

Michael Bien
no workaround. A fix would be cool :) Looks like we forgot to update the classpath of the test target as the package was renamed.

On 07/09/2010 01:22 AM, ebiglari [via jogamp] wrote:
True.  However, for the other issue (building the test target) I don't yet have a workaround.  Any ideas on that one?


View message @ http://jogamp.762907.n3.nabble.com/Error-building-joal-libraries-tp952595p953139.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.


-- 
http://michael-bien.com/
Reply | Threaded
Open this post in threaded view
|

Re: Error building joal libraries?

ebiglari
Cool. Well, I guess I'll let you take care of that one since you're more familiar with the script.  Let me know when you've got it so I can pull it into my repo.

On Thu, Jul 8, 2010 at 6:54 PM, Michael Bien [via jogamp] <[hidden email]> wrote:
no workaround. A fix would be cool :) Looks like we forgot to update the classpath of the test target as the package was renamed.

On 07/09/2010 01:22 AM, ebiglari [via jogamp] wrote:
True.  However, for the other issue (building the test target) I don't yet have a workaround.  Any ideas on that one?


View message @ http://jogamp.762907.n3.nabble.com/Error-building-joal-libraries-tp952595p953139.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.


-- 
http://michael-bien.com/



View message @ http://jogamp.762907.n3.nabble.com/Error-building-joal-libraries-tp952595p953188.html
To unsubscribe from Re: Error building joal libraries?, click here.


Reply | Threaded
Open this post in threaded view
|

Re: Error building joal libraries?

ebiglari
That is, unless you want me to take a look at it.  I'd be glad to.  But, it might take me a little while to figure out the build script.
Reply | Threaded
Open this post in threaded view
|

Re: Error building joal libraries?

Michael Bien
pushed it, see commit log.
http://github.com/mbien/joal/commit/b2558379ed0b2ae7a0ab6bfdb0a8f2c05afa1663

i get now a: java.lang.RuntimeException: Unable to find and load OpenAL library

which means it seems to work :)

now its your turn :)

On 07/09/2010 02:42 AM, ebiglari [via jogamp] wrote:
That is, unless you want me to take a look at it.  I'd be glad to.  But, it might take me a little while to figure out the build script.


View message @ http://jogamp.762907.n3.nabble.com/Error-building-joal-libraries-tp952595p953276.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.

-- 
http://michael-bien.com/
Reply | Threaded
Open this post in threaded view
|

Re: Error building joal libraries?

ebiglari
Thx. :) I'll take a look at it.

On Thu, Jul 8, 2010 at 8:55 PM, Michael Bien [via jogamp] <[hidden email]> wrote:
pushed it, see commit log.
http://github.com/mbien/joal/commit/b2558379ed0b2ae7a0ab6bfdb0a8f2c05afa1663

i get now a: java.lang.RuntimeException: Unable to find and load OpenAL library

which means it seems to work :)

now its your turn :)

On 07/09/2010 02:42 AM, ebiglari [via jogamp] wrote:
That is, unless you want me to take a look at it.  I'd be glad to.  But, it might take me a little while to figure out the build script.


View message @ http://jogamp.762907.n3.nabble.com/Error-building-joal-libraries-tp952595p953276.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.

-- 
http://michael-bien.com/



View message @ http://jogamp.762907.n3.nabble.com/Error-building-joal-libraries-tp952595p953377.html
To unsubscribe from Re: Error building joal libraries?, click here.


Reply | Threaded
Open this post in threaded view
|

Re: Error building joal libraries?

ebiglari
In reply to this post by Michael Bien
Ok, so it appears that the test cases are looking for dll called joal_native.   Do you know where this can be found, or what's going on with it?  I traced through the code and found a comment that said something about it being a wrapper for a driver of the form *oal, and that wildcard causing some kind of strange bug if not initialized in a privileged context.   A couple of quick questions, is joal_native.dll the same as wrap_oal.dll?  I renamed wrap_oal.dll to joal_native and that seemed to solve at least one problem (but I'm not entirely sure, it just didn't create an exception on those lines).  Now it seems to be crashing on the loading of the gluegen-rt.dll library, on the line:

device = alc.alcOpenDevice(null);

and I haven't traced the code enough to get rid of this bug.  Any ideas on that one?  Lastly, in OpenALTest.java and Sound3DTest.java it appears that the fail() statements were missing, and it was just passing those tests all the time.  When I added in the fails, they failed also.

Oh, and I created a nice (at least in my opinion) testbed in netbeans for junit tests which helps out tremendously in tracing the bugs.  However, I'm curious, what kind of environment are you using for developing the jogamp libraries?


On Thu, Jul 8, 2010 at 8:55 PM, Michael Bien [via jogamp] <[hidden email]> wrote:
pushed it, see commit log.
http://github.com/mbien/joal/commit/b2558379ed0b2ae7a0ab6bfdb0a8f2c05afa1663

i get now a: java.lang.RuntimeException: Unable to find and load OpenAL library

which means it seems to work :)

now its your turn :)

On 07/09/2010 02:42 AM, ebiglari [via jogamp] wrote:
That is, unless you want me to take a look at it.  I'd be glad to.  But, it might take me a little while to figure out the build script.


View message @ http://jogamp.762907.n3.nabble.com/Error-building-joal-libraries-tp952595p953276.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.

-- 
http://michael-bien.com/



View message @ http://jogamp.762907.n3.nabble.com/Error-building-joal-libraries-tp952595p953377.html
To unsubscribe from Re: Error building joal libraries?, click here.


Reply | Threaded
Open this post in threaded view
|

Re: Error building joal libraries?

ebiglari
In reply to this post by Michael Bien
The exact error I recieve from the line:

device = alc.alcOpenDevice(null);

is:

Testcase: tester(com.jogamp.openal.OpenALTest):        Caused an ERROR
com.jogamp.openal.impl.ALCImpl.dispatch_alcOpenDevice1(Ljava/lang/String;J)Ljava/nio/ByteBuffer;
java.lang.UnsatisfiedLinkError: com.jogamp.openal.impl.ALCImpl.dispatch_alcOpenDevice1(Ljava/lang/String;J)Ljava/nio/ByteBuffer;



On Thu, Jul 8, 2010 at 8:55 PM, Michael Bien [via jogamp] <[hidden email]> wrote:
pushed it, see commit log.
http://github.com/mbien/joal/commit/b2558379ed0b2ae7a0ab6bfdb0a8f2c05afa1663

i get now a: java.lang.RuntimeException: Unable to find and load OpenAL library

which means it seems to work :)

now its your turn :)

On 07/09/2010 02:42 AM, ebiglari [via jogamp] wrote:
That is, unless you want me to take a look at it.  I'd be glad to.  But, it might take me a little while to figure out the build script.


View message @ http://jogamp.762907.n3.nabble.com/Error-building-joal-libraries-tp952595p953276.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.

-- 
http://michael-bien.com/



View message @ http://jogamp.762907.n3.nabble.com/Error-building-joal-libraries-tp952595p953377.html
To unsubscribe from Re: Error building joal libraries?, click here.


Reply | Threaded
Open this post in threaded view
|

Re: Error building joal libraries?

Michael Bien
In reply to this post by ebiglari


On 07/10/2010 04:53 AM, ebiglari [via jogamp] wrote:
Ok, so it appears that the test cases are looking for dll called joal_native.
i believe it is joal's native glue code. We should rename it later to joal to have similar naming conventions as in jogl and jocl.

   Do you know where this can be found, or what's going on with it?  I traced through the code and found a comment that said something about it being a wrapper for a driver of the form *oal, and that wildcard causing some kind of strange bug if not initialized in a privileged context.   A couple of quick questions, is joal_native.dll the same as wrap_oal.dll?
take a look at the OpenAL downloads:
http://connect.creativelabs.com/openal/Downloads/Forms/AllItems.aspx

DLL Version numbers:

    * OpenAL32.dll version 6.14.357.24
    * wrap_oal.dll version 2.2.0.5
its part of the OpenAL distribution. (you find a copy in joal/make/lib/ maybe an update is necessary)

so.. both are not the same


  I renamed wrap_oal.dll to joal_native and that seemed to solve at least one problem (but I'm not entirely sure, it just didn't create an exception on those lines).  Now it seems to be crashing on the loading of the gluegen-rt.dll library, on the line:

device = alc.alcOpenDevice(null);

and I haven't traced the code enough to get rid of this bug.  Any ideas on that one?  Lastly, in OpenALTest.java and Sound3DTest.java it appears that the fail() statements were missing, and it was just passing those tests all the time.  When I added in the fails, they failed also.
good :)


Oh, and I created a nice (at least in my opinion) testbed in netbeans for junit tests which helps out tremendously in tracing the bugs.  However, I'm curious, what kind of environment are you using for developing the jogamp libraries?

regarding IDEs. I am using most of the time NetBeans, sometimes IntelliJ. Sven prefers VI as far as i know. You can take a look e.g at gluegen/nbproject/ide-file-targets.xml and project.xml to get an idea how to integrate the test and debug actions. (if  you haven't already done that)

regards,
michael



On Thu, Jul 8, 2010 at 8:55 PM, Michael Bien [via jogamp] <[hidden email]> wrote:
pushed it, see commit log.
http://github.com/mbien/joal/commit/b2558379ed0b2ae7a0ab6bfdb0a8f2c05afa1663

i get now a: java.lang.RuntimeException: Unable to find and load OpenAL library

which means it seems to work :)

now its your turn :)

On 07/09/2010 02:42 AM, ebiglari [via jogamp] wrote:
That is, unless you want me to take a look at it.  I'd be glad to.  But, it might take me a little while to figure out the build script.


View message @ http://jogamp.762907.n3.nabble.com/Error-building-joal-libraries-tp952595p953276.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.

-- 
http://michael-bien.com/



View message @ http://jogamp.762907.n3.nabble.com/Error-building-joal-libraries-tp952595p953377.html
To unsubscribe from Re: Error building joal libraries?, click here.





View message @ http://jogamp.762907.n3.nabble.com/Error-building-joal-libraries-tp952595p955693.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.


-- 
http://michael-bien.com/
Reply | Threaded
Open this post in threaded view
|

Re: Error building joal libraries?

Michael Bien
In reply to this post by ebiglari
please take a look at my recent changes. JOAL works pretty well for me now.
http://github.com/mbien/joal/commits/master

(http://jogamp.762907.n3.nabble.com/joal-works-tp956268p956268.html)

regards,
michael


On 07/10/2010 05:07 AM, ebiglari [via jogamp] wrote:
The exact error I recieve from the line:

device = alc.alcOpenDevice(null);

is:

Testcase: tester(com.jogamp.openal.OpenALTest):        Caused an ERROR
com.jogamp.openal.impl.ALCImpl.dispatch_alcOpenDevice1(Ljava/lang/String;J)Ljava/nio/ByteBuffer;
java.lang.UnsatisfiedLinkError: com.jogamp.openal.impl.ALCImpl.dispatch_alcOpenDevice1(Ljava/lang/String;J)Ljava/nio/ByteBuffer;



On Thu, Jul 8, 2010 at 8:55 PM, Michael Bien [via jogamp] <[hidden email]> wrote:
pushed it, see commit log.
http://github.com/mbien/joal/commit/b2558379ed0b2ae7a0ab6bfdb0a8f2c05afa1663

i get now a: java.lang.RuntimeException: Unable to find and load OpenAL library

which means it seems to work :)

now its your turn :)

On 07/09/2010 02:42 AM, ebiglari [via jogamp] wrote:
That is, unless you want me to take a look at it.  I'd be glad to.  But, it might take me a little while to figure out the build script.


View message @ http://jogamp.762907.n3.nabble.com/Error-building-joal-libraries-tp952595p953276.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.

-- 
http://michael-bien.com/



View message @ http://jogamp.762907.n3.nabble.com/Error-building-joal-libraries-tp952595p953377.html
To unsubscribe from Re: Error building joal libraries?, click here.





View message @ http://jogamp.762907.n3.nabble.com/Error-building-joal-libraries-tp952595p955712.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.


-- 
http://michael-bien.com/
Reply | Threaded
Open this post in threaded view
|

Re: Error building joal libraries?

ebiglari
In reply to this post by Michael Bien
Okay, so two out of the three tests pass now!!! :)  The two that pass are openALTest and sound3DTest.   ALtest fails on the following line:

al.alDeleteBuffers(7, (int[]) null, 0);

which is testing for an illegal argument but instead just halts the VM.   However, I'm not sure that is an illegal argument, is it?

So, the reason it's taken me this long to get this working is that the build script has something messed up so that apparently it didn't copy libnative_joal.so to native_joal.dll.  So after digging in the build script I finally realized that libjoal_native.so was actually joal_native.dll.   Renaming the file manually and trying out the tests I got a little further and they failed on EAXFactory.  So, then I took a look at the .c files and, apparently, the class prefix on the functions were incorrect.  After fixing that and rebuilding, openALTest and sound3DTest pass, and now I'm just dealing with that illegal parameter issue, which, I'm not sure is an issue at all.
Reply | Threaded
Open this post in threaded view
|

Re: Error building joal libraries?

Michael Bien

On 07/10/2010 02:54 PM, ebiglari [via jogamp] wrote:
> Okay, so two out of the three tests pass now!!! :)  The two that pass
> are openALTest and sound3DTest.   ALtest fails on the following line:
>
> al.alDeleteBuffers(7, (int[]) null, 0);
>
> which is testing for an illegal argument but instead just halts the
> VM.   However, I'm not sure that is an illegal argument, is it?
well, the buffer array is null but the test is asking joal to remove all
7 buffers of that array. The binding code is generated by gluegen and
gluegen can't do those kind of semantic checks by default. So its fine
for now that those tests fail.


>
> So, the reason it's taken me this long to get this working is that the
> build script has something messed up so that apparently it didn't copy
> libnative_joal.so to native_joal.dll.  So after digging in the build
> script I finally realized that libjoal_native.so was actually
> joal_native.dll.   Renaming the file manually and trying out the tests
> I got a little further and they failed on EAXFactory.  So, then I took
> a look at the .c files and, apparently, the class prefix on the
> functions were incorrect.  After fixing that and rebuilding,
> openALTest and sound3DTest pass, and now I'm just dealing with that
> illegal parameter issue, which, I'm not sure is an issue at all.
cool, sounds good.

i also fixed a bug in Sound3DTest where EAXFactory was initialized
despite the fact that eax was not available on my system.

-michael
12