Compiling the complete source?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
exal
Posts: 60
Joined: Tue Feb 24, 2004 9:05 am

Compiling the complete source?

Post by exal »

Hi

Has anyone compiled the complete source? I try to compile it with MSVS.Net. I run into problem when compiling jpeglib since there are a lot of settings to make there it seems. Does anyone have the complete project setup including source so you can send it to me? Or tell me what I need to set for getting it to compile.

Thanks
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

The full source is zipped up in the /source directory.

Extract it to the root directory ( / ), not to the /source directory.

You shouldn't need to change anything at all for MS VC.Net.

What problems are you getting?
Crud, how do I do this again?
exal
Posts: 60
Joined: Tue Feb 24, 2004 9:05 am

Post by exal »

if you compile the jpeglib you find a few places where it says

Intentional syntax error.
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

Alright, I just did a complete recompile in VC.Net 2003 with a freshly unpacked 0.5 source and the only problem I had was in the fast_atof.h. I changed:

Code: Select all

f *= (f32)pow(10.0, exp);
to

Code: Select all

f *= (f32)pow(10.0f, exp);
to get past the error: "fast_atof.h(68): error C2666: 'pow' : 7 overloads have similar conversions"

I have the DX9SDK installed and the lib and includes for it in my C++ Directories.

Do you have another version of jpeglib in your directories?
Crud, how do I do this again?
Homer
Posts: 58
Joined: Tue Nov 18, 2003 7:11 pm
Location: Germany

Post by Homer »

I have another problem: recompiling the engine with MS VC++ 6 works fine, but when I run my program with the new dll, I get a memory read error. The weird thing is, that my program starts up with a irr software device for the main menu and this works, but when I then close the software device and open a OpenGL or DirectX device, the program crashes. With the original dll from niko everything works fine. Here's what I've done to replace nikos dll with mine: Replaced "irrlicht.dll" in "windows\system32" (my dll is about 40kb bigger than nikos), replaced "Irrlicht.lib" in "Irrlicht\Lib\VisualStudio" with the new "Irrlicht.lib", changed the Include-Path in MS VC++ from "Irrlicht\Include" to "Irrlicht\Source\Include". I remember having had the same problem with Irrlicht 0.4.2. Has anyone an idea what causes the memory error?
Post Reply