* Compiling an Alsa plugin with Intel compiler.
@ 2008-09-25 10:13 Motti Daniel
2008-09-25 10:23 ` Takashi Iwai
0 siblings, 1 reply; 3+ messages in thread
From: Motti Daniel @ 2008-09-25 10:13 UTC (permalink / raw)
To: alsa-devel
Hello people!
I'm working on an Alsa plugin for the Xandros Linux distribution
my plugin runs very well except it consume about 20% of resources
from the target machine (eee pc at 1.6Ghz)
I'm trying to compile the same code with Intel Compiler (version 10.1.017)
(before that it was compiled with gcc 4.1.2)
the plugin compiles well but when I try to play music it tells me that
the plugin library (the .so file in /usr/lib/alsa-lib/ is not there.
I tried to analyze the symbols in the executable and found that the
difference between gcc and Intel compiler is a list of symbols with
a suffix __FUNCTION__ or __PRETTY_FUNCTION__
is this the problem?
any suggestions?
can you tell me what are the minimum alsa requirements from a dynamic
library so it can be loaded and run as an Alsa plugin?
thanks!
Motti Daniel.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Compiling an Alsa plugin with Intel compiler.
2008-09-25 10:13 Compiling an Alsa plugin with Intel compiler Motti Daniel
@ 2008-09-25 10:23 ` Takashi Iwai
[not found] ` <48DB75A0.8080306@waves.com>
0 siblings, 1 reply; 3+ messages in thread
From: Takashi Iwai @ 2008-09-25 10:23 UTC (permalink / raw)
To: Motti Daniel; +Cc: alsa-devel
At Thu, 25 Sep 2008 13:13:14 +0300,
Motti Daniel wrote:
>
> Hello people!
>
> I'm working on an Alsa plugin for the Xandros Linux distribution
> my plugin runs very well except it consume about 20% of resources
> from the target machine (eee pc at 1.6Ghz)
> I'm trying to compile the same code with Intel Compiler (version 10.1.017)
> (before that it was compiled with gcc 4.1.2)
> the plugin compiles well but when I try to play music it tells me that
> the plugin library (the .so file in /usr/lib/alsa-lib/ is not there.
What exactly is the error message?
It's a big difference between non-existing file and non-defined
symbol.
> I tried to analyze the symbols in the executable and found that the
> difference between gcc and Intel compiler is a list of symbols with
> a suffix __FUNCTION__ or __PRETTY_FUNCTION__
> is this the problem?
I don't think so. These should be replaced at compile time, and you
must get relevant compile errors/warnings.
> any suggestions?
> can you tell me what are the minimum alsa requirements from a dynamic
> library so it can be loaded and run as an Alsa plugin?
First, check whether your plugin was properly opened and symbol
resolution worked. The alsa-lib calls snd_dlopen() to open the
plugin, and call snd_dlsym() for symbols. Catch them via gdb or so.
There are configure checks for dlopen, etc, defining
CONFIG_HAVE_LIBDL. Make sure that this passed in your case.
Takashi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-09-25 13:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-25 10:13 Compiling an Alsa plugin with Intel compiler Motti Daniel
2008-09-25 10:23 ` Takashi Iwai
[not found] ` <48DB75A0.8080306@waves.com>
2008-09-25 13:09 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.