Re: is statically linking libasound supported? because if i do it, i cant open the device!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





-----Original Message-----
From: Takashi Iwai [mailto:tiwai@xxxxxxx]
> You cannot build both *.a and *.so _at the same time_ for alsa-lib.
> partly because of bad behavior of libtool, partly because of the
> design of alsa-lib (embedded plugins in static lib).
> 
> Simply build twice, once for a shared lib and once for a static lib.
> 
> 
> > I got the libasound.a just find and it linked the app and the app *runs*, it just
> > doesnt find the device!
> 
> The libasound.a is broken.

* Well, I meant the libasound.a you made is broken.
* When you build libasound.a without --disable-shared, it passes -DPIC
* and it's built with assumption of shared library use.

AHH! thankyou for explaining that! i am greatful for the increase in my understanding of library compilation 'dynamics' (for want of a better term :-) )

tnx for the 'schoolin''

i'll report back on my outcome.

Takashi


_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux