j3d-core d3d compilation...

After modifying build.xml to ensure “vc” is the compiler while “d3d” is used to render, I obtained the following error messages during “ant” compilation. What else should I revise to compile j3d-core with d3d rendering support?

Rgds
JIA



compile:
     [echo] Executing 32 bit native renderer build [debug]
    [mkdir] Created dir: C:\jiapei\MyPrograms\Eclipse\j3d-core\build\windows-i58
6-vc\debug\native\d3d\objs
     [exec] DrawingSurfaceObjectAWT.c
     [exec] MasterControl.c
     [exec] D3dVertexBuffer.cpp
     [exec] c:\jiapei\myprograms\eclipse\j3d-core\src\native\d3d\StdAfx.h(75) :
fatal error C1083: Cannot open include file: 'dxerr9.h': No such file or directo
ry
     [exec] D3dDisplayList.cpp
     [exec] c:\jiapei\myprograms\eclipse\j3d-core\src\native\d3d\StdAfx.h(75) :
fatal error C1083: Cannot open include file: 'dxerr9.h': No such file or directo
ry
     [exec] D3dDriverInfo.cpp
     [exec] c:\jiapei\myprograms\eclipse\j3d-core\src\native\d3d\Stdafx.h(75) :
fatal error C1083: Cannot open include file: 'dxerr9.h': No such file or directo
ry
     [exec] D3dDeviceInfo.cpp
     [exec] c:\jiapei\myprograms\eclipse\j3d-core\src\native\d3d\Stdafx.h(75) :
fatal error C1083: Cannot open include file: 'dxerr9.h': No such file or directo
ry
     [exec] D3dCtx.cpp
     [exec] c:\jiapei\myprograms\eclipse\j3d-core\src\native\d3d\Stdafx.h(75) :
fatal error C1083: Cannot open include file: 'dxerr9.h': No such file or directo
ry
     [exec] D3dUtil.cpp
     [exec] c:\jiapei\myprograms\eclipse\j3d-core\src\native\d3d\StdAfx.h(75) :
fatal error C1083: Cannot open include file: 'dxerr9.h': No such file or directo
ry
     [exec] GeometryArrayRetained.cpp
     [exec] c:\jiapei\myprograms\eclipse\j3d-core\src\native\d3d\StdAfx.h(75) :
fatal error C1083: Cannot open include file: 'dxerr9.h': No such file or directo
ry
     [exec] Canvas3D.cpp
     [exec] c:\jiapei\myprograms\eclipse\j3d-core\src\native\d3d\StdAfx.h(75) :
fatal error C1083: Cannot open include file: 'dxerr9.h': No such file or directo
ry
     [exec] GraphicsContext3D.cpp
     [exec] c:\jiapei\myprograms\eclipse\j3d-core\src\native\d3d\StdAfx.h(75) :
fatal error C1083: Cannot open include file: 'dxerr9.h': No such file or directo
ry
     [exec] Attributes.cpp
     [exec] c:\jiapei\myprograms\eclipse\j3d-core\src\native\d3d\StdAfx.h(75) :
fatal error C1083: Cannot open include file: 'dxerr9.h': No such file or directo
ry
     [exec] Lights.cpp
     [exec] c:\jiapei\myprograms\eclipse\j3d-core\src\native\d3d\StdAfx.h(75) :
fatal error C1083: Cannot open include file: 'dxerr9.h': No such file or directo
ry
     [exec] NativeConfigTemplate3D.cpp
     [exec] c:\jiapei\myprograms\eclipse\j3d-core\src\native\d3d\StdAfx.h(75) :
fatal error C1083: Cannot open include file: 'dxerr9.h': No such file or directo
ry
     [exec] Generating Code...
     [exec] Result: 2
     [exec] LINK : fatal error LNK1181: cannot open input file 'Attributes.obj'
     [exec] Result: 1181

BUILD FAILED
C:\jiapei\MyPrograms\Eclipse\j3d-core\build.xml:420: The following error occurre
d while executing this line:
C:\jiapei\MyPrograms\Eclipse\j3d-core\build.xml:424: The following error occurre
d while executing this line:
C:\jiapei\MyPrograms\Eclipse\j3d-core\src\native\build.xml:417: The following er
ror occurred while executing this line:
C:\jiapei\MyPrograms\Eclipse\j3d-core\src\native\d3d\build-windows-i586-vc.xml:3
6: Warning: Could not find file C:\jiapei\MyPrograms\Eclipse\j3d-core\build\wind
ows-i586-vc\debug\native\d3d\objs\j3dcore-d3d.dll to copy.

problem solved.

Revise build-windows-i586-vc.xml to the following:

  	<property environment="env"/>
    <property name="javaInclude"
     location="${java.home}/../include"/>

    <property name="javaWin32Include"
     location="${java.home}/../include/win32"/>
  	
  	<property name="dxhomeInclude" 
  		location="${env.DXSDK_DIR}/include"/>
  	
  	<property name="sdkhomeInclude" 
  		location="${env.WindowsSdkDir}/include"/>
.... (loads of the other staffs)

Anyway, the purpose is just to let j3d-core to find d3d header files and libraries.

Cheers
JIA Pei

How to make CG compiled with j3d-core?

I tried

>ant -DCOMPILE_CG_SHADERS=1

but

j3dcore-ogl-cg.dll

is not produced.

After “ant debug”, I found the building process never goes into

"




"
of file “build-windows-i586-vc.xml”, which seems to tell “build.cg” is not true.

I searched in j3d-core folder, and found “build.cg” only exists in file “build-windows-i586-vc.xml”.

Therefore, “build.cg” is not defined at all???

I’ll remove it and have a go.

Cheers
JIA Pei

Alright…

I guess there must be some specific compilation parameters to compile in different ways. For j3d-core, there must be two:

j3dcore-ogl-chk.dll and j3dcore-ogl-cg.dll

But, what are those two specific compilation configuration parameters?

Cheers
JIA Pei