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
Developer
Posts: 130
Registered: ‎10-26-2010
My Device: Blackberry Bold 9700

PJSIP for BB10

Hi , 

 

Has anyone tried integrating PJSIP in your project.

I got the  PJSIP libs generated for BB10. compiled libs are .a extension.

 

I added the libs in my project by following the post 

http://supportforums.blackberry.com/t5/Cascades-Development-Knowledge/How-to-use-a-third-party-share...

 

I did all the steps said in the post and also verified all the point asked in add lib sheet.

Problem is when I compile my porject after added all the libs and setting all the paths my app won't compile.Here is wat I get in my build log :

 

**** Build of configuration Simulator-Debug for project Dialer ****

make Simulator-Debug 
F:/bbndk/host_10_0_9_52/win32/x86/usr/bin/qmake -spec unsupported/blackberry-armv7le-qcc -o arm/Makefile Dialer.pro CONFIG+=device
WARNING: Failure to find: ../src/*.h
WARNING: Failure to find: ../src/*.h
F:/bbndk/host_10_0_9_52/win32/x86/usr/bin/qmake -spec unsupported/blackberry-x86-qcc -o x86/Makefile Dialer.pro CONFIG+=simulator
WARNING: Failure to find: ../src/*.h
WARNING: Failure to find: ../src/*.h
make -C ./translations -f Makefile update release
make[1]: Entering directory `F:/ndk-10.0.9-workspace2/Dialer/translations'
F:/bbndk/host_10_0_9_52/win32/x86/usr/bin/lupdate Dialer.pro
Updating 'Dialer_en_GB.ts'...
    Found 0 source text(s) (0 new and 0 already existing)
Updating 'Dialer_fr.ts'...
    Found 0 source text(s) (0 new and 0 already existing)
Updating 'Dialer_it.ts'...
    Found 0 source text(s) (0 new and 0 already existing)
Updating 'Dialer_de.ts'...
    Found 0 source text(s) (0 new and 0 already existing)
Updating 'Dialer_es.ts'...
    Found 0 source text(s) (0 new and 0 already existing)
Updating 'Dialer.ts'...
    Found 0 source text(s) (0 new and 0 already existing)
F:/bbndk/host_10_0_9_52/win32/x86/usr/bin/lrelease Dialer.pro
Could not find qmake configuration directoryCould not read qmake configuration file F:/bbndk/target_10_0_9_386/qnx6/usr/share/qt4/mkspecs/qmake.confUsing OS scope before setting MAKEFILE_GENERATORF:/bbndk/target_10_0_9_386/qnx6/usr/share/qt4/mkspecs/features/debug_and_release.prf(1): Using OS scope before setting MAKEFILE_GENERATORF:/bbndk/target_10_0_9_386/qnx6/usr/share/qt4/mkspecs/features/qt.prf(4): Using OS scope before setting MAKEFILE_GENERATORF:/bbndk/target_10_0_9_386/qnx6/usr/share/qt4/mkspecs/features/qt.prf(36): Using OS scope before setting MAKEFILE_GENERATORF:/bbndk/target_10_0_9_386/qnx6/usr/share/qt4/mkspecs/features/qt.prf(197): 'qtAddLibrary' is not a recognized test functionF:/bbndk/target_10_0_9_386/qnx6/usr/share/qt4/mkspecs/features/qt.prf(197): 'qtAddLibrary' is not a recognized test functionF:/bbndk/target_10_0_9_386/qnx6/usr/share/qt4/mkspecs/features/qt.prf(197): 'qtAddLibrary' is not a recognized test functionF:/bbndk/target_10_0_9_386/qnx6/usr/share/qt4/mkspecs/features/qt.prf(197): 'qtAddLibrary' is not a recognized test functionF:/bbndk/target_10_0_9_386/qnx6/usr/share/qt4/mkspecs/features/qt.prf(197): 'qtAddLibrary' is not a recognized test functionF:/bbndk/target_10_0_9_386/qnx6/usr/share/qt4/mkspecs/features/qt.prf(197): 'qtAddLibrary' is not a recognized test functionF:/bbndk/target_10_0_9_386/qnx6/usr/share/qt4/mkspecs/features/qt.prf(197): 'qtAddLibrary' is not a recognized test functionF:/bbndk/target_10_0_9_386/qnx6/usr/share/qt4/mkspecs/features/qt.prf(213): Using OS scope before setting MAKEFILE_GENERATORF:/bbndk/target_10_0_9_386/qnx6/usr/share/qt4/mkspecs/features/moc.prf(3): 'qtPrepareTool' is not a recognized test functionF:/bbndk/target_10_0_9_386/qnx6/usr/share/qt4/mkspecs/features/moc.prf(12): Using OS scope before setting MAKEFILE_GENERATORF:/bbndk/target_10_0_9_386/qnx6/usr/share/qt4/mkspecs/features/moc.prf(97): Using OS scope before setting MAKEFILE_GENERATORF:/bbndk/target_10_0_9_386/qnx6/usr/share/qt4/mkspecs/features/uic.prf(108): Using OS scope before setting MAKEFILE_GENERATORThe directory name is invalid.
Updating 'F:/ndk-10.0.9-workspace2/Dialer/translations/Dialer_en_GB.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
Updating 'F:/ndk-10.0.9-workspace2/Dialer/translations/Dialer_fr.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
Updating 'F:/ndk-10.0.9-workspace2/Dialer/translations/Dialer_it.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
Updating 'F:/ndk-10.0.9-workspace2/Dialer/translations/Dialer_de.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
Updating 'F:/ndk-10.0.9-workspace2/Dialer/translations/Dialer_es.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
Updating 'F:/ndk-10.0.9-workspace2/Dialer/translations/Dialer.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
make[1]: Leaving directory `F:/ndk-10.0.9-workspace2/Dialer/translations'
make -C ./x86 -f Makefile debug
make[1]: Entering directory `F:/ndk-10.0.9-workspace2/Dialer/x86'
make -f Makefile.Debug
make[2]: Entering directory `F:/ndk-10.0.9-workspace2/Dialer/x86'
qcc -Vgcc_ntox86 -lang-c++ -Wl,-rpath-link,F:/bbndk/target_10_0_9_386/qnx6/x86/lib -Wl,-rpath-link,F:/bbndk/target_10_0_9_386/qnx6/x86/usr/lib -o o-g/Dialer o-g/.obj/Dialer.o o-g/.obj/main.o o-g/.obj/moc_Dialer.o    -LF:/bbndk/target_10_0_9_386/qnx6/x86/lib -LF:/bbndk/target_10_0_9_386/qnx6/x86/usr/lib -LF:/bbndk/target_10_0_9_386/qnx6/x86/usr/lib/qt4/lib -LF:/bbndk/target_10_0_9_386/qnx6/usr/lib/qt4/lib -lm -lbps -LF:\PJ_SIP_BB_10\PJBB10Simulator\lib -lg7221codec-i486-pc-nto-qnx8.0.0.a -lgsmcodec-i486-pc-nto-qnx8.0.0.a -lilbccodec-i486-pc-nto-qnx8.0.0.a -lmilenage-i486-pc-nto-qnx8.0.0.a -lpj-i486-pc-nto-qnx8.0.0.a -lpjlib-util-i486-pc-nto-qnx8.0.0.a -lpjmedia-audiodev-i486-pc-nto-qnx8.0.0.a -lpjmedia-codec-i486-pc-nto-qnx8.0.0.a -lpjmedia-i486-pc-nto-qnx8.0.0.a -lpjmedia-videodev-i486-pc-nto-qnx8.0.0.a -lpjnath-i486-pc-nto-qnx8.0.0.a -lpjsip-i486-pc-nto-qnx8.0.0.a -lpjsip-simple-i486-pc-nto-qnx8.0.0.a -lpjsip-ua-i486-pc-nto-qnx8.0.0.a -lpjsua-i486-pc-nto-qnx8.0.0.a -lportaudio-i486-pc-nto-qnx8.0.0.a -lresample-i486-pc-nto-qnx8.0.0.a -lspeex-i486-pc-nto-qnx8.0.0.a -lsrtp-i486-pc-nto-qnx8.0.0.a -lbb -lbbcascades -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lQtXmlPatterns -lQtXml -lQtGui -lQtNetwork -lQtCore 
Could not find qmake configuration directoryCould not find qmake configuration fileUsing OS scope before setting MAKEFILE_GENERATORF:\bbndk\host_10_0_9_52\win32\x86\usr\bin\ntox86-ld: cannot find -lg7221codec-i486-pc-nto-qnx8.0.0.a
F:\bbndk\host_10_0_9_52\win32\x86\usr\bin\ntox86-ld: cannot find -lgsmcodec-i486-pc-nto-qnx8.0.0.a
F:\bbndk\host_10_0_9_52\win32\x86\usr\bin\ntox86-ld: cannot find -lilbccodec-i486-pc-nto-qnx8.0.0.a
F:\bbndk\host_10_0_9_52\win32\x86\usr\bin\ntox86-ld: cannot find -lmilenage-i486-pc-nto-qnx8.0.0.a
F:\bbndk\host_10_0_9_52\win32\x86\usr\bin\ntox86-ld: cannot find -lpj-i486-pc-nto-qnx8.0.0.a
F:\bbndk\host_10_0_9_52\win32\x86\usr\bin\ntox86-ld: cannot find -lpjlib-util-i486-pc-nto-qnx8.0.0.a
F:\bbndk\host_10_0_9_52\win32\x86\usr\bin\ntox86-ld: cannot find -lpjmedia-audiodev-i486-pc-nto-qnx8.0.0.a
F:\bbndk\host_10_0_9_52\win32\x86\usr\bin\ntox86-ld: cannot find -lpjmedia-codec-i486-pc-nto-qnx8.0.0.a
F:\bbndk\host_10_0_9_52\win32\x86\usr\bin\ntox86-ld: cannot find -lpjmedia-i486-pc-nto-qnx8.0.0.a
F:\bbndk\host_10_0_9_52\win32\x86\usr\bin\ntox86-ld: cannot find -lpjmedia-videodev-i486-pc-nto-qnx8.0.0.a
F:\bbndk\host_10_0_9_52\win32\x86\usr\bin\ntox86-ld: cannot find -lpjnath-i486-pc-nto-qnx8.0.0.a
F:\bbndk\host_10_0_9_52\win32\x86\usr\bin\ntox86-ld: cannot find -lpjsip-i486-pc-nto-qnx8.0.0.a
F:\bbndk\host_10_0_9_52\win32\x86\usr\bin\ntox86-ld: cannot find -lpjsip-simple-i486-pc-nto-qnx8.0.0.a
F:\bbndk\host_10_0_9_52\win32\x86\usr\bin\ntox86-ld: cannot find -lpjsip-ua-i486-pc-nto-qnx8.0.0.a
F:\bbndk\host_10_0_9_52\win32\x86\usr\bin\ntox86-ld: cannot find -lpjsua-i486-pc-nto-qnx8.0.0.a
F:\bbndk\host_10_0_9_52\win32\x86\usr\bin\ntox86-ld: cannot find -lportaudio-i486-pc-nto-qnx8.0.0.a
F:\bbndk\host_10_0_9_52\win32\x86\usr\bin\ntox86-ld: cannot find -lresample-i486-pc-nto-qnx8.0.0.a
F:\bbndk\host_10_0_9_52\win32\x86\usr\bin\ntox86-ld: cannot find -lspeex-i486-pc-nto-qnx8.0.0.a
F:\bbndk\host_10_0_9_52\win32\x86\usr\bin\ntox86-ld: cannot find -lsrtp-i486-pc-nto-qnx8.0.0.a
cc: F:/bbndk/host_10_0_9_52/win32/x86/usr/bin/ntox86-ld caught signal 1
make[2]: *** [o-g/Dialer] Error 1
make[2]: Leaving directory `F:/ndk-10.0.9-workspace2/Dialer/x86'
make[1]: *** [debug] Error 2
make[1]: Leaving directory `F:/ndk-10.0.9-workspace2/Dialer/x86'
make: *** [Simulator-Debug] Error 2

**** Build Finished ****

 One imp thing is libs are with .a extension but the bar descriptor.xml read the lib name and add wit extension .so

 

   <asset path="F:/PJ_SIP_BB_10/PJBB10Simulator/lib/libg7221codec-i486-pc-nto-qnx8.0.0.so" type="Qnx/Elf">lib/libg7221codec-i486-pc-nto-qnx8.0.0.so</asset>

 

Kindly help meout  ,my apologies I am missing the obvious  , being new to c and PJSIP is really making not getting the issue tracked 

 

 regards

 

 

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: PJSIP for BB10

Note if you specify a library to link with using

-lsomelibraryname

linker will search for libsomelibraryname.a

Developer
Posts: 130
Registered: ‎10-26-2010
My Device: Blackberry Bold 9700

Re: PJSIP for BB10

@

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: PJSIP for BB10

at this stage (when you are getting error) xml file is not used at all.

Developer
Posts: 130
Registered: ‎10-26-2010
My Device: Blackberry Bold 9700

Re: PJSIP for BB10

@BGmot even then my question is still the same why the SIP libs are not getting added correctly even when em using following the steps (am I missing something other then said in the add lib tutorial) and second why the libs are show with the extension of .so 

 

My apologies if my question was not clear 

 

Regards

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: PJSIP for BB10

Ok, let's take one lib. What is real name (on disk) of 

gsmcodec-i486-pc-nto-qnx8.0.0.a

and in which folder it is located?

Developer
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: PJSIP for BB10

[ Edited ]

Here

 

LF:\PJ_SIP_BB_10\PJBB10Simulator\lib -lg7221codec-i486-pc-nto-qnx8.0.0.a -lgsmcodec-i486-pc-nto-qnx8.0.0.a -lilbccodec-i486-pc-nto-qnx8.0.0.a -lmilenage-i486-pc-nto-qnx8.0.0.a -lpj-i486-pc-nto-qnx8.0.0.a -lpjlib-util-i486-pc-nto-qnx8.0.0.a -lpjmedia-audiodev-i486-pc-nto-qnx8.0.0.a -lpjmedia-codec-i486-pc-nto-qnx8.0.0.a -lpjmedia-i486-pc-nto-qnx8.0.0.a -lpjmedia-videodev-i486-pc-nto-qnx8.0.0.a -lpjnath-i486-pc-nto-qnx8.0.0.a -lpjsip-i486-pc-nto-qnx8.0.0.a -lpjsip-simple-i486-pc-nto-qnx8.0.0.a -lpjsip-ua-i486-pc-nto-qnx8.0.0.a -lpjsua-i486-pc-nto-qnx8.0.0.a -lportaudio-i486-pc-nto-qnx8.0.0.a -lresample-i486-pc-nto-qnx8.0.0.a -

  fix your .pro file to list only lib name. Example 


-lsleex or -lspeex-i486-pc-nto-qnx8.0.0 without .a

 

 

 Maybe if you upload your prebuilt libs we can help you better.

Developer
Posts: 130
Registered: ‎10-26-2010
My Device: Blackberry Bold 9700

Re: PJSIP for BB10

thank you all for your time and my apologies for late response

 

@BGmot  

lib name same as u mentions and its on the same drive where is my project

PJ_SIP_BB_10\PJBB10Simulator\lib

this is full path to my all PJ SIP  libs.

 

INCLUDEPATH += ../src F:/PJ_SIP_BB_10/PJBB10Simulator/include
SOURCES += ../src/*.cpp
HEADERS += ../src/*.hpp ../src/*.h

LIBS += -LF:\\PJ_SIP_BB_10\\PJBB10Simulator\\lib  -lg7221codec-i486-pc-nto-qnx8.0
LIBS += -LF:\\PJ_SIP_BB_10\\PJBB10Simulator\\lib  -lgsmcodec-i486-pc-nto-qnx8.0.0
LIBS += -LF:\\PJ_SIP_BB_10\\PJBB10Simulator\\lib  -lilbccodec-i486-pc-nto-qnx8.0.0
LIBS += -LF:\\PJ_SIP_BB_10\\PJBB10Simulator\\lib  -lmilenage-i486-pc-nto-qnx8.0.0
LIBS += -LF:\\PJ_SIP_BB_10\\PJBB10Simulator\\lib  -lpj-i486-pc-nto-qnx8.0.0
LIBS += -LF:\\PJ_SIP_BB_10\\PJBB10Simulator\\lib  -lpjlib-util-i486-pc-nto-qnx8.0.0
LIBS += -LF:\\PJ_SIP_BB_10\\PJBB10Simulator\\lib  -lpjmedia-audiodev-i486-pc-nto-qnx8.0.0
LIBS += -LF:\\PJ_SIP_BB_10\\PJBB10Simulator\\lib  -lpjmedia-codec-i486-pc-nto-qnx8.0.0
LIBS += -LF:\\PJ_SIP_BB_10\\PJBB10Simulator\\lib  -lpjmedia-i486-pc-nto-qnx8.0.0
LIBS += -LF:\\PJ_SIP_BB_10\\PJBB10Simulator\\lib  -lpjmedia-videodev-i486-pc-nto-qnx8.0.0
LIBS += -LF:\\PJ_SIP_BB_10\\PJBB10Simulator\\lib  -lpjnath-i486-pc-nto-qnx8.0.0
LIBS += -LF:\\PJ_SIP_BB_10\\PJBB10Simulator\\lib  -lpjsip-i486-pc-nto-qnx8.0.0
LIBS += -LF:\\PJ_SIP_BB_10\\PJBB10Simulator\\lib  -lpjsip-simple-i486-pc-nto-qnx8.0.0
LIBS += -LF:\\PJ_SIP_BB_10\\PJBB10Simulator\\lib  -lpjsip-ua-i486-pc-nto-qnx8.0.0
LIBS += -LF:\\PJ_SIP_BB_10\\PJBB10Simulator\\lib  -lpjsua-i486-pc-nto-qnx8.0.0
LIBS += -LF:\\PJ_SIP_BB_10\\PJBB10Simulator\\lib  -lportaudio-i486-pc-nto-qnx8.0.0
LIBS += -LF:\\PJ_SIP_BB_10\\PJBB10Simulator\\lib  -lresample-i486-pc-nto-qnx8.0.0
LIBS += -LF:\\PJ_SIP_BB_10\\PJBB10Simulator\\lib  -lspeex-i486-pc-nto-qnx8.0.0
LIBS += -LF:\\PJ_SIP_BB_10\\PJBB10Simulator\\lib  -lsrtp-i486-pc-nto-qnx8.0.0

lupdate_inclusion {
    SOURCES += ../assets/*.qml
}

 Just the part where libs are added

 

Regards

 

 

 

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: PJSIP for BB10

And when you specify libs this way you still get this?

F:\bbndk\host_10_0_9_52\win32\x86\usr\bin\ntox86-ld: cannot find -lgsmcodec-i486-pc-nto-qnx8.0.0.a

Can you post result of 

dir F:\PJ_SIP_BB_10\PJBB10Simulator\lib\gsmcodec*
Developer
Posts: 130
Registered: ‎10-26-2010
My Device: Blackberry Bold 9700

Re: PJSIP for BB10

 I am sorry BGmot , I am not getting where u want me to update the path in the LIB String ?

 u want this 

INCLUDEPATH += ../src dir F:/PJ_SIP_BB_10/PJBB10Simulator/include

 

or  if u want me to update the libs string how em gonna do it this

LIBS += -LF:\\PJ_SIP_BB_10\\PJBB10Simulator\\lib  -lg7221codec-i486-pc-nto-qnx8.0

?

 

Regards