vbuser1338
2006.05.24, 08:06 PM
I am building the CEGUI framework which includes the PCRE framework. I do not want to have to include the PCRE framework when I include the CEGUI framework. So I want to build the PCRE framework into the frameworks directory of the CEGUI framework. So I build the PCRE framework with the Installation Path set to @executable_path/Frameworks. I know for application bundles it should be @executable_path/../Frameworks, but is the way I am doing it correct for building into another framework? I then create a copy files build phase in the CEGUI framework to copy the PCRE framework into the frameworks directory of CEGUI. This compiles fine and copies it into the CEGUI framework. The problem is when I use the CEGUI framework in a Carbon bundle it complains to me and says:
ld: warning can't open dynamic library: @executable_path/Frameworks/PCRE.framework/Versions/A/PCRE (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
ld: Undefined symbols:
_pcre_compile referenced from CEGUI expected to be defined in @executable_path/Frameworks/PCRE.framework/Versions/A/PCRE
_pcre_exec referenced from CEGUI expected to be defined in @executable_path/Frameworks/PCRE.framework/Versions/A/PCRE
_pcre_free referenced from CEGUI expected to be defined in @executable_path/Frameworks/PCRE.framework/Versions/A/PCRE
Why is it not finding it within the CEGUI framework?
Thanks,
vbuser
ld: warning can't open dynamic library: @executable_path/Frameworks/PCRE.framework/Versions/A/PCRE (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
ld: Undefined symbols:
_pcre_compile referenced from CEGUI expected to be defined in @executable_path/Frameworks/PCRE.framework/Versions/A/PCRE
_pcre_exec referenced from CEGUI expected to be defined in @executable_path/Frameworks/PCRE.framework/Versions/A/PCRE
_pcre_free referenced from CEGUI expected to be defined in @executable_path/Frameworks/PCRE.framework/Versions/A/PCRE
Why is it not finding it within the CEGUI framework?
Thanks,
vbuser