ALSA, link static, cannot find -lasound
hi group,
Trying to rebuild my ALSA programs with static libs. Code:
Here is what works: Code:
gcc -g -O2 -static -lasound -o volume volume.o |
Are you sure you have a file called
Code:
libasound.a If you do, is it in your PATH? |
fixed that problem but found more
Quote:
Had to add lpthread and -ldl. That caused a warning that I could not clear up. Code:
gcc -g -O2 -static -lasound -lpthread -ldl -o vmsrec vmsrec.o args.o file.o help.o audio.o S-2-A.o console.o comport.o |
[QUOTE=MrUmunhum;3441347]I nade the static libraries for ALSA but then found more problems.
Had to add lpthread and -ldl. That caused a warning that I could not clear up. Code:
gcc -g -O2 -static -lasound -lpthread -ldl -o vmsrec vmsrec.o args.o file.o help.o audio.o S-2-A.o console.o comport.o I. e. the vmsrec.c and audo.c files, refer to symbols that are not present in the libraries you have listed when you try to compile the program (from there the complaints about "undefined references". I don't see how adding -lpthread -ldl (whatever "dl" is) can cause these.... Most likely you'll need to get a newer ALSA lib, if one exits, and try compiling against that? Hope this helped... |
All times are GMT -5. The time now is 11:14 AM. |