Author Topic: Library tab : "Don't setup automatically" check-box is... automatically checked  (Read 3615 times)

Offline kubiack

  • Single posting newcomer
  • *
  • Posts: 4
Hello

I have a problem with my C::B.
One of my projects needs OpenCV library.
This library, correctly installed on my system, appears in the "Library" tab of the "Project properties" box (this lib is known by dpkg-config).
I selected it to be used by the linker, and unchecked the "Don't setup automatically" check-box in the same tab.
When I build my project, everything is fine.

The problem is : each time I load this project, the "Don't setup automatically" check-box is enabled.
So, it I try building, I have a bunch of "Undefined references" errors (library not passed to the linker).
To continue working, I have to uncheck this check-box again, and all is working fine after.

I use C::B build from SVN sources (rev 6281) on a Ubuntu 10.04 system.

First question : is this setting a global setting or a per-project setting ?
Does anyone have a similar problem (and maybe know a way to fix it) ?

All comment greatly appreciated !

Offline kubiack

  • Single posting newcomer
  • *
  • Posts: 4
OK, a little more information
I found the line "<lib_finder disable_auto="1">" in the .cbp file.
When I change it to "<lib_finder disable_auto="0">", the problem disappears.
After a few more tests, I observed the following behaviour :

- When creating a new project, the [ "Don't setup automatically" check-box ] is not checked => good
- If I activate the check-box and save the project, the "lib_finder disable_auto=" is correctly set to "1"
- If I reload the project, un-check the box and save, the "lib_finder disable_auto=" is not set to "0" but keep the old value.

It seems it is a glitch in the lib-finder plugin, which doesn't save the correct value when the box was checked and is not checked any more.

I searched in the bugtracker of C::B, but I didn't found any related bug.
Is there a specific bug-tracker for this plugin ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
No, there is a category for plugins (If I remember correctly)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]