PDA

View Full Version : Fixing Include Paths


vbuser1338
2006.05.27, 11:02 PM
I have a problem again:( , CEGUI wants to include headers like #include "falagard/CEGUIFalWidgetLookManager.h" but frameworks like includes like #include <CEGUI/CEGUIFalWidgetLookManager.h>. Changing the source code to include properly is not really a good option. I tried adding the Header folder of the framework to the search paths but it does not find the header. The only way I can think of that might fix this is creating a copy build phase to copy them into the Header folder until the directory falagard. Is there a better way to get around this?

Thanks,
vbuser

MacFiend
2006.05.28, 02:20 AM
I think you can just add the header files to your project.

vbuser1338
2006.05.28, 09:48 AM
The only thing I don't like about that is that I have to have 2 copies of the headers. One in the framework and one set in the correct folders. I'll do this for now but I'll try adding build phases later and see if that works.

Thanks

MacFiend
2006.05.28, 07:09 PM
Hmm. If the headers are in the framework, why do you need a search path to them (unless the framework was setup improperly)? Sorry I can't help you further, I'm kind of a newb when it comes to this sort of thing.

vbuser1338
2006.05.28, 09:15 PM
The problem is that CEGUI is meant to be cross platform. Some files within the framework include files like #include "element/.." which is how it is set up on the hard drive. But when the files get copied into the framework they all get put into one header directory so the folders like element aren't kept. I was thinking I would have to copy the headers twice into the executable (once with the framework and once for the headers with the correct folders) but I only need to copy the framework into the executable and the headers in the correct folders are only neeeded for compiling.

Thanks for the help, I also don't know that much about this stuff (as you can tell;) )