[Pianod] Build issues
Jimmy Pop
jimmypopali96 at gmail.com
Fri May 31 19:45:53 PDT 2013
What an uphill battle!
before I started this whole thing, I made sure alsa was fully installed,
and working, doing either speaker-test, or aplay test.wav both produce
good, clean output, Testing with pianobar works as well!
I tested with the clean copy, then modified player.c to get a bit of
debugging
Here is a copy of my output
./src/pianod -i ~/startscript
2013-06-01 02:43:52: No user data found. Creating admin user.
fb_setup_ip6_socket: bind: Address already in use
2013-06-01 02:43:55: alsa audioOutDriver = (null),
2013-06-01 02:43:55: ao_default_driver_id audioOutDriver (null),
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm_direct.c:1523:(_snd_pcm_direct_get_slave_ipc_offset) Invalid
value for card
2013-06-01 02:43:55: Cannot open audio device default/default/default,
trying default
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm_direct.c:1523:(_snd_pcm_direct_get_slave_ipc_offset) Invalid
value for card
2013-06-01 02:43:55: Cannot open audio device
On Fri, May 31, 2013 at 7:16 PM, Jimmy Pop <jimmypopali96 at gmail.com> wrote:
> First, what I tried
> 1 package or the other, total failure.
>
> trying various flags, failure
>
>
> And then..... I figured lets start from scratch!
>
> Success!
> downloaded the json-c 0.9 version tarball, built it with
> ./configure --prefix=/usr/local/
> make
> make check
> make install
> then
> export PKG_CONFIG_PATH=PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/
> and success!
> configure runs right through, and the make FINISHED!!
>
> On to the next issue, it wont actually play anything... LOL
>
>
> On Fri, May 31, 2013 at 6:18 PM, Peter Li <chinasaurli at gmail.com> wrote:
>
>> I think trying with only one version is a good idea. Also I would still
>> try to debug build/link conftest.c from terminal, just to confirm that if
>> you point it to the right library then it finds the function.
>>
>> On the other thing you tried, in your config.log output it said:
>> json_LIBS='-ljson-c'
>>
>> So seems like the format for that variable should be the lib it's looking
>> for, not the libdir. You could try point the linker directly to the lib
>> with json_LIBS=<full-path-to-**libjson-c.so>. Or you could try adding
>> '-L/lib/arm-linux-gnueabihf/' in addition to the '-ljson-c'. But these are
>> weird hacks; would be better to just get the -L/lib/arm-linux-... added in
>> some reasonable place.
>>
>> Also kind of weird that your gcc conftest.c line looked for -ljson but
>> this variable says -ljson-c, so I'd be careful that this variable is
>> actually getting used in the place you are trying to fix.
>>
>>
>>
>>
>> On 05/31/2013 05:53 PM, Jimmy Pop wrote:
>>
>>> I installed both with apt-get. I can purge both and try with just 1 or
>>> the other
>>> I also tried
>>> ./configure json_LIBS=/lib/arm-linux-**gnueabihf/
>>> with the exact same results
>>>
>> ______________________________**_________________
>> Pianod mailing list
>> Pianod at lists.deviousfish.com
>> http://lists.deviousfish.com/**listinfo.cgi/pianod-**deviousfish.com<http://lists.deviousfish.com/listinfo.cgi/pianod-deviousfish.com>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deviousfish.com/pipermail/pianod-deviousfish.com/attachments/20130531/8863cd74/attachment-0003.htm>
More information about the Pianod
mailing list