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: 6
Registered: ‎08-16-2013
My Device: Z10
My Carrier: Bell

Make File Error

Hi,

 

I've tried building and running my application to my simulator and keep on getting errors when it's building.  Seems to throw some sort of error with the make file, but don't know what it means.  Below is the console output:

 

23:01:57 **** Incremental Build of configuration Simulator-Debug for project TransitApplication ****
make -j2 Simulator-Debug 
make -C .//translations -f Makefile update
make[1]: Entering directory `C:/Users/Ryan/BlackBerrySDK/BlackBerryWorkspace/TransitApplication/translations'
C:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/host_10_2_0_15/win32/x86/usr/bin/lupdate TransitApplication.pro
cd x86 && C:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/host_10_2_0_15/win32/x86/usr/bin/qmake -spec blackberry-x86-qcc ../TransitApplication.pro  CONFIG+=debug_and_release CONFIG+=simulator
Updating 'TransitApplication.ts'...
    Found 0 source text(s) (0 new and 0 already existing)
make[1]: Leaving directory `C:/Users/Ryan/BlackBerrySDK/BlackBerryWorkspace/TransitApplication/translations'
make -C .//translations -f Makefile release
make[1]: Entering directory `C:/Users/Ryan/BlackBerrySDK/BlackBerryWorkspace/TransitApplication/translations'
C:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/host_10_2_0_15/win32/x86/usr/bin/lrelease TransitApplication.pro
Updating 'C:/Users/Ryan/BlackBerrySDK/BlackBerryWorkspace/TransitApplication/translations/TransitApplication.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
make[1]: Leaving directory `C:/Users/Ryan/BlackBerrySDK/BlackBerryWorkspace/TransitApplication/translations'
make -C ./x86 -f Makefile debug
make[1]: Entering directory `C:/Users/Ryan/BlackBerrySDK/BlackBerryWorkspace/TransitApplication/x86'
make -f Makefile.Debug
make[2]: Entering directory `C:/Users/Ryan/BlackBerrySDK/BlackBerryWorkspace/TransitApplication/x86'
qcc -Vgcc_ntox86 -lang-c++ -Wl,-rpath-link,C:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/target_10_2_0_1155/qnx6/x86/lib -Wl,-rpath-link,C:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/target_10_2_0_1155/qnx6/x86/usr/lib -Wl,-rpath-link,C:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/target_10_2_0_1155/qnx6/x86/usr/lib/qt4/lib -o o-g/TransitApplication o-g/.obj/applicationui.o o-g/.obj/main.o o-g/.obj/moc_applicationui.o    -LC:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/target_10_2_0_1155/qnx6/x86/lib -LC:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/target_10_2_0_1155/qnx6/x86/usr/lib -LC:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/target_10_2_0_1155/qnx6/x86/usr/lib/qt4/lib -LC:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/target_10_2_0_1155/qnx6//usr/lib/qt4/lib -lbb -lbbdata -lscreen -lbbcascades -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lsqlite3 -lz -lQtXmlPatterns -lQtGui -lQtNetwork -lsocket -lQtCore -lm -lbps 
C:\Users\Ryan\BlackBerrySDK\BlackBerry10.2SDK\host_10_2_0_15\win32\x86\usr\bin\ntox86-ld: o-g/.obj/main.o: undefined reference to symbol '_ZTIN2bb6system5phone5PhoneE'
C:\Users\Ryan\BlackBerrySDK\BlackBerry10.2SDK\host_10_2_0_15\win32\x86\usr\bin\ntox86-ld: note: '_ZTIN2bb6system5phone5PhoneE' is defined in DSO C:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/target_10_2_0_1155/qnx6/x86/usr/lib/libbbsystem.so.1 so try adding it to the linker command line
C:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/target_10_2_0_1155/qnx6/x86/usr/lib/libbbsystem.so.1: could not read symbols: Invalid operation
make[2]: Leaving directory `C:/Users/Ryan/BlackBerrySDK/BlackBerryWorkspace/TransitApplication/x86'
cc: C:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/host_10_2_0_15/win32/x86/usr/bin/ntox86-ld caught signal 1
make[2]: *** [o-g/TransitApplication] Error 1
make[1]: *** [debug] Error 2
make: *** [Simulator-Debug] Error 2
make[1]: Leaving directory `C:/Users/Ryan/BlackBerrySDK/BlackBerryWorkspace/TransitApplication/x86'

23:02:03 Build Finished (took 6s.911ms)

 I've tried adding in "LIBS += -lbb -lbbdata" to my .pro file and it didn't seem to do anything.  Any help on this matter would be appreciated.

Developer
Posts: 62
Registered: ‎11-30-2012
My Device: BlackBerry Z10
My Carrier: Telus

Re: Make File Error

It's looking for libbbsystem, it says so on this line:

 C:\Users\Ryan\BlackBerrySDK\BlackBerry10.2SDK\host_10_2_0_15\win32\x86\usr\bin\ntox86-ld: note: '_ZTIN2bb6system5phone5PhoneE' is defined in DSO C:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/target_10_2_0_1155/qnx6/x86/usr/lib/libbbsystem.so.1

 So try adding that to the .pro file. That should at least change the error.

__________________________________________________________

If my post helped, click the like button!

Developer of Reader|YC , an open source Hackernews client
New Contributor
Posts: 6
Registered: ‎08-16-2013
My Device: Z10
My Carrier: Bell

Re: Make File Error

Doesn't seem to solve the problem...

 

