Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (521)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (589)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  j3d-core d3d compilation...  (Read 2131 times)
0 Members and 1 Guest are viewing this topic.
Offline jiapei100

Junior Devvie





« Posted 2009-10-05 17:16:16 »



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

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
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.

Welcome to Vision Open
http://www.visionopen.com
Offline jiapei100

Junior Devvie





« Reply #1 - Posted 2009-10-05 19:19:19 »

problem solved.

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


1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
     <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

Welcome to Vision Open
http://www.visionopen.com
Offline jiapei100

Junior Devvie





« Reply #2 - Posted 2009-10-05 20:05:41 »


How to make CG compiled with j3d-core?

I tried

1  
>ant -DCOMPILE_CG_SHADERS=1


but
1  
j3dcore-ogl-cg.dll


is not produced.



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

"
  <target name="init-cg" if="build.cg">
    <property name="cflags.cg"  value="-DCOMPILE_CG_SHADERS=1"/>
    <property name="cg.home" location="c:/Program Files/NVIDIA Corporation/Cg"/>
  </target>
"
 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?HuhHuh?

I'll remove it and have a go.

Cheers
JIA Pei

Welcome to Vision Open
http://www.visionopen.com
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline jiapei100

Junior Devvie





« Reply #3 - Posted 2009-10-05 20:11:54 »


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

Welcome to Vision Open
http://www.visionopen.com
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xFryIx (52 views)
2014-11-13 12:34:49

digdugdiggy (34 views)
2014-11-12 21:11:50

digdugdiggy (28 views)
2014-11-12 21:10:15

digdugdiggy (23 views)
2014-11-12 21:09:33

kovacsa (46 views)
2014-11-07 19:57:14

TehJavaDev (50 views)
2014-11-03 22:04:50

BurntPizza (49 views)
2014-11-03 18:54:52

moogie (65 views)
2014-11-03 06:22:04

CopyableCougar4 (63 views)
2014-11-01 23:36:41

DarkCart (148 views)
2014-11-01 14:51:03
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!