Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Packages » Subdirectories in packages
Re: Subdirectories in packages [message #32687 is a reply to message #32686] Thu, 02 June 2011 08:08 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hello GaroRobe!

GaroRobe wrote on Thu, 02 June 2011 07:37

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.

Well, I'm not sure why it is designed like this, but I don't like it as well Smile It would be rather easy to implement this functionality, but so far I was always too lazy Rolling Eyes I always ended up opening the *.upp file in text editor and copying in the list of all files, with the directories as necessary. In Linux, you can get such list easily using 'find' command line utility, on windows it might or might not be possible to get the file list using 'dir' or something (I don't remember any more... Smile ).

GaroRobe wrote on Thu, 02 June 2011 07:37

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!

...

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.

This can be solved at package level, by adding "internal include" in package organizer. Adding a name of directory will add it to include paths for the give package. The trick in this case is that you add just a single dot "." (meaning current directory). So it will search for the include files in your package dir, where the "core/core_c.h" file will be find Wink

I will add the a request for structured import into the task tracker, I'm pretty sure someone will implement it soon (might even do it myself Smile ).

Hope this helped,
Honza
 
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: Sun May 19 10:11:00 CEST 2024

Total time taken to generate the page: 0.00405 seconds