Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
how to install irrklang in ubuntu

gentle
Registered User
Quote
2011-05-25 23:50:05

Hi
i download irrklang but i didn't know how install or how compile

i went to .../bin/linux-gcc
and found libirrklang.so
and i wrote in the terminal g++ libirrklang.so
but show below
/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
libIrrKlang.so: undefined reference to `pthread_mutexattr_settype'
libIrrKlang.so: undefined reference to `pthread_mutexattr_destroy'
libIrrKlang.so: undefined reference to `pthread_create'
libIrrKlang.so: undefined reference to `pthread_mutexattr_init'
collect2: ld returned 1 exit status


can you help me ....


niko
Moderator
Quote
2011-05-26 07:31:29

You need to compile with the option
-pthread

Then it should work.


gentle
Registered User
Quote
2011-05-26 12:09:59

thank you niko
i wrote
g++ libirrklang.so -pthread

but didn't work
show below

/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status

what's the problem ??


niko
Moderator
Quote
2011-05-26 16:31:03

this doesn't look correct :) A correct example would be this:

g++  yourfile.cpp -o yourfile -I"../../include" -L"/usr/lib" ../../bin/linux-gcc/libIrrKlang.so -pthread



gentle
Registered User
Quote
2011-05-26 16:42:22

ok now i know how to compile it

i compile the file and create file.exe

when i launch file.exe
show below

irrKlang sound library version 1.3.0
Using ALSA driver
Could not open sound file: 01.mp3
hello



why could not open sound file??
can you help me


i wrote this

include <iostream>
include <irrKlang.h>

using namespace std;
int main()
{

irrklang::ISoundEngine* engine = irrklang::createIrrKlangDevice();

if (!engine) return 1; // could not start engine

engine->play2D("01.mp3"); // play some mp3 file

cout<<"hello\n";

std::cin.get(); // wait until user presses a key

engine->drop(); // delete engine
return 0;
}


gentle
Registered User
Quote
2011-05-26 17:13:58

ok it's work know

tank you very much niko .....


niko
Moderator
Quote
2011-05-29 14:12:18

np :)


Pawan
Guest
Quote
2015-04-26 14:28:08

What next after compilation?


pawan
Registered User
Quote
2015-04-26 14:30:36

can you please tell me the next process after compilation


pawan
Registered User
Quote
2015-04-26 14:34:06

I am getting this error after
./myfile

irrKlang sound library version 1.5.0
Using ALSA driver
Unknown wave header in file
Could not open audio stream for sound file (maybe the irrKlang mp3 plugin is missing?): motor_bikes.mp3

please suggest what i suppose to do?


erik
Registered User
Quote
2015-04-26 15:16:23

Copy the file ikpMP3.so to your working directory, and then it should work.


pawan
Registered User
Quote
2015-04-27 12:28:47

Thanks erik.

Done with it using terminal. But now i want to play audio using irrklang on eclipse cdt in linux.

I have given the path for header file and library file.
I am done with building part but i get an error while running it.

The error is:
error while loading shared libraries: libIrrKlang.so: cannot open shared object file: No such file or directory


pawan
Registered User
Quote
2015-04-27 13:22:21

okay done.
Thanks


Pawan
Guest
Quote
2015-05-28 05:15:03

Is it possible to run irrklang in raspbeian?


niko
Moderator
Quote
2015-05-28 09:11:30

Hm, isn't the Raspberry running on ARM? irrKlang isn't supporting ARM at the moment, sorry.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inte?national" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact