do not compile demo

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.
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

do not compile demo

Post by wahagn »

if i try to compile demo in the folder examples than ther ar 10 warnings:

Code: Select all

Compiler: Default compiler
Building Makefile: "C:\irrlicht-1.4.1\examples\Demo\Makefile.win"
Executing  make...
make.exe -f "C:\irrlicht-1.4.1\examples\Demo\Makefile.win" all
g++.exe -c main.cpp -o obj/main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"  -I"../../include"   

In file included from main.cpp:12:
CDemo.h:21:91: irrKlang.h: No such file or directory
In file included from main.cpp:12:
CDemo.h:65: error: `irrklang' has not been declared
CDemo.h:65: error: ISO C++ forbids declaration of `ISoundEngine' with no type
CDemo.h:65: error: expected `;' before '*' token
CDemo.h:66: error: `irrklang' has not been declared
CDemo.h:66: error: ISO C++ forbids declaration of `ISoundSource' with no type
CDemo.h:66: error: expected `;' before '*' token
CDemo.h:67: error: `irrklang' has not been declared
CDemo.h:67: error: ISO C++ forbids declaration of `ISoundSource' with no type
CDemo.h:67: error: expected `;' before '*' token

make.exe: *** [obj/main.o] Error 1

Execution terminated
(but by the way the other exemples have no problems with compiling)
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Do you have irrklang downloaded? Irrklang is a seperate audio library not provided in the irrlicht SDK. There should be a #define in the demo project which allows you to compile it without Irrklang.
Image Image Image
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Re: do not compile demo

Post by rogerborg »

wahagn wrote:

Code: Select all

CDemo.h:21:91: irrKlang.h: No such file or directory
Did you look at that line?

Code: Select all

	#include <irrKlang.h>	// problem here? go to http://www.ambiera.com/irrklang and download
							// the irrKlang library or undefine USE_IRRKLANG at the beginning
							// of this file.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

that no work i have download it but he can't find it ... i put it in c:
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Then update the compiler and linker settings so it knows where it is ;)
Image Image Image
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

you also can compile it without irrKlang... ;)
just open CDemo.h and remove (or comment) this line:

Code: Select all

#define USE_IRRKLANG
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
magfuse
Posts: 12
Joined: Sun Dec 21, 2008 9:06 pm

Still no sound with IrrKlang.h

Post by magfuse »

I compiled the demo and it doesn't have sound after I linked in IrrKlang. I though I had sound when I commented the define and compiled without IrrKlang.h? Any ideas? The IrrKlang demos work fine.

Oh btw I removed the menu file from the project then it wouldnt compile. but it was in a folder and was a broken link in code blocks. So I added it back in and it compiled. Did I mess something up by doing that? Is the menu part precompiled?
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

If you compile without irrKlang, there will be no audio from irrKlang. It doesn't matter if you link the irrKlang library or not. If the code doesn't call into the library, there will be no sound from that library.

Travis
magfuse
Posts: 12
Joined: Sun Dec 21, 2008 9:06 pm

I did have sound.

Post by magfuse »

Perhaps the sound was pre compiled into an object?? I did have sound until I compiled with the USE_IRRKLANG define. Everytime I pressed space or mouse click. Code:Blocks is confusing me since I do not know whats being linked into the project. Also the project is using a outdated irrlicht.dll file which doesn't have directX compiled into it but I can't update it since I dont even know which irrlicht.dll file is being linked into the project.

I definitely had directX support previously because I noticed the high level shaders didn't work on my system for openGL but worked fine using DirectX.

Does anyone have a user defined template for using Irrlicht. That way I can look at it and see how everything is linked. I think my best option is to scrap the projects that came with the irrlicht library and make my own.
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

Acki wrote:you also can compile it without irrKlang... ;)
just open CDemo.h and remove (or comment) this line:

Code: Select all

#define USE_IRRKLANG
but there is not a line: #define USE_IRRKLANG, only a line: #ifdef USE_IRRKLANG

... but how i do change the settings so the compiler knows where irrklang is??
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

wahagn wrote:but there is not a line: #define USE_IRRKLANG, only a line: #ifdef USE_IRRKLANG
it's at line 7 in CDemo.h !!!
wahagn wrote:... but how i do change the settings so the compiler knows where irrklang is??
the same way you tell him where to find Irrlicht...
somewhere in the project settings... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

but now i get a warning that the direct39 not comiled in dll
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

wahagn wrote:but now i get a warning that the direct39 not comiled in dll
please use the search function of the forum next time !!! :roll:
http://irrlicht.sourceforge.net/phpBB2/ ... 123#180123
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

but that topic goes about irrlicht 1.4.2 and i use 1.4.1
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

wahagn wrote:but that topic goes about irrlicht 1.4.2 and i use 1.4.1
then compile the dll on your own... :roll:
http://irrlicht.sourceforge.net/phpBB2/search.php
or use my IrrExtensions... ;)

and before you ask: http://www.google.de/search?hl=de&q=%2Bdirectx+%2Bsdk
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply