[missing-sync-palmos-dev-talk] Compiling the Sample Memo Conduit

Scott Gruby sgruby at markspace.com
Mon Dec 27 07:44:08 PST 2004


You can check GladPortDefs.h to see if BOOL is commented out. If it is,  
just remove the script build phase and move on. If it isn't, make the  
change yourself and remove the script build phase.

I've actually updated the shell script build phase to be:

if ! test -f "/Applications/Palm OS CDK 4.03/Headers/GladPortDefs.h.old"
then
	cp -n "/Applications/Palm OS CDK 4.03/Headers/GladPortDefs.h"  
"/Applications/Palm OS CDK 4.03/Headers/GladPortDefs.h.old"
	awk '{ gsub("\r", "\n"); print $0;}' "/Applications/Palm OS CDK  
4.03/Headers/GladPortDefs.h" | awk '!(/Mark/){gsub(/typedef unsigned  
char BOOL;/,"//typedef unsigned char BOOL; // Commented out by  
Mark/Space");}{print}' > /tmp/GladPortDefs.h
mv -f /tmp/GladPortDefs.h "/Applications/Palm OS CDK  
4.03/Headers/GladPortDefs.h"
fi

So, since you have the .old file, then it won't even attempt the move.

On Dec 27, 2004, at 3:38 AM, Rich Burgis wrote:

> Thank you. You can't imagine how much time I wasted searching the  
> Console and other sources of logs.
>
> However, this is the message I'm seeing
>
> mv: rename /tmp/GladPortDefs.h to /Applications/Palm OS CDK  
> 4.03/Headers/GladPortDefs.h: Input/output error
>
> Both files exist in the appropriate locations. Both appear to have  
> adequate permissions. (In fact I tried performing the mv as root and  
> got the same result.)
>
> My /Applications/Palm OS CDK 4.03/Headers directory looks like this:
>
> ExpansionMgr.h
> GladPortDefs.h
> GladPortDefs.h.old
> hslog.h
> Include
> Macintosh
> Src
> SYNCMGR.H
> UserMgr.h
> VFSErr.h
> VFSMgr.h
>
> ls shows:
>
> -rw-r--r--  1 richburg  staff  5188  8 May  2002 /Applications/Palm OS  
> CDK 4.03/Headers/GladPortDefs.h
>
> and
>
> -rw-r--r--  1 richburg  wheel  5222 27 Dec 05:39 /tmp/GladPortDefs.h
>
> Any other suggestions?
>
> Thank you again.
>
> Rich
>
> On Dec 27, 2004, at 12:40 AM, Scott Gruby wrote:
>
>>
>> On Dec 26, 2004, at 7:05 PM, Rich Burgis wrote:
>>
>>> I have downloaded the conduit samples from the Mark/Space website  
>>> and attempted to compile the Cocoa Memo Conduit.
>>>
>>> When I do so XCode (1.5) says that the compile failed:
>>>
>>>    Running custom shell script (1 error)
>>>       Build failed (see build log for details)
>>>
>>> I can't find the build log and have no idea what is happening. I  
>>> have not altered the project or any of the files.
>>>
>>> Does anyone have any ideas why this failed, or failing that where  
>>> the custom build script or the build log can be found?
>>>
>>
>> Most likely you don't have the Palm OS CDK 4.03 installed. It must be  
>> installed in the default location (/Applications) in order for the  
>> conduit to compile. Second, I recommend you take a look at the XCode  
>> documentation to understand the build log  
>> <http://developer.apple.com/documentation/DeveloperTools/Conceptual/ 
>> XcodeWorkflow/wf_organizing/chapter_3_section_4.html>. The build log  
>> will tell you exactly why it doesn't compile. (If the CDK is in a  
>> different place, you'll need to edit the shell script to point to  
>> that location; we have a shell script that modifies GladPortDefs.h so  
>> that it comments out the definition of BOOL as it conflicts with the  
>> definition in Cocoa.)
>>


--
Scott Gruby
Lead Engineer, Missing Sync for Palm OS
Mark/Space, Inc.
<http://www.markspace.com/>

Please contact support at markspace.com for assistance with Mark/Space  
products.



More information about the missing-sync-palmos-dev-talk mailing list