Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
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 .... ![]() |
||||
|
You need to compile with the option -pthread Then it should work. |
||||
|
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 ?? |
||||
|
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 |
||||
|
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; } |
||||
|
ok it's work know tank you very much niko ..... |
||||
|
np :) |
||||
|
What next after compilation? |
||||
|
can you please tell me the next process after compilation |
||||
|
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? |
||||
|
Copy the file ikpMP3.so to your working directory, and then it should work. |
||||
|
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 |
||||
|
okay done. Thanks |
||||
|
Is it possible to run irrklang in raspbeian? |
||||
|
Hm, isn't the Raspberry running on ARM? irrKlang isn't supporting ARM at the moment, sorry. |
|