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
Developer
javoid
Posts: 189
Registered: ‎11-24-2012
My Device: Dev Alpha B, Bold 9700
My Carrier: NA

Warnings in Momentics for all apps

I always get the following warnings with projects I create in Momentics:

Source file of asset "MyApp.so" does not exist

 also

Source file of asset "MyApp" does not exist

 Finally, in the bar-descriptor.xml file:

<asset path="arm/o.le-v7-g/MyApp" entry="true" type="Qnx/Elf">MyApp</asset>
//...
<asset path="arm/o.le-v7-g/MyApp.so" entry="true" type="Qnx/Elf">MyApp</asset>
//...
<asset path="arm-p/o.le-v7-g/MyApp" entry="true" type="Qnx/Elf">MyApp</asset>
//...
<asset path="x86/o-g/MyApp" entry="true" type="Qnx/Elf">MyApp</asset>

Is this normal?

 

Even after I create a release bar file, I still get the warning:

Source file of asset "MyApp" does not exist

However, the bar file succeeds in creation.

Please use plain text.
Developer
RileyGB
Posts: 282
Registered: ‎08-06-2010
My Device: Z10

Re: Warnings in Momentics for all apps

A few suggestions:

 

1. Clean and re-build your project 

2. Check your .pro TARGET

3. Check your MakeFile QMAKE_TARGET

4. If all else fails, search your project for MyApp and change all the values to your app name (you probably want to save your project before you do this).

 

 

 

 

 



Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples
Please use plain text.
Developer
javoid
Posts: 189
Registered: ‎11-24-2012
My Device: Dev Alpha B, Bold 9700
My Carrier: NA

Re: Warnings in Momentics for all apps

Clean and re-build your project 

Done.

 

Check your .pro TARGET

Is this in the MyApp.pro file?  I see:

APP_NAME = MyApp

 

 

 Check your MakeFile QMAKE_TARGET

I see:

QMAKE_TARGET = MyApp
/...

 

When I search for "MyApp" I get a whole bunch of hits.

 

I do notice an error:

#error "The header file 'MyApp.hpp' doesn't include <QObject>."

 However, in the top of that file I do have #include <QObject>

 

 

Does any of your builds have the warnings?  Ever?  Maybe its my IDE?

Please use plain text.
Developer
zezke
Posts: 1,004
Registered: ‎12-12-2010
My Device: Z10 (red Limited Edition)
My Carrier: Mobile Vikings

Re: Warnings in Momentics for all apps

I always get two asset warnings. I suspect it has something to do with me only building for the device (not the simulator). I choose to ignore and got my BB10 app already in BlackBerry World.

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
Please use plain text.
Developer
javoid
Posts: 189
Registered: ‎11-24-2012
My Device: Dev Alpha B, Bold 9700
My Carrier: NA

Re: Warnings in Momentics for all apps

Thank you everyone, at least I don't have to worry about the apps being rejected for the warnings tomorrow.

Please use plain text.
Developer
zezke
Posts: 1,004
Registered: ‎12-12-2010
My Device: Z10 (red Limited Edition)
My Carrier: Mobile Vikings

Re: Warnings in Momentics for all apps

If you want to be a 100% sure, you can always use the blackberry-deploy command to deploy your signed bar files to your test device.

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
Please use plain text.
Developer
RileyGB
Posts: 282
Registered: ‎08-06-2010
My Device: Z10

Re: Warnings in Momentics for all apps

I've experienced this before when using a base app(ex: a sample app) and then tranferring it to a different name. I found that replacing all instance of MyApp did fix the warnings. I doubt that it's an IDE issue.

 

Out of curiousity, is your .bar file called MyApp.bar?



Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples
Please use plain text.
Developer
javoid
Posts: 189
Registered: ‎11-24-2012
My Device: Dev Alpha B, Bold 9700
My Carrier: NA

Re: Warnings in Momentics for all apps

and then tranferring it to a different nam

 I renamed the app name in the bar descriptor to "My App" (adding a space).

 

is your .bar file called MyApp.bar?

Yes

Please use plain text.
New Developer
BrianMcPeek
Posts: 74
Registered: ‎02-09-2011
My Device: Torch 9850/64GB PlayBook
My Carrier: Verizon

Re: Warnings in Momentics for all apps

I was getting the same errors. I actually couldn't get Momentics to create a release build because it couldn't find myApp.so. Here's how I fixed it. In the arm folder there is a file called Makefile.Release. I opened that and noticed that there's a line pertaining to the TARGET. It looks like this: TARGET        = o.le-v7/MyApp. To build a release version it needed asset MyApp.so so I just changed this line to TARGET        = o.le-v7/MyApp.so. It gets rid of the warning and allows Momentics to export a signed release build. Lemme know if this helps. Also, the other warning would go away too if you built the app using the other build commands i.e. device-profile, simulator-debug etc. so they aren't really important when submitting it for approval.

Please use plain text.
Developer
javoid
Posts: 189
Registered: ‎11-24-2012
My Device: Dev Alpha B, Bold 9700
My Carrier: NA

Re: Warnings in Momentics for all apps

The IDE let me build a release build, did it give you any specific warnings?

Please use plain text.