hg: macosx-port/macosx-port/jdk: added jobjc to build

Michael Hall mik3hall at gmail.com
Thu Mar 31 03:51:58 PDT 2011


On Mar 25, 2011, at 3:43 PM, Stephen Bannasch wrote:

>  updated to xcode 3.2.6 and the build gets further but has an error while building jobjc because the build script
> 
> The console trace below shows the build script failing trying to process jawt_md.h and jvmdi.h
> 
> Both appear to exist (via sym links):

I'm still not entirely sure why the symlinks might be messed up.
Looking at the wiki there appears to be some mention in the trailing comments of messed up includes if you install XCode after the last Java update?
Those comments additionally appeared to suggest a env variable might be used to set a -I to the XCode sdk headers to work around this. 
I looked at making a quick change to get this to work for jobjc, but it didn't work.
It turns out the StructOffsetResolver class is generating .mm files with absolute path import directives.
Forcing this, coupled with the bad symlinks, breaks the build.
I made somewhat more involved changes to get rid of the absolute path imports.
I am now past that although still not building because I'm running 32 bit and need to keep adding tweaks to allow that mode farther on in the build.
I am attempting to attach a patch file with the changed StructOffsetResolver changes if of any interest to anyone. I generated the changeset from the jobjc directory because the project root directory appeared to pick up unrelated changes on a 'hg status' and not the changes I wanted.



More information about the macosx-port-dev mailing list