Opened 19 years ago

Closed 19 years ago

#3844 closed defect (fixed)

libsdl - minor problems with Xcode build

Reported by: izmir@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: rshaw@…
Port:

Description

PhaseScriptExecution <Execution>/opt/local/var/db/dports/build/ file._Users_me_darwinports_dports_devel_libsdl/work/SDL-1.2.8/Xcode/SDL/build/SDL.build/ Deployment/Framework.build/BPTag005-script.sh

echo "=== Script ===" cat /opt/local/var/db/dports/build/file._Users_me_darwinports_dports_devel_libsdl/work/

SDL-1.2.8/Xcode/SDL/build/SDL.build/Deployment/Framework.build/BPTag005-script.sh

echo "--- Output ---" /opt/local/var/db/dports/build/file._Users_me_darwinports_dports_devel_libsdl/work/SDL-1.2.8/

Xcode/SDL/build/SDL.build/Deployment/Framework.build/BPTag005-script.sh

_result=$? echo "=== Exit code: ${_result} ===" exit ${_result}

Script

#!/bin/sh # make sure only public API's are exported # nmedit -s ../../src/main/macosx/SDL.x build/SDL.framework/Versions/Current/SDL # make frameworks directory if it doesn't already exist mkdir -p ./build/Frameworks # delete the old framework rm -rf ./build/Frameworks/SDL.framework # copy framework to its home /Developer/Tools/CpMac -r build/SDL.framework ./build/Frameworks/ # precompile header for speedier compiles /usr/bin/cc -precomp ./build/Frameworks/SDL.framework/Headers/SDL.h -o ./build/Frameworks/ SDL.framework/Headers/SDL.p --- Output --- failed to resolve one of the sources (-43) powerpc-apple-darwin8-gcc-4.0.0: ./build/Frameworks/SDL.framework/Headers/SDL.h: No such file or directory powerpc-apple-darwin8-gcc-4.0.0: no input files

Exit code: 1

...failed PhaseScriptExecution <Execution>/opt/local/var/db/dports/build/ file._Users_me_darwinports_dports_devel_libsdl/work/SDL-1.2.8/Xcode/SDL/build/SDL.build/ Deployment/Framework.build/BPTag005-script.sh ... BUILD FAILED

Warning: the following items did not execute (for libsdl): com.apple.pkg com.apple.destroot com.apple.build


Its just a problem with the paths in the execution shell scripts in:

work/SDL-1.2.8/Xcode/SDL/SDL.pbproj/project.pbxproj

...(after playing with ../.. paths...) I hardcoded "/Developer/Tools/CpMac -r build/SDL.framework ./ build/Frameworks/" to /opt/local....


Then the paths were wrong in the portfile:

BUILDING AGGREGATE TARGET All WITH CONFIGURATION Deployment

BUILD SUCCEEDED Error: Target com.apple.build returned: no files matched glob pattern "build/*.app/Contents/MacOS/*"

so in the post-build:

foreach exe [glob build/*.app/Contents/MacOS/*] -> foreach exe [glob build/Deployment/*.app/Contents/MacOS/*]

and also in the post-destroot:

cd "${worksrcpath}/Xcode/SDLTest/build/Deployment"


maybe its xcode 2.1's "Deployment"/"Deployment" folders. I know the Targets existed before, but I can't remember about the folders themselves. Tested with mp4player & gmp4player to play a video - tested fine.

Change History (2)

comment:1 Changed 19 years ago by ben@…

This bug has been fixed

comment:2 Changed 19 years ago by blb@…

Resolution: fixed
Status: newclosed

Resolving as requested.

Note: See TracTickets for help on using tickets.