Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11855 Posts in 1569 Topics- by 3058 Members - Latest Member: xynewhand

12. February 2012, 02:56:57 AM
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)[SOLVED] Unable to build
Pages: [1]
Print
Author Topic: [SOLVED] Unable to build  (Read 334 times)
ChrisE
Becoming dependent
**
Offline Offline

Posts: 104


View Profile
« on: 01. November 2010, 04:07:59 PM »

Sorry to spam the forums, but another hitch. As I'm unable to embed the source into our project (Xith3D is considered an external dependency, and so we treat it as such), I've taken to trying to make the .jar libraries for it from the latest (rev. 1839) SVN.

Now, I've exported the tree to strip the SVN information to a new folder (using SVN Export), and have run Ant (no args). This results in the following output:


E:\workspace\external\Xith3D\trunk>ant
Buildfile: build.xml

-pre-init:

-init-private:

-init-libraries:

-init-user:

-init-project:

-init-macrodef-property:

-do-init:

-post-init:

-init-check:

-init-macrodef-javac:

-init-macrodef-junit:

-init-debug-args:

-init-macrodef-nbjpda:

-init-macrodef-debug:

-init-macrodef-java:

-init-presetdef-jar:

init:

deps-jar:

-check-automatic-build:

-clean-after-automatic-build:

-verify-automatic-build:

-pre-pre-compile:

-pre-compile:

-compile-depend:

-do-compile:
    [javac] Compiling 310 source files to E:\workspace\external\Xith3D\trunk\bui
ld\classes
    [javac] E:\workspace\external\Xith3D\trunk\src\org\xith3d\sound\drivers\joal
\SoundBufferImpl.java:59: alGenBuffers(int,int[]) in net.java.games.joal.AL cann
ot be applied to (int,int[],int)
    [javac]         driver.getAL().alGenBuffers( 1, ret, 0 );
    [javac]                       ^
    [javac] E:\workspace\external\Xith3D\trunk\src\org\xith3d\sound\drivers\joal
