[openal] cannot find -lopenal ... cant find .a file
Kip Carr
kcarr at avtsim.com
Thu Jun 12 06:43:57 EDT 2014
Chris,
Im trying to build a 64 bit app. Part of the software update I am working on is converting to 64 bit. My full Link link is huge of course but the openal part is just -lopenal, were you looking for particular flags or something?
Daniel,
I am trying to link it as a static. I am working on getting an old project back up and running and would like to keep as much the same as the old as possible. Also I am working with Boost build and BJam so making changes is not the easiest thing either.
-Kip
-----Original Message-----
From: Chris Robinson [mailto:chris.kcat at gmail.com]
Sent: Wednesday, June 11, 2014 5:11 PM
To: openal mailing list
Subject: Re: [openal] cannot find -lopenal ... cant find .a file
On 06/11/2014 01:23 PM, Kip Carr wrote:
> I am currently trying to link against the latest openal
> (1:1.14-4ubuntu1) in Ubuntu 14. I did an apt-get install
> libopenal-dev to get latest. When I compile I get an error:
>
> /usr/bin/ld: cannot find -lopenal
>
> I did a "find . -name "*openal*" in the user folder and this is what I
> get:
>
> ./share/doc/libopenal-data
> ./share/doc/libopenal-dev
> ./share/doc/libopenal1
> ./lib/x86_64-linux-gnu/libopenal.so
> ./lib/x86_64-linux-gnu/pkgconfig/openal.pc
> ./lib/x86_64-linux-gnu/libopenal.so.1
> ./lib/x86_64-linux-gnu/libopenal.so.1.14.0
Are you building a 32-bit app or 64-bit? What's the actual link command it's trying to run?
> This worked under Ubuntu 8 (sorry updating ollllld code) but there was
> an .a file and they were all just located under lib not the new
> x86_64 folder. Is there a reason the .a file isn't in the latest
> release or any other reason I would be getting this error? Ive tried
> searching around and there isn't anything on this sort of problem.
The .a file is for static linking, which you generally don't want to do with openal. Using -lopenal should find libopenal.so in the compiler's lib directories, though.
_______________________________________________
openal mailing list
openal at openal.org
http://openal.org/mailman/listinfo/openal
More information about the openal
mailing list