can't create IrrKlang device

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
Aranea
Posts: 4
Joined: Wed Feb 06, 2008 8:51 pm

can't create IrrKlang device

Post by Aranea »

Hi,

I have a problem using Irrklang in my Irrlicht project...
If I call the function "createIrrKlangDevice()" somewhere in my code, like

Code: Select all

irrklang::ISoundEngine* soundEngine = irrklang::createIrrKlangDevice();
the code will be compiled but the application terminates right after the start.
Without this line, the application runs properly.
I have read the documentation as well as the demo's source code, but I still don't have a clue what is going wrong...
(The demo won't compile by the way..don't know if it's related but I get this message: [Linker error] undefined reference to `_imp___ZN8irrklang20createIrrKlangDeviceENS_21E_SOUND_OUTPUT_DRIVEREiPKcS2_'
)

I'm using Irrlicht 1.4 and IrrKlang 1.0.4 (but 0.9 didn't work either)

I would be very grateful for any ideas...
Aranea
Posts: 4
Joined: Wed Feb 06, 2008 8:51 pm

Post by Aranea »

(short addition to the demo file:
I've linked the irrKlang library but somehow the irrKlang.dll can't be found...
tried to reinstall but it didn't help)
twilight17
Posts: 362
Joined: Sun Dec 16, 2007 9:25 pm

Post by twilight17 »

go to your irrKlang install directory, then go to /bin/win32-visualstudio (if you're on windows using visual studio) then just copy Irrlicht.dll to your /debug and /release folders (by the executable)
Post this userbar I made on other websites to show your support for Irrlicht!
Image
http://img147.imageshack.us/img147/1261 ... wernq4.png
Aranea
Posts: 4
Joined: Wed Feb 06, 2008 8:51 pm

Post by Aranea »

Hey,

thanks for your reply!
Actually, I'm not using visual studio, should have said that, I'm sorry...
I'm on windows using Dev-C++.
I linked the library in my project options, used a pragma comment to link the lib, copied the irrKlang .dll files into my program folder... Still the .dll can't be found. (I would post the error message, but it's german :wink: )

I must be making an awfully stupid mistake I guess...
Please........reveal my asininity...
Yustme
Posts: 107
Joined: Sat Dec 01, 2007 10:50 pm

Post by Yustme »

Hi,

Placing the irrlicht.dll in your windows\system32 folder will work too.
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Yustme wrote:Hi,

Placing the irrlicht.dll in your windows\system32 folder will work too.
BAD ADVICE!!!
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
Virion
Competition winner
Posts: 2149
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

MasterGod wrote:
Yustme wrote:Hi,

Placing the irrlicht.dll in your windows\system32 folder will work too.
BAD ADVICE!!!
Agree.
My company: https://kloena.com
My profile: https://zhieng.com
My co-working space: https://deskspace.info
My game engine: https://kemena3d.com
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

It wasn't advice, it was a statement of fact. :P

Still, I agree that it should be avoided. But then again, I far, far prefer static libs to dlls anyway.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Yustme
Posts: 107
Joined: Sat Dec 01, 2007 10:50 pm

Post by Yustme »

Virion wrote:
MasterGod wrote:
Yustme wrote:Hi,

Placing the irrlicht.dll in your windows\system32 folder will work too.
BAD ADVICE!!!
Agree.
Hi,

I don't know how Dev c++ works. But for portability it's indeed a bad thing to do :D
Aranea
Posts: 4
Joined: Wed Feb 06, 2008 8:51 pm

Post by Aranea »

There was something wrong with the Dev-Cpp project options... so the executable was in the wrong folder...How embarrassing...

But well it seems like placing the .dll in the system folder is not such a bad idea after all! (at least for persons who are stupid enough to place the executable somewhere else :wink: )
Post Reply