Page 1 of 1

Open header file of self installed packages...

Posted: Sun Jan 10, 2010 7:49 pm
by jiapei100
Hi:

I'm trying to open OpenCV's header files, which are installed under /usr/local/include/opencv , but failed.

I succeeded in opening boost's and gsl's header files, which are automatically installed under /usr/include by system.

Better to have a look at the video: (around 13.3 mega)
http://www.visionopen.com/cantopenheader.ogv


So, CodeLite seems to ignore some "non-system" folders, right?
But, can we just set it up manually, to facilitate the head file searching?

Best Regards
JIA

Re: Open header file of self installed packages...

Posted: Sun Jan 10, 2010 10:48 pm
by eranif
To open include files, you need to add them to the code completion parser search paths.

Please read this article, it explains how to set the includes paths to the code completion parser in details:

http://codelite.org/LiteEditor/SettingUpCodeCompletion

Eran

Re: Open header file of self installed packages...

Posted: Mon Jan 11, 2010 12:20 pm
by jiapei100
How does codelite search for the code completion?

I found that if it is a "namespace", "struct", "class", then, it is possible for me to trace into the code.

However, if it is defined by something else. namely "predefinitions", say

Code: Select all

#define AAA BBB
then, AAA seems unable to be traced.

I recorded a new demo and hope you can understand what I'm talking about, still at the same link address:
http://www.visionopen.com/cantopenheader.ogv

By the way, which folder is for STL ? I can't even traced into the definition of "vector"?
Isn't it in the standard C++ folder? Say

Code: Select all

/usr/include/C++/4.4.1
??

It looks like default Ubuntu 9.10 doesn't afford C++ source code. right?
There seems to be nothing like g++-dev???


Best Regards
JIA Pei

Re: Open header file of self installed packages...

Posted: Mon Jan 11, 2010 5:12 pm
by eranif
Can u give me a link to your libraries + sample code so I could test it here to see what configuration you are missing?
Eran