* Q: Error on compiling/linking
@ 2003-10-09 16:08 gerlacbd
2003-10-09 16:25 ` Takashi Iwai
0 siblings, 1 reply; 5+ messages in thread
From: gerlacbd @ 2003-10-09 16:08 UTC (permalink / raw)
To: alsa-devel
Hello,
I'm new to ALSA and I have a problem on programming the library:
On my system ALSA library 0.9.7 and ALSA 0.9.7 driver is installed.
According to the api-documentation on the ALSA project site, I tried to
do something like:
snd_seq_client_info_t *info;
snd_seq_client_info_malloc ( &info );
snd_seq_get_client_info( seq_handle, info );
... do sth. like readout name with snd_seq_client_info_get_name( info );
snd_seq_client_info_free ( info );
When compiling/linking, I receive:
"undefined reference to `snd_seq_client_info_malloc'"
Same for snd_seq_client_info_get_name and for snd_seq_client_info_free.
What's wrong? Is'nt my lib up to date? (I read that the sequencer api
has been rewritten with get/set functions, but in which version?)
Thanks for answers or links to some introduction sites.
Berhnard
--
---------------------------------
Bernhard Gerlach
Fraunhofer AEMT
Am Helmholtzring 1 (Haus M)
98693 Ilmenau
Germany
mail: gerlacbd@emt.iis.fhg.de
---------------------------------
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Q: Error on compiling/linking
2003-10-09 16:08 Q: Error on compiling/linking gerlacbd
@ 2003-10-09 16:25 ` Takashi Iwai
2003-10-10 7:25 ` Bernhard Gerlach
0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2003-10-09 16:25 UTC (permalink / raw)
To: gerlacbd; +Cc: alsa-devel
At Thu, 09 Oct 2003 18:08:16 +0200,
gerlacbd wrote:
>
>
> Hello,
>
> I'm new to ALSA and I have a problem on programming the library:
> On my system ALSA library 0.9.7 and ALSA 0.9.7 driver is installed.
> According to the api-documentation on the ALSA project site, I tried to
> do something like:
>
> snd_seq_client_info_t *info;
> snd_seq_client_info_malloc ( &info );
> snd_seq_get_client_info( seq_handle, info );
>
> ... do sth. like readout name with snd_seq_client_info_get_name( info );
>
> snd_seq_client_info_free ( info );
it looks ok.
> When compiling/linking, I receive:
> "undefined reference to `snd_seq_client_info_malloc'"
> Same for snd_seq_client_info_get_name and for snd_seq_client_info_free.
>
> What's wrong? Is'nt my lib up to date? (I read that the sequencer api
> has been rewritten with get/set functions, but in which version?)
how do you link libasound?
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Q: Error on compiling/linking
2003-10-09 16:25 ` Takashi Iwai
@ 2003-10-10 7:25 ` Bernhard Gerlach
2003-10-10 10:27 ` Takashi Iwai
0 siblings, 1 reply; 5+ messages in thread
From: Bernhard Gerlach @ 2003-10-10 7:25 UTC (permalink / raw)
To: alsa-devel
Unfortunatly I forget to mention that the functions listed in the
documentation which is linked to on Takashi's page (section "Documents
on Alsa") seem to work, eg. snd_card_get_name, snd_seq_open and so on.
That is the old api, isn't it?
Takashi Iwai wrote:
>>When compiling/linking, I receive:
>>"undefined reference to `snd_seq_client_info_malloc'"
>>Same for snd_seq_client_info_get_name and for snd_seq_client_info_free.
>>
>>What's wrong? Is'nt my lib up to date? (I read that the sequencer api
>>has been rewritten with get/set functions, but in which version?)
>
>
> how do you link libasound?
The compiler options are -Wl,-Bdynamic -lasound.
ldd says (when commenting out the not working function calls and
compiling) that libasound.so.2 was linked.
Bernhard
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Q: Error on compiling/linking
2003-10-10 7:25 ` Bernhard Gerlach
@ 2003-10-10 10:27 ` Takashi Iwai
2003-10-10 11:32 ` Bernhard Gerlach
0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2003-10-10 10:27 UTC (permalink / raw)
To: Bernhard Gerlach; +Cc: alsa-devel
At Fri, 10 Oct 2003 09:25:21 +0200,
Bernhard Gerlach wrote:
>
>
> Unfortunatly I forget to mention that the functions listed in the
> documentation which is linked to on Takashi's page (section "Documents
> on Alsa") seem to work, eg. snd_card_get_name, snd_seq_open and so on.
> That is the old api, isn't it?
ehm, yeah, most likely. i'm not sure which page you are referring to,
but i've not updated my web pages since long time...
>
>
> Takashi Iwai wrote:
>
> >>When compiling/linking, I receive:
> >>"undefined reference to `snd_seq_client_info_malloc'"
> >>Same for snd_seq_client_info_get_name and for snd_seq_client_info_free.
> >>
> >>What's wrong? Is'nt my lib up to date? (I read that the sequencer api
> >>has been rewritten with get/set functions, but in which version?)
> >
> >
> > how do you link libasound?
>
> The compiler options are -Wl,-Bdynamic -lasound.
> ldd says (when commenting out the not working function calls and
> compiling) that libasound.so.2 was linked.
then, no idea.
it'd be better to show your whole code then.
ciao,
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Q: Error on compiling/linking
2003-10-10 10:27 ` Takashi Iwai
@ 2003-10-10 11:32 ` Bernhard Gerlach
0 siblings, 0 replies; 5+ messages in thread
From: Bernhard Gerlach @ 2003-10-10 11:32 UTC (permalink / raw)
To: alsa-devel
Hello,
I found the mistake. The problem was our complicated project/makefile
structure. We were using the 0.9.7 ALSA-Libs on our systems and we are
using the header files of the 0.9.7 ALSA-Api. Anyway, we were linking
against an old ALSA-lib (maybe a 0.9.0 version). After a change in the
project tree, everything (old and new api) works great now.
However, thank you very much for your efforts!!
Thanks,
Bernhard
--
---------------------------------
Bernhard Gerlach
Fraunhofer AEMT
Am Helmholtzring 1 (Haus M)
98693 Ilmenau
Germany
mail: gerlacbd@emt.iis.fhg.de
---------------------------------
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-10-10 11:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-09 16:08 Q: Error on compiling/linking gerlacbd
2003-10-09 16:25 ` Takashi Iwai
2003-10-10 7:25 ` Bernhard Gerlach
2003-10-10 10:27 ` Takashi Iwai
2003-10-10 11:32 ` Bernhard Gerlach
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.