U++ framework
Do not panic. Ask here before giving up.

Home » U++ TheIDE » U++ TheIDE: Packages » Subdirectories in packages
Subdirectories in packages [message #32686] Thu, 02 June 2011 07:37 Go to previous message
GaroRobe is currently offline  GaroRobe
Messages: 30
Registered: May 2011
Location: Khabarovsk, Russia
Member

Hello!

Right now I'm trying to use OpenCV 2.2. It's special feature is that all its headers are organized using subfolders (which is great BTW). Now I'm trying to make a package of these headers and meet few problems at once:

1. I can't import whole subtree of headers into package. More like I can, but all the hieracity "flattens" and, obviously, all cross-references between headers breaks.

2. If I just copy whole include dir into my package dir and add each file (tiresome, yep Sad) manually using "Insert package directory file(s)" (why can't I do it to dirs BTW?), it still doesn't solve my problem, because, somehow, all includes in these headers are invalid once again 'cause they do not include package name! Let me show you an example:


I made a package opencv22 and filled it with headers (with subdirs).

Then, I add "#include <opencv22/opencv2/opencv.hpp>" into my header. It worked.

But then I have a string "#include "opencv2/core/core_c.h"" in this file, which is invalid. The valid ones are "#include "core/core_c.h"" and "#include <opencv22/opencv2/core/core_c.h>".


I really wouldn't like to correct each and every #include directive in opencv code. Maybe there is a better way to fix it?
For clarity I attach package I made.
  • Attachment: opencv22.rar
    (Size: 328.94KB, Downloaded 489 times)
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Third-party lib packing HOWTO anybody?
Next Topic: Where I find other templates?
Goto Forum:
  


Current Time: Tue Apr 28 08:20:20 GMT+2 2026

Total time taken to generate the page: 0.00504 seconds