Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
problem in linking irrklang with opengl

jaskaran_1
Registered User
Quote
2013-11-09 16:11:53

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


seleme
Guest
Quote
2014-05-04 00:01:36

Hi,

I try to use openGL with Irkklang. But it fails.
if you solve this problem, you could help me?

Thanks,


niko
Moderator
Quote
2014-05-04 09:23:07

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/...


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internation?l" (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