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: 34
Registered: ‎02-06-2013
My Device: BlackBerry Z10
My Carrier: AT & T
Accepted Solution

Blackberry build error make: *** [Simulator-Debug] Error 2

I am new to blackberry development. I am using Blackberry 10.2 SDK with Momentics IDE. After every few builds i get following error. I noticed that default build setup with project deletes output file which causes this error. Restoring project output file resolves issue on next build. This is really annoying and i think i am missing something obvious for build setup in project. Can anyone suggest how to fix this build issue?


C:\bbndk\host_10_2_0_15\win32\x86\usr\bin\ntox86-ld: note: '_ZN2bb6system5phone5PhoneC1EP7QObject' is defined in DSO C:/bbndk/target_10_2_0_1155/qnx6/x86/usr/lib/libbbsystem.so.1 so try adding it to the linker command line
C:/bbndk/target_10_2_0_1155/qnx6/x86/usr/lib/libbbsystem.so.1: could not read symbols: Invalid operation
cc: C:/bbndk/host_10_2_0_15/win32/x86/usr/bin/ntox86-ld caught signal 1
make[2]: *** [o-g/MyApp] Error 1
make[1]: *** [debug] Error 2
make: *** [Simulator-Debug] Error 2

 

Build deletes file : C:\Workspace\MyApp\x86\o-g\MyApp. Restoring it resolves issue on next build.

BlackBerry Development Advisor
Posts: 15,813
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Blackberry build error make: *** [Simulator-Debug] Error 2

It looks like you are missing a library.  Add the line below to the .pro file in your project and build again.

 

LIBS += -lbbsystem

 

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Developer
Posts: 34
Registered: ‎02-06-2013
My Device: BlackBerry Z10
My Carrier: AT & T

Re: Blackberry build error make: *** [Simulator-Debug] Error 2

Thanks now it seems to work fine.

New Developer
Posts: 14
Registered: ‎05-28-2014
My Device: No Device
My Carrier: Idea

Re: Blackberry build error make: *** [Simulator-Debug] Error 2

Hi,

 

I am Having the same error. Where did you added

 

LIBS += -lbbsystem
Here is my Blogs About Android Development. Please read and share it. http://startandroiddevelopment.blogspot.in/2013/08/how-to-start-android-development.html