Author Topic: Glexemeltrouble  (Read 1236 times)

Idanwin

  • Guest
Glexemeltrouble
« on: 2 November 2008, 18:45:57 »
I got the xml exporter working, but ran in trouble with converting them into .g3d.
I downloaded glexemel, I ran make and got this error:

Code: [Select]
$ make
gcc -Wall -ansi -pedantic -I/usr/include/libxml2 g2xml.c -o g2xml -lxml2
In file included from g2xml.c:17:
g3dv4.h:16: error: expected identifier or ‘(’ before ‘/’ token
g3dv4.h:44: error: expected specifier-qualifier-list before ‘float32’
g2xml.c: In function ‘g3d2xml’:
g2xml.c:127: error: ‘float32’ undeclared (first use in this function)
g2xml.c:127: error: (Each undeclared identifier is reported only once
g2xml.c:127: error: for each function it appears in.)
g2xml.c:127: error: ‘fdata’ undeclared (first use in this function)
g2xml.c:128: warning: ISO C90 forbids mixed declarations and code
g2xml.c:189: error: ‘struct MeshHeader’ has no member named ‘specularPower’
g2xml.c:190: error: ‘struct MeshHeader’ has no member named ‘opacity’
g2xml.c:191: error: ‘struct MeshHeader’ has no member named ‘properties’
g2xml.c:195: error: ‘struct MeshHeader’ has no member named ‘properties’
g2xml.c:199: error: ‘struct MeshHeader’ has no member named ‘textures’
g2xml.c:208: error: ‘struct MeshHeader’ has no member named ‘diffuseColor’
g2xml.c:209: error: ‘struct MeshHeader’ has no member named ‘diffuseColor’
g2xml.c:210: error: ‘struct MeshHeader’ has no member named ‘diffuseColor’
g2xml.c:214: error: ‘struct MeshHeader’ has no member named ‘specularColor’
g2xml.c:215: error: ‘struct MeshHeader’ has no member named ‘specularColor’
g2xml.c:216: error: ‘struct MeshHeader’ has no member named ‘specularColor’
g2xml.c:220: error: ‘struct MeshHeader’ has no member named ‘textures’
g2xml.c:301: error: ‘struct MeshHeader’ has no member named ‘textures’
make: *** [g2xml] Error 1

Could someone please help me?!

Yggdrasil

  • GAE Team
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: Glexemeltrouble
« Reply #1 on: 21 November 2008, 14:21:05 »
Just replace in Makefile line 6:
Code: [Select]
CFLAGS=-Wall('-ansi -pedantic' removed)

It's not needed to be ansi conform. Otherwise you would need to move all declarations at the beginning of a function and replace all comments '// ...' with '/* ... */'. And maybe more.

Another thing:
It seems nobody noticed it. I changed the Blender export script to run glexemel directly after generating the XML file.

http://http://glest.org/glest_board/viewtopic.php?f=4&t=3916&start=15#p19453
(MSYS is about the shell script from titi, not needed for export script)

Could someone please try it. I don't know anything about Blender. So, i'm not able to test it myself (just exported a simple mesh under Linux, no texture, no animation).
It should also work on Windows.