tools/XBMCTex/XBMCTex -input \"skin/PM3.HD/media\" -output \"skin/PM3.HD/media/Textures.xpr\"
_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
As my Mac doesn't generally have a keyboard or mouse attached, I ran into this problem whenever I hadn't used VNC to login to the Mac under same usercode as the the one I access via SSH. I though the following update to README.osx may be helpful;
Again, feel free to edit or totally ignore as you see fit. Give me a shout if I've failed to adequately describe what I'm on about!