vutle / gamekit

Automatically exported from code.google.com/p/gamekit
0 stars 0 forks source link

Compile problem in linux #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make

What is the expected output? What do you see instead?
............
............
/home/lordloki/Multimedia/CVS/gamekit/gamekit/bFile.cpp: In constructor
‘bParse::bFile::bFile(const char*)’:
/home/lordloki/Multimedia/CVS/gamekit/gamekit/bFile.cpp:51: error: ‘malloc’
no se declaró en este ámbito
/home/lordloki/Multimedia/CVS/gamekit/gamekit/bFile.cpp: In destructor
‘bParse::bFile::~bFile()’:
/home/lordloki/Multimedia/CVS/gamekit/gamekit/bFile.cpp:87: error: ‘free’
no se declaró en este ámbito
/home/lordloki/Multimedia/CVS/gamekit/gamekit/bFile.cpp: In member function
‘void bParse::bFile::parseHeader()’:
/home/lordloki/Multimedia/CVS/gamekit/gamekit/bFile.cpp:109: error:
‘memcpy’ no se declaró en este ámbito
/home/lordloki/Multimedia/CVS/gamekit/gamekit/bFile.cpp:112: error:
‘strncmp’ no se declaró en este ámbito
/home/lordloki/Multimedia/CVS/gamekit/gamekit/bFile.cpp:119: error: ‘atoi’
no se declaró en este ámbito
..........
..........

What version of the product are you using? On what operating system?
linux Mandriva 2009.1

Please provide any additional information below.
I have attached a little fix

Original issue reported on code.google.com by jbernalm...@gmail.com on 17 Nov 2009 at 10:44

Attachments:

GoogleCodeExporter commented 9 years ago
thanks, I'm applying it later today

Original comment by erwin.coumans on 18 Nov 2009 at 11:14

GoogleCodeExporter commented 9 years ago
can you please check if latest trunk compiles?

Also, you could help with some test with the bParse .blend reader? 
Enable this define in gamekit/main.cpp
#define TEST_ECHO_BLEND_READER 1

If you are using Blender 2.49 files created using a Blender with the same 
architecture (32/64bit little/endian) as your native machine, the structures 
can be 
used without conversion, so it should be faster. Then you can use the 
autogenerated 
structs in the gamekit/autogenerated directory for easy .blend data access.

Note that only graphics is converted with bParse (TEST_ECHO_BLEND_READER)

Original comment by erwin.coumans on 19 Nov 2009 at 12:26

GoogleCodeExporter commented 9 years ago
Hi,

I have tested the bParse .blend reader with the blends included in the gamekit
directory and everything went fine (also the BigEndian one). But I also tried a
64-bit file and I had this error:

[lordloki@localhost gamekit]$ ./GameKit ~lordloki/Escritorio/Nature.blend
argv[0]=./GameKit
Usage:
GameKit [-verbose] [blendfile.blend]
Irrlicht Engine version 1.6
Linux 2.6.29.6-desktop-1mnb #1 SMP Sun Jul 5 19:57:54 EDT 2009 i686
Using renderer: OpenGL 3.0.0
GeForce 8800 GT/PCI/SSE2/3DNOW!: NVIDIA Corporation
OpenGL driver version is 1.2 or better.
GLSL version: 1.3
Invalid blend file...
cannot read Blender file /home/lordloki/Escritorio/Nature.blend.

You can download the file from here:
http://www.mediafire.com/file/u3mzmqouuvy/Nature.blend

This file is from the last BGE competition.

P.S. I had to add string.h and stdlib.h in bDNA.cpp to can compile the Gamekit 
binary.

Regards

Original comment by jbernalm...@gmail.com on 19 Nov 2009 at 9:49

GoogleCodeExporter commented 9 years ago
I forgot it.... my architecture is 32-bit

Original comment by jbernalm...@gmail.com on 19 Nov 2009 at 9:50

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks, I'll have a look at it.

By the way your Nature.blend gives python scripting errors when running it into 
Blender 
2.49 and 2.49b BGE.

Is there a Blender / BGE version that it works for?
Cheers,
Erwin

Original comment by erwin.coumans on 20 Nov 2009 at 3:12

GoogleCodeExporter commented 9 years ago
Yes, I have played it in an official Blender 2.49b for linux.

Also, you can try this one (i think is 64bit file too)
http://theboomshelter.com/crap/slideshow.blend 

or if you could supply me a simple 64-bit blend file i could test it.

Original comment by jbernalm...@gmail.com on 20 Nov 2009 at 4:54

GoogleCodeExporter commented 9 years ago

Thanks for the feedback.

Can you check out svn revision 100?

Original comment by erwin.coumans on 20 Nov 2009 at 11:22

GoogleCodeExporter commented 9 years ago
Hi,

As Nature.blend as slideshow.blend give the following error:

lordloki@localhost gamekit]$ ./GameKit ~lordloki/Escritorio/Nature.blend
argv[0]=./GameKit
Usage:
GameKit [-verbose] [blendfile.blend]
Irrlicht Engine version 1.6
Linux 2.6.29.6-desktop-1mnb #1 SMP Sun Jul 5 19:57:54 EDT 2009 i686
Using renderer: OpenGL 3.0.0
GeForce 8800 GT/PCI/SSE2/3DNOW!: NVIDIA Corporation
OpenGL driver version is 1.2 or better.
GLSL version: 1.3
Invalid blend file...
cannot read Blender file /home/lordloki/Escritorio/Nature.blend.

I have been investigating and it seems that both files don't have the right
file-header (BLENDER_v249 or in this case BLENDER-v249).
Moreover Blender 2.5 can open them without problems.

By other way, I have played right 64bit files like this one
http://projects.freefac.org/rigamarule/EXAMPLES/test.blend (with its right
BLENDER-v249 file-header) and they were opened without problems.

Original comment by jbernalm...@gmail.com on 21 Nov 2009 at 10:38

GoogleCodeExporter commented 9 years ago
They are zipped .blend files, just unzip them manually for 
now

thanks for the feedback, let's close the issue

Original comment by erwin.coumans on 21 Nov 2009 at 1:24