Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
bobcripps
Posts: 16
Registered: ‎12-14-2011
My Device: Simulator
Accepted Solution

Linker error libasound

I'm tring to get some audio proof of concept code working so a good start point was to attempt to compile waverec in the SDK so - I created an empty project from the file->new option and pasted the code from waverec.c into a main.c as the only src file in the project.

Once I'd got rid of the errors by including libasound in the libraries a build attempt (any target) produces the linker error:

 

C:\apps\bbndk-2.0.0-beta1\host\win32\x86\usr\bin\ntox86-ld: cannot find -llibasound

 

I tried explicitly  including "c:/apps/bbndk-2.0.0-beta1/target/qnx6/x86/lib in the linker path but to no avail

All help greatly appreciated

Cheers

Bob

Retired
cdamus
Posts: 45
Registered: ‎10-25-2010
My Device: Bold 9700

Re: Linker error libasound

Hi, Bob,

 

The linker wants just the libname, which in this case is 'asound'.  So, do 

 

    -lasound

 

in the link command.

 

Cheers,

 

Christian

Contributor
bobcripps
Posts: 16
Registered: ‎12-14-2011
My Device: Simulator

Re: Linker error libasound

Ah I see thanks.

I was looking at the docs which say libasound.so . Now I know for all libraries I have to leave off lib

Cheers

Bob

 

 

Regular Contributor
ashish_developer
Posts: 96
Registered: ‎05-15-2013
My Device: blackberry z10

Re: Linker error libasound

hi,

i have the same issue but the library is lminiupnpc

here is my console output:

/opt/bbndk/host_10_1_0_132/linux/x86/usr/bin/ntox86-ld: skipping incompatible /opt/bbndk/target_10_1_0_1020/qnx6/x86/usr/lib/libminiupnpc.a when searching for -lminiupnpc
/opt/bbndk/host_10_1_0_132/linux/x86/usr/bin/ntox86-ld: skipping incompatible /opt/bbndk/target_10_1_0_1020/qnx6/x86/lib/libminiupnpc.a when searching for -lminiupnpc
/opt/bbndk/host_10_1_0_132/linux/x86/usr/bin/ntox86-ld: skipping incompatible /opt/bbndk/target_10_1_0_1020/qnx6/x86/usr/lib/libminiupnpc.a when searching for -lminiupnpc
/opt/bbndk/host_10_1_0_132/linux/x86/usr/bin/ntox86-ld: skipping incompatible /opt/bbndk/target_10_1_0_1020/qnx6/x86//lib/libminiupnpc.a when searching for -lminiupnpc
/opt/bbndk/host_10_1_0_132/linux/x86/usr/bin/ntox86-ld: skipping incompatible /opt/bbndk/target_10_1_0_1020/qnx6/x86//usr/lib/libminiupnpc.a when searching for -lminiupnpc
/opt/bbndk/host_10_1_0_132/linux/x86/usr/bin/ntox86-ld: cannot find -lminiupnpc
cc: /opt/bbndk/host_10_1_0_132/linux/x86/usr/bin/ntox86-ld error 1
make[2]: *** [o-g/fiume] Error 1
make[1]: *** [debug] Error 2
make: *** [Simulator-Debug] Error 2

**** Build Finished ****
it is pjsip based project...plz help i have linked this library in my .pro file with  -lminiupnpc