View Single Post
Old 07-04-2012, 06:33 PM   #19
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
still not having fun :)

EDIT: THIS SECTION IS ABOUT GETTING KDEVELOP CROSS COMPILING
WHICH NEVER WORKED: I GOT NEW TOOLS FROM THE KEK PROJECT
FEEL FREE TO SKIP OVER THESE POSTS TO THE SOUND INFO

I really am at a loss how in to include my cross-compiled alsa-libs to the CodeSourcery Gcc.

Spoiler:

arm-none-linux-gnueabi-gcc salsa.c -o arm-alsa -B/home/simon/CodeSourcery
/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/alsa -L/home/simon/CodeSourcery \
/Sourcery_Codebence_Lite_for_ARM_GNU_Linux/lib/alsa -B/home/simon/CodeSourcery \
/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib -B/home/simon/CodeSourcery \
/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux -lasound



seems to cover all eventualities for actually finding the libs. perhaps I need to run libran or something? Meh. Any clues to this noob would be great. Of course this could all simply be to do with the fact that the vast majority of stuff just does not want to "work" out of the box on my current OS config. Sigh

Anyways if someone could just confirm that I am indeed referencing the -lasound and it's location(s), correctly that would be great. Googling didn't help as I seem to get conflicting answers and nothing specific to my issue. many thanks.
EDIT: I NEVER GOT THIS WORKING UNDER KDEVELOP.
I GOT NEW TOOLS FROM THE KEK PROJECT

RESULT:

Spoiler:


Code:
bash-4.1$ arm-none-linux-gnueabi-gcc alsawave.c -o arm-alsa -B/home/simon\
/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/alsa -L/home/simon\
/CodeSourcery/Sourcery_Codebence_Lite_for_ARM_GNU_Linux/lib/alsa -B/home/simon\
/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib -B/home/simon/CodeSourcery\
/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux -lasound                
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_dmix.o): In function `snd_pcm_dmix_sync_ptr':
pcm_dmix.c:(.text+0x245c): warning: Warning: snd_pcm_hwsync() is deprecated, consider to use snd_pcm_avail()
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_ioplug.o): In function `gettimestamp':
pcm_ioplug.c:(.text+0x258): undefined reference to `clock_gettime'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_dmix.o): In function `gettimestamp':
pcm_dmix.c:(.text+0x2e4): undefined reference to `clock_gettime'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(dlmisc.o): In function `snd_dlopen':
dlmisc.c:(.text+0x124): undefined reference to `dlopen'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(dlmisc.o): In function `snd_dlclose':
dlmisc.c:(.text+0x168): undefined reference to `dlclose'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(dlmisc.o): In function `snd_dlsym_verify':
dlmisc.c:(.text+0x244): undefined reference to `dlsym'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(dlmisc.o): In function `snd_dlsym':
dlmisc.c:(.text+0x37c): undefined reference to `dlsym'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_meter.o): In function `snd_pcm_meter_update_main':
pcm_meter.c:(.text+0x3b8): undefined reference to `pthread_mutex_trylock'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_meter.o): In function `snd_pcm_meter_hw_params':
pcm_meter.c:(.text+0x1560): undefined reference to `pthread_create'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_meter.o): In function `snd_pcm_meter_hw_free':
pcm_meter.c:(.text+0x162c): undefined reference to `pthread_join'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_meter.o): In function `snd_pcm_meter_add_scope_conf':
pcm_meter.c:(.text+0x1d58): undefined reference to `dlsym'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_rate.o): In function `gettimestamp':
pcm_rate.c:(.text+0x9c0): undefined reference to `clock_gettime'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_dsnoop.o): In function `gettimestamp':
pcm_dsnoop.c:(.text+0x16c): undefined reference to `clock_gettime'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_softvol.o): In function `softvol_load_control':
pcm_softvol.c:(.text+0x2f54): undefined reference to `pow'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_ladspa.o): In function `snd_pcm_ladspa_free_plugins':
pcm_ladspa.c:(.text+0x5b4): undefined reference to `dlclose'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_ladspa.o): In function `snd_pcm_ladspa_get_default_cvalue':
pcm_ladspa.c:(.text+0x1810): undefined reference to `log'
pcm_ladspa.c:(.text+0x1880): undefined reference to `log'
pcm_ladspa.c:(.text+0x18c8): undefined reference to `exp'
pcm_ladspa.c:(.text+0x1a50): undefined reference to `sqrt'
pcm_ladspa.c:(.text+0x1b3c): undefined reference to `log'
pcm_ladspa.c:(.text+0x1bac): undefined reference to `log'
pcm_ladspa.c:(.text+0x1bf4): undefined reference to `exp'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_ladspa.o): In function `snd_pcm_ladspa_check_file':
pcm_ladspa.c:(.text+0x3d7c): undefined reference to `dlopen'
pcm_ladspa.c:(.text+0x3d9c): undefined reference to `dlsym'
pcm_ladspa.c:(.text+0x3e04): undefined reference to `dlclose'
pcm_ladspa.c:(.text+0x3ef4): undefined reference to `dlclose'
pcm_ladspa.c:(.text+0x3f54): undefined reference to `dlclose'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_hw.o): In function `snd1_pcm_hw_open_fd':
pcm_hw.c:(.text+0x335c): undefined reference to `clock_gettime'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_file.o): In function `snd_pcm_file_open':
pcm_file.c:(.text+0x214c): undefined reference to `clock_gettime'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_route.o): In function `snd_pcm_route_convert1_many':
pcm_route.c:(.text+0x3048): undefined reference to `rint'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_share.o): In function `gettimestamp':
pcm_share.c:(.text+0x44c): undefined reference to `clock_gettime'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_share.o): In function `snd_pcm_share_close':
pcm_share.c:(.text+0x353c): undefined reference to `pthread_join'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_share.o): In function `snd_pcm_share_open':
pcm_share.c:(.text+0x3e84): undefined reference to `pthread_create'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_dshare.o): In function `gettimestamp':
pcm_dshare.c:(.text+0x1a4): undefined reference to `clock_gettime'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_generic.o): In function `gettimestamp':
pcm_generic.c:(.text+0x64): undefined reference to `clock_gettime'
/home/simon/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/lib/libasound.a(pcm_null.o): In function `gettimestamp':
pcm_null.c:(.text+0x28): undefined reference to `clock_gettime'
collect2: ld returned 1 exit status


Which doesn't really tell me a lot; other than guesses: incompatible library revisions? object not found? Paths incorrectly specified ? I'm at a loss. which is a shame as I am at a place where I can now deliver random bytes to the dsp via alsa on my local installation and would very much like to get it to compile to check if it works on the kindle.

It's basically just an alsa-test configured correctly for the kindle. Any takers on either a) helping me to get the file to compile. or b) compiling it for me would be great.

I don't suppose trying the -lasound option in tcc would hurt if anyone can direct me how to get the libraries from tcc/includes/sound included that would also be great

Code:
[root@kindle tcc]# tccmake -lasound -B/mnt/us/tcc -B/mnt/us/tcc/include/sound -B/mnt/us/tcc/include/ ./salsa.c doesn't appear to cut it...

In file included from ./salsa.c:19:
./include/sound/asoundlib.h:42: include file 'asoundef.h' not found
('asoundef.h' is indeed there)

apologies for the sprawling nature of the post.

Last edited by twobob; 07-10-2012 at 07:34 AM. Reason: legibility - code length - added spoilers to hide lengthy rubbish
twobob is offline   Reply With Quote