Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I had created a game in opengl and wanted some background sound. I have a 64 bit machine running ubuntu 12.04 lts 64 bit. I installed irrklang and the example files were working correctly after I installed some 32 bit libraries and compiled the examples with -m32 flag. The problem is that when compiling C++ code for opengl the same approach doesn't work.Below is the working makefile when irrklang isn't used. all: g++ DevilOnWingswithsound.cpp -lglut -lGL -lGLU -o view This works. Now when I use irrklang just like in the example the makefile is: OPTS = -I"/home/jaskaran/Downloads/irrKlang-1.4.0b/irrKlang-1.4.0/include" -L"/usr/lib" /home/jaskaran/Downloads/irrKlang-1.4.0b/irrKlang-1.4.0/bin/linux-gcc/libIrrKlang.so -pthread all: g++ DevilOnWingswithsound.cpp -m32 -lglut -lGL -lGLU -o viewer $(OPTS) clean: rm viewer Errors: /usr/bin/ld: cannot find -lglut /usr/bin/ld: cannot find -lGL /usr/bin/ld: cannot find -lGLU collect2: ld returned 1 exit status make: *** [all] Error 1 I guess maybe its becaluse glut and opengl is for 64 bit.Could you tell me some better work around and a little soon as I've a project to submit before 20th of November |
||||
|
Hi, I try to use openGL with Irkklang. But it fails. if you solve this problem, you could help me? Thanks, |
||||
|
Yes, that's because you are mixing 64 and 32 bit libraries. You can get the 64 bit version of irrKlang here (it's a preview but already stable, bug-free and working): http://www.ambiera.at/downloads/... |
|