DEPLOYMENT_LOCATION = YES
INSTALL_PATH = .
The path to the current build folder is /Users/dbolli/dev/Xcode src/g3d-src-6_07b3/cpp/source/demos/Collision_Demo/build and this produces the following link command
/usr/bin/g++-4.0 -o "/Users/dbolli/dev/Xcode src/g3d-src-6_07b3/cpp/source/demos/Collision_Demo/build/UninstalledProducts/Collision_Demo.app/Contents/MacOS/Collision_Demo" "-L/Users/dbolli/dev/Xcode src/g3d-src-6_07b3/cpp/source/demos/Collision_Demo/build" -L../../../G3DOSX/build -L/Users/dbolli/dev/Xcode -Lsrc/g3d-src-6_07b3/cpp/source/demos/Collision_Demo/../../../G3DOSX/build/Development "-F/Users/dbolli/dev/Xcode src/g3d-src-6_07b3/cpp/source/demos/Collision_Demo/build" -F/Users/dbolli/Library/Frameworks -F/Users/dbolli/Library/Frameworks -filelist "/Users/dbolli/dev/Xcode src/g3d-src-6_07b3/cpp/source/demos/Collision_Demo/build/Collision_Demo.build/Development/Collision_Demo.build/Objects-normal/ppc/Collision_Demo.LinkFileList" -lGLG3D -lG3D -framework SDL -framework Cocoa -framework OpenGL -arch ppc -prebind -lz
and during the build, the following link errors occur
/usr/bin/ld: warning -L: directory name (/Users/dbolli/dev/Xcode) does not exist
/usr/bin/ld: warning -L: directory name (src/g3d-src-6_07b3/cpp/source/demos/Collision_Demo/../../../G3DOSX/build/Development) does not exist
/usr/bin/ld: can't locate file for: -lGLG3D
collect2: ld returned 1 exit status
The gcc command includes the following options which are incorrect
-L/Users/dbolli/dev/Xcode -Lsrc/g3d-src-6_07b3/cpp/source/demos/Collision_Demo/../../../G3DOSX/build/Development "
This is specified correctly elsewhere in the link command
"-L/Users/dbolli/dev/Xcode src/g3d-src-6_07b3/cpp/source/demos/Collision_Demo/build"
The frustrating thing is that when I change the Project settings back to their defaults, the
same error occurs and the only fix is to restore a copy of the Xcode project file with
default build settings which compiles successfully.
Although this bug would not occur if there were no spaces in the folder names in the
path, I still feel that it is a bug which is worth reporting.
Any advice?
Thanks,
Derek Bolli, Head Hacker,
Bolli World HQ Computing Facility,
Hornsby NSW 2077