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

Testing and Deployment

Reply
Regular Contributor
brad_qqq
Posts: 81
Registered: ‎03-27-2013
My Device: Dev Alpha C,Z10 LE
Accepted Solution

Can't compile OK after adding wrong external library

Hi all,

 

I have added flurry as external library in cascades.Then I find I added wrong libarary.

So I deleted it in bar-descriptor.xml.

But when I compiled my project.it always reported I have added wrong library.

The config.pri file contain wrong library path.

How can I delete an external library?

 

Thanks.

 

brad_qqq

Developer
BBSJdev
Posts: 6,116
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: Can't compile OK after adding wrong external library

You should be able to just remove the library from the project then clean and rebuild.


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Regular Contributor
brad_qqq
Posts: 81
Registered: ‎03-27-2013
My Device: Dev Alpha C,Z10 LE

Re: Can't compile OK after adding wrong external library

But how to remove the library from project?

I have deleted the sentence in bar-descriptor.xml.Clean and rebuild the project,still fail.

I have searched the documents,can't find how to delete library from project.

Developer
BBSJdev
Posts: 6,116
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: Can't compile OK after adding wrong external library

If you are sure you have removed all the references to it in your bar-descriptor file then the next place to look is your .cproject file and make sure all references are removed from there as well.

If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Regular Contributor
brad_qqq
Posts: 81
Registered: ‎03-27-2013
My Device: Dev Alpha C,Z10 LE

Re: Can't compile OK after adding wrong external library

Yes.I see the cproject file contain some old inofrmation.And it is difficult to modify it.

Little error may cause project error.

Developer
BBSJdev
Posts: 6,116
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: Can't compile OK after adding wrong external library

If you are worried probably the easiest way is to just rename your project folder on the HDD, delete the project from Momentics then create a new project and just copy across the source files and assets you need.

If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Regular Contributor
brad_qqq
Posts: 81
Registered: ‎03-27-2013
My Device: Dev Alpha C,Z10 LE

Re: Can't compile OK after adding wrong external library

[ Edited ]

Fortunately,I have added cproject file in my git repository.So I can go back to an older version.

I have reseted my git branch,back to last commit.Then replace the src and assets directory to new directory.

The problem solved.   It is complicated about adding library in Momnetics IDE.

Developer
greenmr
Posts: 912
Registered: ‎03-20-2013
My Device: Red LE Developer Z10

Re: Can't compile OK after adding wrong external library

[ Edited ]

For future reference, it is actually easy to remove a library from your .cproject file, but there will be one entry for that library for each build configuration. For other readers, note that this file is not visible in Momentics, you must look for it in your root project directory with a file navigator such as Windows Explorer. So, for instance, if you have not added any more custom build configurations then in a standard Momentics project you will have four build configurations:

 

  • Simulator-Debug
  • Device-Debug
  • Device-Profile
  • Device-Release

...and therefore you will have four entries in your .cproject file for that library. You must remove ALL of them if you really want to completely remove the library.


brad_qqq wrote:

Fortunately,I have added cproject file in my git repository.So I can go back to an older version.

I have reseted my git branch,back to last commit.Then replace the src and assets directory to new directory.

The problem solved.   It is complicated about adding library in Momnetics IDE.






Developer of Built for BlackBerry certified multiFEED RSS/Atom feed reader and aggregator.
Regular Contributor
brad_qqq
Posts: 81
Registered: ‎03-27-2013
My Device: Dev Alpha C,Z10 LE

Re: Can't compile OK after adding wrong external library

 But the cproject file only can be modified in source mode.

If it can provide more easy way to edit it,should be better.