2.10.1 Searching for libraries

CodeBlocks

[Contents] CodeBlocks Manual   [Search] Search

[Table of contents]

2.10.1 Searching for libraries


Searching for libraries is available under ’Plugins’ /’Library finder’ menu. It’s purpose is to detect libraries installed on your system and store the results inside LibFinder’s database (note that these results are not written into CodeBlocks project files). Searching starts with dialogue where you can provide set of directories with installed libraries. LibFinder will scan them recursively so if you’re not sure you may select some generic directories. You may even enter whole disks - in such case searching process will take more time but it may detect more libraries (see Figure 2.10).

[Figure # 37]
Figure 2.10: List of directories

When LibFinder scans for libraries, it uses special rules to detect presence of library. Each set of rules is located in xml file. Currently LibFinder can search for wxWidgets 2.6/2.8, CodeBlocks SDK and GLFW - the list will be extended in future.
Note:
To get more details on how to add library support into LibFinder, read src/plugins/contrib/lib_finder/lib_finder/readme.txt in CodeBlocks sources.
After completing the scan, LibFinder shows the results (see Figure 2.11).

[Figure # 38]
Figure 2.11: Search results

In the list you check libraries which should be stored into LibFinder’s database. Note that each library may have more than one valid configuration and settings added ealier are more likely to be used while building projects.
Below the list you can select what to do with results of previous scans:
Do not clear previous results
This option works like an update to existing results - it adds new ones and updates those which already exist. This option is not recommended.
Second option (Clear previous results for selected libraries)
will clear all results for libraries which are selected before adding new results. This is the recommended option.
Clear all previous library settings
when you select this option, LibFinder’s database will be cleared before adding new results. It’s useful when you want to clean some invalid LibFinder’s database.
Another option in this dialogue is ’Set up Global Variables’ . When you check this option, LibFinder will try automatically configure Global Variables which are also used to help dealing with libraries.
If you have pkg-config installed on your system (it’s installed automatically on most linux versions) LibFinder will also provide libraries from this tool. There is no need to perform scanning for them - they are automatically loaded when CodeBlocks starts.


[Previous] 2.10  LibFinder
[Next] 2.10.2  Including libraries in projects

Created: 2010/25/05 11:52   Updated: 2010/25/05 11:52
Author: HighTec EDV-Systeme GmbH
Copyright © 2010 HighTec EDV-Systeme GmbH