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
New Contributor
Posts: 4
Registered: ‎03-19-2013
My Device: Simulator
My Carrier: At&t
Accepted Solution

/Applications/bbndk/host_10_0_9_534/darwin/x86/usr/bin/ntoarm-ld: cannot find –lbbmultimedia: No such file or directory

I have installed QNX momentics IDE with 10.0.0.2372 SDK. This is my header file

 

#include <QObject>
#include <bb/cascades/ForeignWindowControl>
#include <bb/multimedia/MediaPlayer>

namespace bb { namespace cascades { class Application; }}

using namespace bb::multimedia;
using namespace bb::cascades;

class ApplicationUI : public QObject
{
    Q_OBJECT
public:
    ApplicationUI(bb::cascades::Application *app);
    virtual ~ApplicationUI() {}
private:
    ForeignWindowControl mForeignWindow;
    MediaPlayer mPlayer;
};

 

When i compile my code I find the following error. Please help.

 

**** Build of configuration Device-Debug for project VideoPlayer ****

make -j7 Device-Debug
make -C .//translations -f Makefile update
make[1]: Entering directory `/Users/ASatyamurthy/Desktop/BlackBerry/VideoPlayer/translations'
/Applications/bbndk/host_10_0_9_534/darwin/x86/usr/bin/lupdate VideoPlayer.pro
Updating 'VideoPlayer.ts'...
    Found 1 source text(s) (0 new and 1 already existing)
make[1]: Leaving directory `/Users/ASatyamurthy/Desktop/BlackBerry/VideoPlayer/translations'
make -C .//translations -f Makefile release
make[1]: Entering directory `/Users/ASatyamurthy/Desktop/BlackBerry/VideoPlayer/translations'
/Applications/bbndk/host_10_0_9_534/darwin/x86/usr/bin/lrelease VideoPlayer.pro
Updating '/Users/ASatyamurthy/Desktop/BlackBerry/VideoPlayer/translations/VideoPlayer.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
    Ignored 1 untranslated source text(s)
make[1]: Leaving directory `/Users/ASatyamurthy/Desktop/BlackBerry/VideoPlayer/translations'
make -C ./arm -f Makefile debug
make[1]: Entering directory `/Users/ASatyamurthy/Desktop/BlackBerry/VideoPlayer/arm'
/Applications/bbndk/host_10_0_9_534/darwin/x86/usr/bin/qmake -spec /Applications/bbndk/target_10_0_9_2372/qnx6/usr/share/qt4/mkspecs/blackberry-armv7le-qcc CONFIG+=debug_and_release CONFIG+=device -o Makefile ../VideoPlayer.pro
make[1]: Leaving directory `/Users/ASatyamurthy/Desktop/BlackBerry/VideoPlayer/arm'
make[1]: Entering directory `/Users/ASatyamurthy/Desktop/BlackBerry/VideoPlayer/arm'
make -f Makefile.Debug
make[2]: Entering directory `/Users/ASatyamurthy/Desktop/BlackBerry/VideoPlayer/arm'
qcc -Vgcc_ntoarmv7le -c -Wc,-include -Wc,o.le-v7-g/.obj/VideoPlayer -Wno-psabi -lang-c++ -fstack-protector-strong -mcpu=cortex-a9 -g -Wno-psabi -Wall -W -D_REENTRANT -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_CORE_LIB -DQT_SHARED -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/share/qt4/mkspecs/blackberry-armv7le-qcc -I../../VideoPlayer -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/include/qt4/QtCore -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/include/qt4/QtDeclarative -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/include/qt4 -I../src -Io.le-v7-g/.moc -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/include -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/include/freetype2 -I. -o o.le-v7-g/.obj/applicationui.o ../src/applicationui.cpp
qcc -Vgcc_ntoarmv7le -c -Wc,-include -Wc,o.le-v7-g/.obj/VideoPlayer -Wno-psabi -lang-c++ -fstack-protector-strong -mcpu=cortex-a9 -g -Wno-psabi -Wall -W -D_REENTRANT -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_CORE_LIB -DQT_SHARED -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/share/qt4/mkspecs/blackberry-armv7le-qcc -I../../VideoPlayer -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/include/qt4/QtCore -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/include/qt4/QtDeclarative -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/include/qt4 -I../src -Io.le-v7-g/.moc -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/include -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/include/freetype2 -I. -o o.le-v7-g/.obj/main.o ../src/main.cpp
/Applications/bbndk/host_10_0_9_534/darwin/x86/usr/bin/moc -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_CORE_LIB -DQT_SHARED -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/share/qt4/mkspecs/blackberry-armv7le-qcc -I../../VideoPlayer -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/include/qt4/QtCore -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/include/qt4/QtDeclarative -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/include/qt4 -I../src -Io.le-v7-g/.moc -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/include -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/include/freetype2 -I. -D__QNXNTO__ ../src/applicationui.hpp -o o.le-v7-g/.moc/moc_applicationui.cpp
qcc -Vgcc_ntoarmv7le -c -Wc,-include -Wc,o.le-v7-g/.obj/VideoPlayer -Wno-psabi -lang-c++ -fstack-protector-strong -mcpu=cortex-a9 -g -Wno-psabi -Wall -W -D_REENTRANT -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_CORE_LIB -DQT_SHARED -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/share/qt4/mkspecs/blackberry-armv7le-qcc -I../../VideoPlayer -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/include/qt4/QtCore -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/include/qt4/QtDeclarative -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/include/qt4 -I../src -Io.le-v7-g/.moc -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/include -I/Applications/bbndk/target_10_0_9_2372/qnx6/usr/include/freetype2 -I. -o o.le-v7-g/.obj/moc_applicationui.o o.le-v7-g/.moc/moc_applicationui.cpp
qcc -Vgcc_ntoarmv7le -lang-c++ -Wl,-rpath-link,/Applications/bbndk/target_10_0_9_2372/qnx6/armle-v7/lib -Wl,-rpath-link,/Applications/bbndk/target_10_0_9_2372/qnx6/armle-v7/usr/lib -Wl,-rpath-link,/Applications/bbndk/target_10_0_9_2372/qnx6/armle-v7/usr/lib/qt4/lib -o o.le-v7-g/VideoPlayer o.le-v7-g/.obj/applicationui.o o.le-v7-g/.obj/main.o o.le-v7-g/.obj/moc_applicationui.o    -L/Applications/bbndk/target_10_0_9_2372/qnx6/armle-v7/lib -L/Applications/bbndk/target_10_0_9_2372/qnx6/armle-v7/usr/lib -L/Applications/bbndk/target_10_0_9_2372/qnx6/armle-v7/usr/lib/qt4/lib -L/Applications/bbndk/target_10_0_9_2372/qnx6//usr/lib/qt4/lib –lbbmultimedia -lbbcascades -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lsqlite3 -lz -lQtXmlPatterns -lQtGui -lQtNetwork -lsocket -lQtCore -lm -lbps
/Applications/bbndk/host_10_0_9_534/darwin/x86/usr/bin/ntoarm-ld: cannot find –lbbmultimedia: No such file or directory
make[2]: Leaving directory `/Users/ASatyamurthy/Desktop/BlackBerry/VideoPlayer/arm'
make[1]: Leaving directory `/Users/ASatyamurthy/Desktop/BlackBerry/VideoPlayer/arm'
cc: /Applications/bbndk/host_10_0_9_534/darwin/x86/usr/bin/ntoarm-ld error 1
make[2]: *** [o.le-v7-g/VideoPlayer] Error 1
make[1]: *** [debug] Error 2
make: *** [Device-Debug] Error 2

 

I have added LIBS += –lbbmultimedia in my .pro file. I tried reinstalling the SDK but i get the same error.

Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: /Applications/bbndk/host_10_0_9_534/darwin/x86/usr/bin/ntoarm-ld: cannot find –lbbmultimedia: No such file or directory

[ Edited ]

Hi,

In -lbbmultimedia the '-' symbol appears to be a long dash, try typing it again. It should be a minus symbol.


Andrey Fidrya, @zmeyc on twitter
New Contributor
Posts: 4
Registered: ‎03-19-2013
My Device: Simulator
My Carrier: At&t

Re: /Applications/bbndk/host_10_0_9_534/darwin/x86/usr/bin/ntoarm-ld: cannot find –lbbmultimedia: No such file or directory

Thank you. That worked