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
Super Contributor
Posts: 306
Registered: ‎08-10-2010
My Device: Not Specified
Accepted Solution

Import project as makefile project result in error

[ Edited ]

Hi,

 

I followed the steps which is describe in this link to import a c/c++ project.

https://developer.blackberry.com/native/beta/documentation/com.qnx.doc.native_sdk.quickstart/topic/i...

 

but it gives me this error :

make: *** [all] Error 2 solver C/C++ Problem

make[1]: *** [all] Error 2 solver C/C++ Problem

make[2]: *** [C:/BB10/solver/x86/o-g/solver] Error 1 solver C/C++ Problem

 

 

 i import the sudoku game which is written in c.c++.

 

When i create empty application using c/Makefile build it gives me above 3 errors. So after this i think it is not a project related error it is something missing in IDE or i missed some steps to import the project.

 

 



Retired
Posts: 19
Registered: ‎05-07-2012
My Device: none
My Carrier: none

Re: Import project as makefile project result in error

Hey Meghasanghvi,

If I build an empty project I still need to add a main.cpp, with a main funciton, or else I get similar errors. Not sure if this is the cause of your problem, but that step isn't mentioned in the documentation.

Super Contributor
Posts: 306
Registered: ‎08-10-2010
My Device: Not Specified

Re: Import project as makefile project result in error

Hi,

 

Thanks for your reply. When i download the project from net which have main.cpp with a main function but still i get this error.

And i also tried to make a empty application with main.cpp added which have a main function included into that.

 

Then also it gives this error.

Retired
Posts: 19
Registered: ‎05-07-2012
My Device: none
My Carrier: none

Re: Import project as makefile project result in error

Hey Meghasanghvi,

Which ndk are you trying to build with? If you could attach the simple project that isn't building I can try to get more information for you.

Tim

Retired
Posts: 19
Registered: ‎05-07-2012
My Device: none
My Carrier: none

Re: Import project as makefile project result in error

hey Meghasanghvi,

Any luck getting your application building?

Super Contributor
Posts: 306
Registered: ‎08-10-2010
My Device: Not Specified

Re: Import project as makefile project result in error

Hi timvito,

 

I am using installer-bbndk-BB10_0_04-win32-186-201204250810-201204251322.

 

 

Retired
Posts: 19
Registered: ‎05-07-2012
My Device: none
My Carrier: none

Re: Import project as makefile project result in error

hey Meghasanghvi,

Are you able to import and build any of the BB10 sample apps https://developer.blackberry.com/cascades/sampleapps?

 

Super Contributor
Posts: 306
Registered: ‎08-10-2010
My Device: Not Specified

Re: Import project as makefile project result in error

Hi timto,

I am successfully import the cascade sample which is provided by blackberry. But when i tried to import exsitting c/c++ application which i download from the internet.

 

 

Thanks,

Megha

Super Contributor
Posts: 306
Registered: ‎08-10-2010
My Device: Not Specified

Re: Import project as makefile project result in error

Hi timto,

 

I attach the zip folder of application which i downloaded from the net.

 

Please help me on this regards,

Megha

Retired
Posts: 19
Registered: ‎05-07-2012
My Device: none
My Carrier: none

Re: Import project as makefile project result in error

Hey Megha,
I took a look at the code you posted and it seems to be a bunch of small sample programs, many of which have hard coded paths to other source files, as well as very old coding conventions. Is there something specific you want from these files, or are you just looking to import some code? If you are just attempting an exercise in importing code, you may want to consider a more recent sample. If there is a sample in the code you sent that you are interested in, you will have to prune the files so the project just contains the ones required since just about every file contains its own main function.
Tim