[fpc-pascal] No Hello World after updating Xcode to 2.1

Andrew Haines AndrewD207 at aol.com
Fri Sep 16 14:42:39 CEST 2005


Lance Boyle wrote:

> I've just installed Xcode 2.1 and can no longer compile FPC using  
> 2.0.0. For good measure, I re-installed FPC 2.0.0 and the Xcode  
> Integration Kit, including the Universal Interfaces. The latter acted  
> oddly with a crashing program which tried to open up a dialog box,  
> until I mounted the Universal Interfaces disk image first. (This  
> sounds familiar to me from an earlier upgrade but I can't remember  
> what to do to fix it, and the lists archives don't seem to want me to  
> see them.)
>
> In any event, I can't even compile a tool. Here's the result of  
> trying. What's up?
>
> Lance
>
>
>
> Native Build of Target "pascaltooldumpmeUnits" using Build  
> Configuration "Development"
>
>     setenv ZERO_LINK YES
>     /bin/sh -c "rm -f build/$(PRODUCT_NAME)"
> /bin/sh: line 1: PRODUCT_NAME: command not found
> rm: build/: is a directory
>
I've also run into this problem.

Here's how I fixed it although it may not be the correct answer.

open xcode and then open /Library/Application Support/Apple/Developer 
Tools/Project Templates/Pascal/Pascal Carbon 
Application/PascalCarbonApp.xcodeproj

In the treeview Groups & Files, select Targets and then <<ProjectName>> 
then in the "Action" combobox choose "Get Info"

Under the "Rules" tab change all vars that you can see from 
$(SOME_VAR_NAME) to $SOME_VAR_NAME also I had to change the output 
directories some:
Here's the lines I had to change for the output path

mkdir -p build/$BUILD_STYLE/$PRODUCT_NAME.app/Contents/MacOS
mv -f build/$PROJECT_NAME.build/$PRODUCT_NAME 
build/$BUILD_STYLE/$PRODUCT_NAME


And for my "with output files" section:

build/$PROJECT_NAME.build/$INPUT_FILE_BASE.o
build/$PROJECT_NAME.app/Contents/MacOS/$PRODUCT_NAME

and that's it.

You'll have to make the same changes to the "Pascal Tool" and "Pascal 
CGI" directories ProjectTemplate Files (*.xcodeproj)

Andrew

PS again there may be a better way to fix this but this is how I did it.




More information about the fpc-pascal mailing list