-lasound issue

Archives Forums/Linux Discussion/-lasound issue

regaa(Posted 2005) [#1]
Building narf
Compiling:narf.bmx
flat assembler version 1.64
3 passes, 2622 bytes.
Linking:narf.debug
/usr/bin/ld: skipping incompatible /usr/lib/libasound.so when searching for -lasound
/usr/bin/ld: skipping incompatible /usr/lib/libasound.a when searching for -lasound
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.0.2/../../../libasound.so when searching for -lasound
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.0.2/../../../libasound.a when searching for -lasound
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libasound.so when searching for -lasound
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libasound.a when searching for -lasound
/usr/bin/ld: skipping incompatible /usr/lib/libasound.so when searching for -lasound
/usr/bin/ld: skipping incompatible /usr/lib/libasound.a when searching for -lasound
/usr/bin/ld: cannot find -lasound
collect2: ld gab 1 als Ende-Status zurück
Build Error: Failed to link /home/regaa/BlitzMax112/narf.debug
Process complete

Alsa is installed, so i do not know what to do. It is my 2nd install of BlitzMax112. The 1st one gave me some other strange errors -> some shared objects not found and so on. I hate Linux for the errors i ALLWAYS get if i want to install some apps.


skidracer(Posted 2005) [#2]
Alsa is installed?

You mean alsa-dev?


regaa(Posted 2005) [#3]
apt-get install alsa-dev fail-> could not find alsa-dev .
apt-get install alsa fail -> the newsest version ist already installed.

:(


LarsG(Posted 2005) [#4]
try apt searching for "alsa-dev" or "alsa-devel"..
I'm sure there's a package out there with your name on it!! ;)


regaa(Posted 2005) [#5]
apt-get is a crappy piece of software for me:

root@Regaa:~/Worm# apt-get update
Paketlisten werden gelesen... Fertig
root@Regaa:~/Worm# apt-get install alsa-dev
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... Fertig
E: Konnte Paket alsa-dev nicht finden
root@Regaa:~/Worm# apt-get install alsa-devel
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... Fertig
E: Konnte Paket alsa-devel nicht finden
root@Regaa:~/Worm# apt-get install alsa-dev
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... Fertig
E: Konnte Paket alsa-dev nicht finden

PS: All Pakets under Synaptic->search->alsa are installed.


JazzieB(Posted 2005) [#6]
I had this problem and searched for 'asound' or 'lasound' with Synaptic, which found the libraries/devs required.


regaa(Posted 2005) [#7]
I have installed lasound via Synaptic, the installation went fine. But this error still exists:

/usr/bin/ld: skipping incompatible /usr/lib/libasound.so when searching for -lasound

What version of lasound does BlitzMax await? what else could the error be?


regaa(Posted 2005) [#8]
Now i have removed all alsa-packets and installed this one (with all needed depencies):

http://packages.ubuntu.com/cgi-bin/download.pl?arch=amd64&file=pool%2Fmain%2Fa%2Falsa-lib%2Flibasound2-dev_1.0.5-1ubuntu1_amd64.deb&md5sum=79733d5b7106fdbfad256f3d344007ec&arch=amd64&type=main

the installation went fine, but still the same error->

Building narf
Compiling:narf.bmx
flat assembler version 1.64
3 passes, 2622 bytes.
Linking:narf.debug
/usr/bin/ld: skipping incompatible /usr/lib/libasound.so when searching for -lasound
/usr/bin/ld: skipping incompatible /usr/lib/libasound.a when searching for -lasound
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.0.2/../../../libasound.so when searching for -lasound
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.0.2/../../../libasound.a when searching for -lasound
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libasound.so when searching for -lasound
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libasound.a when searching for -lasound
/usr/bin/ld: skipping incompatible /usr/lib/libasound.so when searching for -lasound
/usr/bin/ld: skipping incompatible /usr/lib/libasound.a when searching for -lasound
/usr/bin/ld: cannot find -lasound
collect2: ld gab 1 als Ende-Status zurück
Build Error: Failed to link /home/regaa/BlitzMax112/narf.debug
Process complete


FlameDuck(Posted 2005) [#9]
On Debian (which Ubuntu is derived from),
apt-get install libasound2-dev
works for me.


Craig Watson(Posted 2005) [#10]
Does BlitzMax work with AMD 64 now?

I think the problem is that it needs to link on 32-bit libraries and you don't have any for ALSA.

On the previous version of Ubuntu we had a lib64 and lib32, but I still needed to install a chroot for a full 32-bit Ubuntu install. This was the only way BlitzMax could compile apps at the time. I'm not sure if this situation has changed.

Edit: Just saw another thread - looks like it has a bit.