DevC++ Recompile Engine
DevC++ Recompile Engine
I'm now sure if this has already been asked in the forums, I've looked and searched but did not find a thread on it.
But here's my question, I'm trying to recompile the engine in DevC++ and it's giving me the following errors:
5 D:\Irrlicht0.6\irrlicht-0.6\source\source\CAnimatedMeshMD2.cpp
In file included from CAnimatedMeshMD2.cpp
30 D:\Irrlicht0.6\irrlicht-0.6\source\source\CAnimatedMeshMD2.h:8
IAnimatedMeshMD2.h: No such file or directory.
23 D:\Irrlicht0.6\irrlicht-0.6\source\source\CAnimatedMeshMD2.h:9
IReadFile.h: No such file or directory.
23 D:\Irrlicht0.6\irrlicht-0.6\source\source\CAnimatedMeshMD2.h:10
S3DVertex.h: No such file or directory.
23 D:\Irrlicht0.6\irrlicht-0.6\source\source\CAnimatedMeshMD2.h:10
S3DVertex.h: No such file or directory.
19 D:\Irrlicht0.6\irrlicht-0.6\source\source\CAnimatedMeshMD2.h:11
array.h: No such file or directory.
23 D:\Irrlicht0.6\irrlicht-0.6\source\source\CAnimatedMeshMD2.h:12
irrString.h: No such file or directory.
And a bunch more just like it. I don't know why it's not seeing these files, I opened the DevC++ project file from the source directory. Anybody know how to solve this ?
But here's my question, I'm trying to recompile the engine in DevC++ and it's giving me the following errors:
5 D:\Irrlicht0.6\irrlicht-0.6\source\source\CAnimatedMeshMD2.cpp
In file included from CAnimatedMeshMD2.cpp
30 D:\Irrlicht0.6\irrlicht-0.6\source\source\CAnimatedMeshMD2.h:8
IAnimatedMeshMD2.h: No such file or directory.
23 D:\Irrlicht0.6\irrlicht-0.6\source\source\CAnimatedMeshMD2.h:9
IReadFile.h: No such file or directory.
23 D:\Irrlicht0.6\irrlicht-0.6\source\source\CAnimatedMeshMD2.h:10
S3DVertex.h: No such file or directory.
23 D:\Irrlicht0.6\irrlicht-0.6\source\source\CAnimatedMeshMD2.h:10
S3DVertex.h: No such file or directory.
19 D:\Irrlicht0.6\irrlicht-0.6\source\source\CAnimatedMeshMD2.h:11
array.h: No such file or directory.
23 D:\Irrlicht0.6\irrlicht-0.6\source\source\CAnimatedMeshMD2.h:12
irrString.h: No such file or directory.
And a bunch more just like it. I don't know why it's not seeing these files, I opened the DevC++ project file from the source directory. Anybody know how to solve this ?
I'm such an idiot. I just needed to go to Project Settings and add the source/include dir to my list of DevC++ Include Directories.
But now I'm getting the following errors:
[Linker error] undefined reference to `inflateInit2_'
[Linker error] undefined reference to `inflate'
[Linker error] undefined reference to `inflateEnd'
And some others relating to the JPEG library. I've used DevC++ 4 and 5, and all I did was open the project file included with the Irrlicht source, and I didn't change anything, and I'm getting these errors. Any ideas?
But now I'm getting the following errors:
[Linker error] undefined reference to `inflateInit2_'
[Linker error] undefined reference to `inflate'
[Linker error] undefined reference to `inflateEnd'
And some others relating to the JPEG library. I've used DevC++ 4 and 5, and all I did was open the project file included with the Irrlicht source, and I didn't change anything, and I'm getting these errors. Any ideas?
sorry for extra post.. I figure I should explain what that means.
The irrlicht source uses zlib and jpeglib, so it references functions in those library files. You must tell the linker that you're going to be using those libraries. the actual file is called "libjpeg.a" and "libz.a" but the linker knows to take the "lib" part off of the front and the ".a" part off of the back. the "-l" option tells the linker to link that library into the executable as well.
BTW, it's possible to link tons of libraries you will never use into the executable, inflating the size considerably. If you're linker happy, just turn on "strip executable" in the linker options and it'll remove all the stuff you never used in the code.
The irrlicht source uses zlib and jpeglib, so it references functions in those library files. You must tell the linker that you're going to be using those libraries. the actual file is called "libjpeg.a" and "libz.a" but the linker knows to take the "lib" part off of the front and the ".a" part off of the back. the "-l" option tells the linker to link that library into the executable as well.
BTW, it's possible to link tons of libraries you will never use into the executable, inflating the size considerably. If you're linker happy, just turn on "strip executable" in the linker options and it'll remove all the stuff you never used in the code.
Don't remember - now all works well and I can only post project options ok?
Include directories:
C:\3d Engines\irrlicht-0.6\INCLUDE
Library directories:
C:\Development\Irrlicht\gppjpeglib
C:\3d Engines\irrlicht-0.6\SOURCE\ZLIB
Parameters:
Compiler:
-DIRRLICHT_EXPORTS=1
C++Compiler:
-DIRRLICHT_EXPORTS=1
Linker
--no-export-all-symbols --add-stdcall-alias -lgdi32 -lglu32 -lopengl32 -ljpeg -lz
Maybe this help you.
Take a look that dll files are only for MS compiler. DevCPP uses files with .a extension.
Include directories:
C:\3d Engines\irrlicht-0.6\INCLUDE
Library directories:
C:\Development\Irrlicht\gppjpeglib
C:\3d Engines\irrlicht-0.6\SOURCE\ZLIB
Parameters:
Compiler:
-DIRRLICHT_EXPORTS=1
C++Compiler:
-DIRRLICHT_EXPORTS=1
Linker
--no-export-all-symbols --add-stdcall-alias -lgdi32 -lglu32 -lopengl32 -ljpeg -lz
Maybe this help you.
Take a look that dll files are only for MS compiler. DevCPP uses files with .a extension.
For anyone having problems with this too (I was:)
I think the issue is that the libs in the source\zlib and source\jpeglib aren't compiled for dev c++, so won't link properly.
I changed the lib directory to \irrlicht\lib\DevCpp and that fixed it. It would be better to get the libs compiling for dev c++ too, but I went for the quick option.
I think the issue is that the libs in the source\zlib and source\jpeglib aren't compiled for dev c++, so won't link properly.
I changed the lib directory to \irrlicht\lib\DevCpp and that fixed it. It would be better to get the libs compiling for dev c++ too, but I went for the quick option.