Hi,
I'm trying to set up Code::Blocks on my Mac for school use. I've been trying to run Hello World with no success. I have read that Macs have an issue dealing with spaces in file names so I have already avoided that. I also downloaded Xcode and the command line tools that are apparently required for Code::Blocks to work properly. Lastly, this is the current code I'm using for my "Terminal to launch programs":
osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script "exe=\'$SCRIPT\'; cd \\"${exe%/*/*/*}\\"; clear; \\"${exe% }\\"; echo - e \'Press any key to continue...\'; read -n 1; osascript -e \'tell app \\"CodeBlocks\\" to activate\'; exit"' -e 'end tell'
This is what is being displayed in the terminal when I hit Build & Run for "Hello World":
Last login: Wed Feb 19 12:51:17 on ttys001
exe='/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/grantshipp/Documents/School/compsci/helloworld/bin/Debug/helloworld '; cd "${exe%/*/*/*}"; clear; "${exe% }"; echo - e 'Press any key to continue...'; read -n 1; osascript -e 'tell app "CodeBlocks" to activate'; exit
grants-mbp:~ grantshipp$ exe='/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/grantshipp/Documents/School/compsci/helloworld/bin/Debug/helloworld '; cd "${exe%/*/*/*}"; clear; "${exe% }"; echo - e 'Press any key to continue...'; read -n 1; osascript -e 'tell app "CodeBlocks" to activate'; exit
-bash: cd: /Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/grantshipp/Documents/School/compsci/helloworld: No such file or directory
-bash: /Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/grantshipp/Documents/School/compsci/helloworld/bin/Debug/helloworld: No such file or directory
- e Press any key to continue...
If anyone could help me out it'd be greatly appreciated.