sorry if this has been asked before, but is there a tutorial that shows how to compile the source under dev c++?
i have no problems using the exisiting precompiled dll now, and the examples all compile fine with dev c++ and run on my xp without any problems.
but i would like any information on how to properly compile the source with dev c++ so i can add the new updates by ZDimitor.
i have done a search for such a subject/tutorial but have found none. if anyone has any helpful info i would appreciate it.
compile source with dev c++?
Thanks for the reply, but i have checked all the faq's and threads and no one seems to have a difinitive answer on how to get it working. It's "im still getting error's.." or "i finally got it to work, but cant remember how i did it.. " and so on.
It would be a good idea to have it listed in the faq as to how to build the engine from the source with devcpp, i know it's listed there how to get it up and running with devcpp so it will compile your projects, but as to compiling the source... well...
but i have managed to get it to work, finally.. after some trial and error. and since i had a crash the other day and had to reinstall windows and dev c++ and a fresh install of irrlicht .9, i can now offer ppl the way i got mine to work.
Im using WinXP, Dev C++ beta 5 ( 4.9.9.2 ) and of course Irrlicht .9 all freshly installed.
the errors i had before were 'cannot find ljpeg.dll' or '-lz' or 'zlib.dll' and i tried many different things to get it to work, turns out it was more simple than i thought.
1) After installing Dev C++ i checked for devpacks, and got the zlib and libjpeg updates from 'DevC++ Primary DevPack Server' ( this was something i never bothered to do before since it was my understanding that the lib folders for both these packages were included in the irr source ). getting those updates is a must. ( to check for dev c++ updates, start up devc++ and click on TOOLS -> Check for Updates/Packages )
2) Unzipped Irrlicht to c:\irrlicht-0.9 and renamed the folder to just plain c:\irrlicht ( just for my own purpose, all my previous irr versions were in a plain folder like that with no version number )
3) Unzipped the irrlicht source to its own folder ( i used c:\source\irrlicht )
3) started up devcpp and opened the irrlicht.dev found in the source folder, and under Project Options i did the following,
a) Parameters -> no changes at all, did not add any library or object in the linker section and left the '--no-export-all-symbols --add-stdcall-alias -lgdi32 -lglu32 -lopengl32 -ljpeg -lz' as it was. i have seen so many threads with what to place in there, but it works fine as it is.
b) Directories -> for Library Directory use the one from your Irrlicht install and NOT the one from the source. mine was C:\irrlicht\lib\DevCpp
For the Include Directory use the one from your Irrlicht install and NOT the one from the source, mine was C:\irrlicht\include
4) Rebuild All and your done.
I hope im not being condesending here in my explanation on how i got it to work, but so many threads on the subject have bits and pieces of what people have tried and worked for them, and i have tried them all with no luck, so I wanted to cover the subject as much as i could in case it can help someone else with the same problems. ( and I know there will be more people looking for such an answer )
The main thing that made it all work is to make shure that the 2 updates of zlib and libjpeg get installed into devc++. The source release of these two packages included with irrlicht just dont seem to work, and i did not use them at all to make my working .dll
This is how I got it to work for me, I hope it helps other people with the same or similar problem.
It would be a good idea to have it listed in the faq as to how to build the engine from the source with devcpp, i know it's listed there how to get it up and running with devcpp so it will compile your projects, but as to compiling the source... well...
but i have managed to get it to work, finally.. after some trial and error. and since i had a crash the other day and had to reinstall windows and dev c++ and a fresh install of irrlicht .9, i can now offer ppl the way i got mine to work.
Im using WinXP, Dev C++ beta 5 ( 4.9.9.2 ) and of course Irrlicht .9 all freshly installed.
the errors i had before were 'cannot find ljpeg.dll' or '-lz' or 'zlib.dll' and i tried many different things to get it to work, turns out it was more simple than i thought.
1) After installing Dev C++ i checked for devpacks, and got the zlib and libjpeg updates from 'DevC++ Primary DevPack Server' ( this was something i never bothered to do before since it was my understanding that the lib folders for both these packages were included in the irr source ). getting those updates is a must. ( to check for dev c++ updates, start up devc++ and click on TOOLS -> Check for Updates/Packages )
2) Unzipped Irrlicht to c:\irrlicht-0.9 and renamed the folder to just plain c:\irrlicht ( just for my own purpose, all my previous irr versions were in a plain folder like that with no version number )
3) Unzipped the irrlicht source to its own folder ( i used c:\source\irrlicht )
3) started up devcpp and opened the irrlicht.dev found in the source folder, and under Project Options i did the following,
a) Parameters -> no changes at all, did not add any library or object in the linker section and left the '--no-export-all-symbols --add-stdcall-alias -lgdi32 -lglu32 -lopengl32 -ljpeg -lz' as it was. i have seen so many threads with what to place in there, but it works fine as it is.
b) Directories -> for Library Directory use the one from your Irrlicht install and NOT the one from the source. mine was C:\irrlicht\lib\DevCpp
For the Include Directory use the one from your Irrlicht install and NOT the one from the source, mine was C:\irrlicht\include
4) Rebuild All and your done.
I hope im not being condesending here in my explanation on how i got it to work, but so many threads on the subject have bits and pieces of what people have tried and worked for them, and i have tried them all with no luck, so I wanted to cover the subject as much as i could in case it can help someone else with the same problems. ( and I know there will be more people looking for such an answer )
The main thing that made it all work is to make shure that the 2 updates of zlib and libjpeg get installed into devc++. The source release of these two packages included with irrlicht just dont seem to work, and i did not use them at all to make my working .dll
This is how I got it to work for me, I hope it helps other people with the same or similar problem.
whoops.. sorry for the double post, caught it and deleted it. i got to remember not to cancell and repost when i think its not going through
I think the irrlicht engine is a nice one, easy to use with a lot of features and more to come. Before my crash and eventual format, I did manage to make this with irrlicht, It's not a project announcement, just something i wanted to try out.
now i have to remake all my textures and that sun/moon dial.. ( that took me so long to make.. *sniff* )
I think the irrlicht engine is a nice one, easy to use with a lot of features and more to come. Before my crash and eventual format, I did manage to make this with irrlicht, It's not a project announcement, just something i wanted to try out.
now i have to remake all my textures and that sun/moon dial.. ( that took me so long to make.. *sniff* )