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
Highlighted
Developer
Posts: 64
Registered: ‎05-30-2014
My Device: BlackBerry Z10
My Carrier: Company
Accepted Solution

error in make file

17:49:26 **** Incremental Build of configuration Simulator-Debug for project RequestBuilderDemo ****
make -j4 Simulator-Debug 
make -C .//translations -f Makefile update
make[1]: Entering directory `/home/nitish/Development/RequestBuilderDemo/translations'
/home/nitish/bbndk/host_10_2_0_15/linux/x86/usr/bin/lupdate RequestBuilderDemo.pro
Unable to load library icui18n "Cannot load library icui18n: (icui18n: cannot open shared object file: No such file or directory)" 
/home/nitish/Development/RequestBuilderDemo/assets/main.qml:60:25: error: Unexpected token `.'
                console..log("returned String:"+ _thisApp.createRequestData(textFieldUserName.text,textPassword.text));
Updating 'RequestBuilderDemo.ts'...
                        ^

    Found 0 source text(s) (0 new and 0 already existing)
make[1]: Leaving directory `/home/nitish/Development/RequestBuilderDemo/translations'
make -C .//translations -f Makefile release
make[1]: Entering directory `/home/nitish/Development/RequestBuilderDemo/translations'
/home/nitish/bbndk/host_10_2_0_15/linux/x86/usr/bin/lrelease RequestBuilderDemo.pro
Updating '/home/nitish/Development/RequestBuilderDemo/translations/RequestBuilderDemo.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
make[1]: Leaving directory `/home/nitish/Development/RequestBuilderDemo/translations'
make -C ./x86 -f Makefile debug
make[1]: Entering directory `/home/nitish/Development/RequestBuilderDemo/x86'
make -f Makefile.Debug
make[2]: Entering directory `/home/nitish/Development/RequestBuilderDemo/x86'
qcc -Vgcc_ntox86 -c -Wc,-include -Wc,o-g/.obj/RequestBuilderDemo -Wno-psabi -lang-c++ -fstack-protector -fstack-protector-all -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../../../bbndk/target_10_2_0_1155/qnx6/usr/share/qt4/mkspecs/blackberry-x86-qcc -I../../RequestBuilderDemo -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtDeclarative -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4 -Io-g/.moc -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/freetype2 -I. -o o-g/.obj/RequestBuilder.o ../src/RequestBuilder.cpp
/home/nitish/bbndk/host_10_2_0_15/linux/x86/usr/bin/moc -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../bbndk/target_10_2_0_1155/qnx6/usr/share/qt4/mkspecs/blackberry-x86-qcc -I../../RequestBuilderDemo -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtDeclarative -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4 -Io-g/.moc -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/freetype2 -I. -D__QNXNTO__ ../src/RequestBuilder.hpp -o o-g/.moc/moc_RequestBuilder.cpp
/home/nitish/bbndk/host_10_2_0_15/linux/x86/usr/bin/moc -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../bbndk/target_10_2_0_1155/qnx6/usr/share/qt4/mkspecs/blackberry-x86-qcc -I../../RequestBuilderDemo -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtDeclarative -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4 -Io-g/.moc -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/freetype2 -I. -D__QNXNTO__ ../src/applicationui.hpp -o o-g/.moc/moc_applicationui.cpp
qcc -Vgcc_ntox86 -c -Wc,-include -Wc,o-g/.obj/RequestBuilderDemo -Wno-psabi -lang-c++ -fstack-protector -fstack-protector-all -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../../../bbndk/target_10_2_0_1155/qnx6/usr/share/qt4/mkspecs/blackberry-x86-qcc -I../../RequestBuilderDemo -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtDeclarative -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4 -Io-g/.moc -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/freetype2 -I. -o o-g/.obj/moc_RequestBuilder.o o-g/.moc/moc_RequestBuilder.cpp
qcc -Vgcc_ntox86 -c -Wc,-include -Wc,o-g/.obj/RequestBuilderDemo -Wno-psabi -lang-c++ -fstack-protector -fstack-protector-all -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../../../bbndk/target_10_2_0_1155/qnx6/usr/share/qt4/mkspecs/blackberry-x86-qcc -I../../RequestBuilderDemo -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtDeclarative -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4 -Io-g/.moc -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/freetype2 -I. -o o-g/.obj/moc_applicationui.o o-g/.moc/moc_applicationui.cpp
In file included from ../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qvariant.h:48:0,
                 from ../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/QVariant:1,
                 from ../precompiled.h:5:
../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qmetatype.h: In static member function 'static int QMetaTypeId2<T>::qt_metatype_id() [with T = QList<QMap<QString, QVariant> >]':
../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qmetatype.h:230:44:   instantiated from 'int qMetaTypeId(T*) [with T = QList<QMap<QString, QVariant> >]'
../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qvariant.h:341:47:   instantiated from 'bool QVariant::canConvert() const [with T = QList<QMap<QString, QVariant> >]'
../src/RequestBuilder.cpp:112:56:   instantiated from here
../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qmetatype.h:169:80: error: 'qt_metatype_id' is not a member of 'QMetaTypeId<QList<QMap<QString, QVariant> > >'
../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qmetatype.h:169:83: warning: control reaches end of non-void function [-Wreturn-type]
cc: /home/nitish/bbndk/host_10_2_0_15/linux/x86/usr/lib/gcc/i486-pc-nto-qnx8.0.0/4.6.3/cc1plus error 1
make[2]: *** [o-g/.obj/RequestBuilder.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/home/nitish/Development/RequestBuilderDemo/x86'
make[1]: Leaving directory `/home/nitish/Development/RequestBuilderDemo/x86'
make[1]: *** [debug] Error 2
make: *** [Simulator-Debug] Error 2

17:49:26 Build Finished (took 267ms)

 there is nothing wrong in source code. but its giving error in make file.... has somebody faced this.....please help.....

Developer
Posts: 64
Registered: ‎05-30-2014
My Device: BlackBerry Z10
My Carrier: Company

Re: error in make file

Unable to load library icui18n "Cannot load library icui18n: (icui18n: cannot open shared object file: No such file or directory)" 

 above line could help you you guys to identify the solution......

Developer
Posts: 358
Registered: ‎04-13-2013
My Device: Z10
My Carrier: Telus

Re: error in make file

Did you add the necessary library in your .pro file?
Developer
Posts: 64
Registered: ‎05-30-2014
My Device: BlackBerry Z10
My Carrier: Company

Re: error in make file

what do you think which library should be added and how?

 

Developer
Posts: 64
Registered: ‎05-30-2014
My Device: BlackBerry Z10
My Carrier: Company

Re: error in make file

 have followed this steps on following location:

http://supportforums.blackberry.com/t5/Native-Development/Need-help-to-add-libcurl-library-in-QNX-mo...

 

and added libicui18n to the project but still the error remains....am I doing anything wrong?

Developer
Posts: 358
Registered: ‎04-13-2013
My Device: Z10
My Carrier: Telus

Re: error in make file

did you add this to your library?

 

LIBS += -lbbdata

 I usually get makefile errors when that isn't in the pro.

Developer
Posts: 64
Registered: ‎05-30-2014
My Device: BlackBerry Z10
My Carrier: Company

Re: error in make file

I resolved with that problem. actually I had used QVariantList in a code. and that part of code was generating this error. So I just added other alternate code to bypass it.

Thanks for your replies.....