Forum: GNU Radio gri_portaudio

Posted by kdag (Guest)
on 2012-12-20 01:18
(Received via mailing list)
hi all, im trying to compile git sources under debian squeeze but
can't go further cause i use jackd2 and if i try to install
portaudio19-dev the system will try to remove and go down to jackd.

question: do i need portaudio to be enabled on a debian system?

if not, please let me know how to disable it cause with cmake a

./configure --disable-portaudio

helps nada

here the error, please help me out!

thanks!


[ 58%] Building CXX object
gr-audio/lib/CMakeFiles/gnuradio-audio.dir/portaudio/gri_portaudio.cc.o
In file included from
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.cc:27:
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.h:29:
error: ‘PaDeviceIndex’ does not name a type
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.cc:32:
error: ‘PaDeviceIndex’ does not name a type
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.cc:
In function ‘void gri_print_devices()’:
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.cc:60:
error: ‘Pa_GetDeviceCount’ was not declared in this scope
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.cc:71:
error: ‘Pa_GetDefaultInputDevice’ was not declared in this scope
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.cc:77:
error: ‘const struct PaDeviceInfo’ has no member named ‘hostApi’
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.cc:77:
error: ‘Pa_GetHostApiInfo’ was not declared in this scope
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.cc:79:
error: expected initializer before ‘*’ token
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.cc:80:
error: ‘hostInfo’ was not declared in this scope
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.cc:84:
error: ‘Pa_GetDefaultOutputDevice’ was not declared in this scope
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.cc:90:
error: ‘const struct PaDeviceInfo’ has no member named ‘hostApi’
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.cc:90:
error: ‘Pa_GetHostApiInfo’ was not declared in this scope
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.cc:92:
error: expected initializer before ‘*’ token
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.cc:94:
error: ‘hostInfo’ was not declared in this scope
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.cc:102:
error: ‘const struct PaDeviceInfo’ has no member named ‘hostApi’
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.cc:102:
error: ‘Pa_GetHostApiInfo’ was not declared in this scope
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.cc:106:
error: ‘const struct PaDeviceInfo’ has no member named
‘defaultLowInputLatency’
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.cc:107:
error: ‘const struct PaDeviceInfo’ has no member named
‘defaultLowOutputLatency’
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.cc:108:
error: ‘const struct PaDeviceInfo’ has no member named
‘defaultHighInputLatency’
/home/continentecontenido/utils/gnuradio/gr-audio/lib/portaudio/gri_portaudio.cc:109:
error: ‘const struct PaDeviceInfo’ has no member named
‘defaultHighOutputLatency’
make[2]: *** 
[gr-audio/lib/CMakeFiles/gnuradio-audio.dir/portaudio/gri_portaudio.cc.o]
Error 1
make[1]: *** [gr-audio/lib/CMakeFiles/gnuradio-audio.dir/all] Error 2
make: *** [all] Error 2


http://pastebin.com/raw.php?i=Rn7134aC
Posted by Tom Rondeau (Guest)
on 2012-12-20 02:01
(Received via mailing list)
On Wed, Dec 19, 2012 at 7:16 PM, kdag <funkzvv@gmail.com> wrote:

>
> here the error, please help me out!
>
> thanks!
>
>
You do not need portaudio. Even if you don't disable it, it should fail 
if
your system doesn't meet the specs. If it's passing for some reason, we
need to patch the script that looks for it.

Tom
Posted by Marcus D. Leech (Guest)
on 2012-12-20 02:11
(Received via mailing list)
On 12/19/2012 07:59 PM, Tom Rondeau wrote:
>
>
> Tom
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
The issue seems to be one of conflicting requirements for portaudio,
where some apps require a different version of portaudio than we use -- 
they
   changed the API, I guess.  So on systems that have portaudio (but not
with the API *we* need), we'll configure-in portaudio, and then fail
   during the build.  On those systems, installing portaudio19-dev works
for *US*, but causes other things to fail, due to API incompatibilities.

I just *love* how, 20-years-on, Linux can't decide on which audio
subsystem it uses, so it supports all of them.  With conflicts.
Posted by kdag (Guest)
on 2012-12-20 02:12
(Received via mailing list)
hi tom, and thanks for getting back.

On Wed, Dec 19, 2012 at 7:59 PM, Tom Rondeau <tom@trondeau.com> wrote:

> we need to patch the script that looks for it.


so, i see this:

-- Configuring gr-audio support...
--   Dependency Boost_FOUND = TRUE
--   Dependency ENABLE_GR_CORE = ON
--   Enabling gr-audio support.
--   Override with -DENABLE_GR_AUDIO=ON/OFF
-- Found ALSA 1.0.23
-- checking for module 'jack'
--   package 'jack' not found
-- checking for module 'portaudio'
--   package 'portaudio' not found
-- checking for module 'comedilib'
--   package 'comedilib' not found

and that means that even though jackd2 and libportaudio-dev are 
installed
on this squeeze system they are not found or usable for gnuradio.

i'm not versed on how to patch such thing so any help is greatly
appreciated i'm ready to provide more details and help test.

Tx!
Posted by Tom Rondeau (Guest)
on 2012-12-20 04:38
(Received via mailing list)
On Wed, Dec 19, 2012 at 8:10 PM, kdag <funkzvv@gmail.com> wrote:

> -- Configuring gr-audio support...
> --   package 'comedilib' not found
>
> and that means that even though jackd2 and libportaudio-dev are installed
> on this squeeze system they are not found or usable for gnuradio.
>
> i'm not versed on how to patch such thing so any help is greatly
> appreciated i'm ready to provide more details and help test.
>
> Tx!
>


Now I'm even more confused. From your cmake output here, it looks like
portaudio is not being built. So why is it being built? Something's not
right here.

Tom
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.