21:57:34 **** Incremental Build of configuration Simulator-Debug for project TransitApplication ****
make -j2 Simulator-Debug 
make -C .//translations -f Makefile update
make[1]: Entering directory `C:/Users/Ryan/BlackBerrySDK/BlackBerryWorkspace/TransitApplication/translations'
C:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/host_10_2_0_15/win32/x86/usr/bin/lupdate TransitApplication.pro
cd x86 && C:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/host_10_2_0_15/win32/x86/usr/bin/qmake -spec blackberry-x86-qcc ../TransitApplication.pro  CONFIG+=debug_and_release CONFIG+=simulator
Updating 'TransitApplication.ts'...
    Found 0 source text(s) (0 new and 0 already existing)
make[1]: Leaving directory `C:/Users/Ryan/BlackBerrySDK/BlackBerryWorkspace/TransitApplication/translations'
make -C .//translations -f Makefile release
make[1]: Entering directory `C:/Users/Ryan/BlackBerrySDK/BlackBerryWorkspace/TransitApplication/translations'
C:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/host_10_2_0_15/win32/x86/usr/bin/lrelease TransitApplication.pro
Updating 'C:/Users/Ryan/BlackBerrySDK/BlackBerryWorkspace/TransitApplication/translations/TransitApplication.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
make[1]: Leaving directory `C:/Users/Ryan/BlackBerrySDK/BlackBerryWorkspace/TransitApplication/translations'
make -C ./x86 -f Makefile debug
make[1]: Entering directory `C:/Users/Ryan/BlackBerrySDK/BlackBerryWorkspace/TransitApplication/x86'
make -f Makefile.Debug
make[2]: Entering directory `C:/Users/Ryan/BlackBerrySDK/BlackBerryWorkspace/TransitApplication/x86'
qcc -Vgcc_ntox86 -lang-c++ -Wl,-rpath-link,C:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/target_10_2_0_1155/qnx6/x86/lib -Wl,-rpath-link,C:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/target_10_2_0_1155/qnx6/x86/usr/lib -Wl,-rpath-link,C:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/target_10_2_0_1155/qnx6/x86/usr/lib/qt4/lib -o o-g/TransitApplication o-g/.obj/applicationui.o o-g/.obj/main.o o-g/.obj/moc_applicationui.o    -LC:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/target_10_2_0_1155/qnx6/x86/lib -LC:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/target_10_2_0_1155/qnx6/x86/usr/lib -LC:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/target_10_2_0_1155/qnx6/x86/usr/lib/qt4/lib -LC:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/target_10_2_0_1155/qnx6//usr/lib/qt4/lib -lbb -lbbdata -lscreen -libbbsystem -lbbcascades -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lsqlite3 -lz -lQtXmlPatterns -lQtGui -lQtNetwork -lsocket -lQtCore -lm -lbps 
C:\Users\Ryan\BlackBerrySDK\BlackBerry10.2SDK\host_10_2_0_15\win32\x86\usr\bin\ntox86-ld: cannot find -libbbsystem
cc: C:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/host_10_2_0_15/win32/x86/usr/bin/ntox86-ld caught signal 1
make[2]: *** [o-g/TransitApplication] Error 1
make[2]: Leaving directory `C:/Users/Ryan/BlackBerrySDK/BlackBerryWorkspace/TransitApplication/x86'
make[1]: *** [debug] Error 2
make[1]: Leaving directory `C:/Users/Ryan/BlackBerrySDK/BlackBerryWorkspace/TransitApplication/x86'
make: *** [Simulator-Debug] Error 2

21:58:27 Build Finished (took 52s.703ms)

 Here is my .pro file as well just in case:

APP_NAME = TransitApplication

CONFIG += qt warn_on cascades10
LIBS += -lbb -lbbdata -lscreen -libbbsystem


include(config.pri)

 Any other help would be appreciated.

Developer
Posts: 62
Registered: ‎11-30-2012
My Device: BlackBerry Z10
My Carrier: Telus

Re: Make File Error

I think it should be libbsystem. The makefile says it can't find libbbsystem. Sorry about that.
__________________________________________________________

If my post helped, click the like button!

Developer of Reader|YC , an open source Hackernews client
New Contributor
Posts: 6
Registered: ‎08-16-2013
My Device: Z10
My Carrier: Bell

Re: Make File Error

Still doesn't seem to be able to find that...

 

Any other suggestions?

Retired
Posts: 170
Registered: ‎09-06-2010
My Device: None
My Carrier: None

Re: Make File Error

If you have a .pro file with the following line:

 

LIBS += -lfoo

 the linker will look for a library called libfoo.so in the search path. So, if the error message says the linker can't find:

 

libbbsystem.so

 you need to add the entry to the .pro file like:

 

LIBS += -lbb -lbbdata -lscreen -lbbsystem

 "lib" is pre-pended and ".so" is appended.

New Contributor
Posts: 6
Registered: ‎08-16-2013
My Device: Z10
My Carrier: Bell

Re: Make File Error

Still says it's missing the -libbsystem.  I tried adding it as the first and last thing in the LIBS portion and still has no effect.  Any other suggestions?

Retired
Posts: 170
Registered: ‎09-06-2010
My Device: None
My Carrier: None

Re: Make File Error

Looking back at your original error message:

 

C:\Users\Ryan\BlackBerrySDK\BlackBerry10.2SDK\host_10_2_0_15\win32\x86\usr\bin\ntox86-ld: note: '_ZTIN2bb6system5phone5PhoneE' is defined in DSO C:/Users/Ryan/BlackBerrySDK/BlackBerry10.2SDK/targ

 The linker is looking for the Dynamic Shared Object '_ZZTIM2bb6system5phone5PhoneE'. This is a C++ mangled name suggesting that you're using the class

 

bb::system::phone::Phone

 This class is documented here: https://developer.blackberry.com/native/reference/cascades/bb__system__phone__phone.html and clearly describes what header files to #include and what to add to the LIB statement in .pro to use it properly. 

 

Can you verify that you've followed this details on this page to use this class?