\SoundDriverImpl.java:146: alListenerfv(int,float[]) in net.java.games.joal.AL c
annot be applied to (int,float[],int)
    [javac]         al.alListenerfv( AL.AL_POSITION,
    [javac]           ^
    [javac] E:\workspace\external\Xith3D\trunk\src\org\xith3d\sound\drivers\joal
\SoundDriverImpl.java:166: alListenerfv(int,float[]) in net.java.games.joal.AL c
annot be applied to (int,float[],int)
    [javac]         al.alListenerfv( AL.AL_ORIENTATION,
    [javac]           ^
    [javac] E:\workspace\external\Xith3D\trunk\src\org\xith3d\sound\drivers\joal
\SoundDriverImpl.java:279: alDeleteSources(int,int[]) in net.java.games.joal.AL
cannot be applied to (int,int[],int)
    [javac]             al.alDeleteSources( sourceList.length, sourceList, 0 );
    [javac]               ^
    [javac] E:\workspace\external\Xith3D\trunk\src\org\xith3d\sound\drivers\joal
\SoundDriverImpl.java:294: alDeleteBuffers(int,int[]) in net.java.games.joal.AL
cannot be applied to (int,int[],int)
    [javac]             al.alDeleteBuffers( bufferList.length, bufferList, 0 );
    [javac]               ^
    [javac] E:\workspace\external\Xith3D\trunk\src\org\xith3d\sound\drivers\joal
\SoundDriverImpl.java:299: alcMakeContextCurrent(net.java.games.joal.ALC.Context
) in net.java.games.joal.ALC cannot be applied to (net.java.games.joal.ALCcontex
t)
    [javac]         alc.alcMakeContextCurrent( context );
    [javac]            ^
    [javac] E:\workspace\external\Xith3D\trunk\src\org\xith3d\sound\drivers\joal
\SoundDriverImpl.java:301: alcDestroyContext(net.java.games.joal.ALC.Context) in
 net.java.games.joal.ALC cannot be applied to (net.java.games.joal.ALCcontext)
    [javac]         alc.alcDestroyContext( context );
    [javac]            ^
    [javac] E:\workspace\external\Xith3D\trunk\src\org\xith3d\sound\drivers\joal
\SoundDriverImpl.java:303: alcCloseDevice(net.java.games.joal.ALC.Device) in net
.java.games.joal.ALC cannot be applied to (net.java.games.joal.ALCdevice)
    [javac]         alc.alcCloseDevice( device );
    [javac]            ^
    [javac] E:\workspace\external\Xith3D\trunk\src\org\xith3d\sound\drivers\joal
\SoundDriverImpl.java:324: incompatible types
    [javac] found   : net.java.games.joal.ALC.Device
    [javac] required: net.java.games.joal.ALCdevice
    [javac]             device = alc.alcOpenDevice( System.getProperty( "XITH3D_
OPENAL_DEVICE" ) );
    [javac]                                       ^
    [javac] E:\workspace\external\Xith3D\trunk\src\org\xith3d\sound\drivers\joal
\SoundDriverImpl.java:333: alcCreateContext(net.java.games.joal.ALC.Device,int[]
) in net.java.games.joal.ALC cannot be applied to (net.java.games.joal.ALCdevice
,<nulltype>)
    [javac]         context = alc.alcCreateContext( device, null );
    [javac]                      ^
    [javac] E:\workspace\external\Xith3D\trunk\src\org\xith3d\sound\drivers\joal
\SoundDriverImpl.java:334: alcMakeContextCurrent(net.java.games.joal.ALC.Context
) in net.java.games.joal.ALC cannot be applied to (net.java.games.joal.ALCcontex
t)
    [javac]         alc.alcMakeContextCurrent( context );
    [javac]            ^
    [javac] E:\workspace\external\Xith3D\trunk\src\org\xith3d\sound\drivers\joal
\SoundSourceImpl.java:63: alGenSources(int,int[]) in net.java.games.joal.AL cann
ot be applied to (int,int[],int)
    [javac]         driver.getAL().alGenSources( 1, ret, 0 );
    [javac]                       ^
    [javac] E:\workspace\external\Xith3D\trunk\src\org\xith3d\sound\drivers\joal
\SoundSourceImpl.java:78: alSourceQueueBuffers(int,int,int[]) in net.java.games.
joal.AL cannot be applied to (int,int,int[],int)
    [javac]         driver.getAL().alSourceQueueBuffers( handle, 1, new int[]
    [javac]                       ^
    [javac] E:\workspace\external\Xith3D\trunk\src\org\xith3d\sound\drivers\joal
\SoundSourceImpl.java:88: cannot find symbol
    [javac] symbol  : method alGetSourcei(int,int,int[],int)
    [javac] location: interface net.java.games.joal.AL
    [javac]         driver.getAL().alGetSourcei( handle, AL.AL_BUFFERS_PROCESSED
, ret, 0 );
    [javac]                       ^
    [javac] E:\workspace\external\Xith3D\trunk\src\org\xith3d\sound\drivers\joal
\SoundSourceImpl.java:91: alSourceUnqueueBuffers(int,int,int[]) in net.java.game
s.joal.AL cannot be applied to (int,int,int[],int)
    [javac]         driver.getAL().alSourceUnqueueBuffers( handle, num, buffers,
 0 );
    [javac]                       ^
    [javac] E:\workspace\external\Xith3D\trunk\src\org\xith3d\sound\drivers\joal
\SoundSourceImpl.java:167: alSourcefv(int,int,float[]) in net.java.games.joal.AL
 cannot be applied to (int,int,float[],int)
    [javac]         driver.getAL().alSourcefv( handle, AL.AL_POSITION, pos, 0 );

    [javac]                       ^
    [javac] E:\workspace\external\Xith3D\trunk\src\org\xith3d\sound\drivers\joal
\SoundSourceImpl.java:199: cannot find symbol
    [javac] symbol  : method alGetSourcei(int,int,int[],int)
    [javac] location: interface net.java.games.joal.AL
    [javac]         driver.getAL().alGetSourcei( handle, AL.AL_SOURCE_STATE, ret
, 0 );
    [javac]                       ^
    [javac] 17 errors

BUILD FAILED
E:\workspace\external\Xith3D\trunk\nbproject\build-impl.xml:352: The following e
rror occurred while executing this line:
E:\workspace\external\Xith3D\trunk\nbproject\build-impl.xml:176: Compile failed;
 see the compiler error output for details.

Total time: 2 seconds
E:\workspace\external\Xith3D\trunk>


There seems to be a problem with JoAL, but I haven't the faintest what to do here other than use the latest lib from the cooker release. Any ideas?

EDIT: Thanks for any help on this... consulted the Wiki and searched the forums but beyond a change to use windows instead of linux folders in the .classpath files I've found nothing relevant.

EDIT 2: Note that the cooker release is unable to run the JOALSoundTest or PointSoundTest samples. So, perhaps this is a problem with my environment.
« Last Edit: 18. November 2010, 08:48:22 PM by ChrisE » Logged
ChrisE
Becoming dependent
**
Offline Offline

Posts: 104


View Profile
« Reply #1 on: 01. November 2010, 09:44:46 PM »

So, perhaps solved.

In SoundDriverImpl.java:

ALCcontext should be ALC.Context.
ALCdevice should be ALC.Device.

Something I've noticed is also that many calls, such as alGenSources or alSourceQueueBuffers had a spurious extra parameter (0 in all cases) that confused ant. Removing the extra parameter allowed the build to work.

Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4337


May the 4th, be with you...


View Profile
« Reply #2 on: 01. November 2010, 10:22:55 PM »

Something I've noticed is also that many calls, such as alGenSources or alSourceQueueBuffers had a spurious extra parameter (0 in all cases) that confused ant. Removing the extra parameter allowed the build to work.

This parameter was added in some version of OpenAL. I suspect, that you have an outdated version of OpenAL somewhere in your system (probably JAVA_HOME/jre/ext or something like that). Delete that.

Marvin
Logged
ChrisE
Becoming dependent
**
Offline Offline

Posts: 104


View Profile
« Reply #3 on: 01. November 2010, 10:32:46 PM »

Just to clarify: the parameter is new and should be kept and the old libraries removed?
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4337


May the 4th, be with you...


View Profile
« Reply #4 on: 01. November 2010, 11:43:51 PM »

precisely
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic