Ok! Unsuccessful Greetings!
Reminder:
I attempt running Codeblocks (from SVN) in a Macbook Pro with Leopard 1,5,6 installed.
Until now, I have managed to compile/building/installing under usr/local/ the CodeblocksSVN (see previous posts in this forum thread)
Codeblocks works but he is unable to respond to any event.
Today:
Now I try to create a MACOSX application bundle.
Obeying indications from:
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Mac_OS_X#Way_Two:_NeXT_.28bundle.29I built the tree folder:
CodeBlocksSVN.app
CodeBlocksSVN.app/Contents
CodeBlocksSVN.app/Contents/MacOS
CodeBlocksSVN.app/Contents/Resources
CodeBlocksSVN.app/Contents/MacOS/CodeBlocks
CodeBlocksSVN.app/Contents/Resources/share
CodeBlocksSVN.app/Contents/Resources/share/codeblocks
After that:
I copy the file Info.plist from SVN trunk to CodeBlocksSVN.app/Contents
I copy the file app.icns from SVN trunk to CodeBlocksSVN.app/Contents/Resources
In the next step I use the script suggested in
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Mac_OS_X#Way_Two:_NeXT_.28bundle.29cp /usr/local/bin/codeblocks ./CodeBlocksSVN.app/Contents/MacOS/CodeBlocks
cp /usr/local/bin/cb_share_config ./CodeBlocksSVN.app/Contents/MacOS
cp /usr/local/bin/cb_console_runner ./CodeBlocksSVN.app/Contents/MacOS
cp /usr/local/bin/codesnippets ./CodeBlocksSVN.app/Contents/MacOS
cp /usr/local/lib/libwxsmithlib.0.dylib ./CodeBlocksSVN.app/Contents/MacOS
cp /usr/local/lib/libwx_macu-2.8.0.dylib ./CodeBlocksSVN.app/Contents/MacOS
cp /usr/local/lib/libcodeblocks.0.dylib ./CodeBlocksSVN.app/Contents/MacOS
install_name_tool -id @executable_path/libcodeblocks.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/libcodeblocks.0.dylib
install_name_tool -id @executable_path/libwx_macu-2.8.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/libwx_macu-2.8.0.dylib
install_name_tool -id @executable_path/libwxsmithlib.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/libwxsmithlib.0.dylib
install_name_tool -change /usr/local/lib/libcodeblocks.0.dylib @executable_path/libcodeblocks.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/CodeBlocks
install_name_tool -change /usr/local/lib/libwx_macu-2.8.0.dylib @executable_path/libwx_macu-2.8.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/CodeBlocks
install_name_tool -change /usr/local/lib/libwxsmithlib.0.dylib @executable_path/libwxsmithlib.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/CodeBlocks
install_name_tool -change /usr/local/lib/libcodeblocks.0.dylib @executable_path/libcodeblocks.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/codesnippets
install_name_tool -change /usr/local/lib/libwx_macu-2.8.0.dylib @executable_path/libwx_macu-2.8.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/codesnippets
install_name_tool -change /usr/local/lib/libwxsmithlib.0.dylib @executable_path/libwxsmithlib.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/codesnippets
install_name_tool -change /usr/local/lib/libcodeblocks.0.dylib @executable_path/libcodeblocks.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/cb_share_config
install_name_tool -change /usr/local/lib/libwx_macu-2.8.0.dylib @executable_path/libwx_macu-2.8.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/cb_share_config
install_name_tool -change /usr/local/lib/libwxsmithlib.0.dylib @executable_path/libwxsmithlib.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/cb_share_config
install_name_tool -change /usr/local/lib/libcodeblocks.0.dylib @executable_path/libcodeblocks.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/cb_console_runner
install_name_tool -change /usr/local/lib/libwx_macu-2.8.0.dylib @executable_path/libwx_macu-2.8.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/cb_console_runner
install_name_tool -change /usr/local/lib/libwxsmithlib.0.dylib @executable_path/libwxsmithlib.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/cb_console_runner
install_name_tool -change /usr/local/lib/libwx_macu-2.8.0.dylib @executable_path/libwx_macu-2.8.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/libcodeblocks.0.dylib
install_name_tool -change /usr/local/lib/libwxsmithlib.0.dylib @executable_path/libwxsmithlib.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/libcodeblocks.0.dylib
install_name_tool -change /usr/local/lib/libcodeblocks.0.dylib @executable_path/libcodeblocks.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/libwxsmithlib.0.dylib
install_name_tool -change /usr/local/lib/libwx_macu-2.8.0.dylib @executable_path/libwx_macu-2.8.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/libwxsmithlib.0.dylib
cp -R /usr/local/share/codeblocks/ ./CodeBlocksSVN.app/Contents/Resources/share/codeblocks
for dotso in ./CodeBlocksSVN.app/Contents/Resources/share/codeblocks/plugins/*.so
do
#echo $dotso
# install_name_tool -id $dotso ./libcodeblocks.0.dylib CodeBlocks
install_name_tool -change /usr/local/lib/libcodeblocks.0.dylib @executable_path/libcodeblocks.0.dylib $dotso
install_name_tool -change /usr/local/lib/libwx_macu-2.8.0.dylib @executable_path/libwx_macu-2.8.0.dylib $dotso
install_name_tool -change /usr/local/lib/libwxsmithlib.0.dylib @executable_path/libwxsmithlib.0.dylib $dotso
done
I suspect that the script is not updated. That way I got the following errors:
cp: /usr/local/bin/codesnippets: No such file or directory
cp: /usr/local/lib/libwxsmithlib.0.dylib: No such file or directory
cp: /usr/local/lib/libwx_macu-2.8.0.dylib: No such file or directory
install_name_tool: can't open file: ./CodeBlocksSVN.app/Contents/MacOS/libwx_macu-2.8.0.dylib (No such file or directory)
install_name_tool: can't open file: ./CodeBlocksSVN.app/Contents/MacOS/libwxsmithlib.0.dylib (No such file or directory)
install_name_tool: can't map file: ./CodeBlocksSVN.app/Contents/MacOS/CodeBlocks (Invalid argument)
install_name_tool: can't map file: ./CodeBlocksSVN.app/Contents/MacOS/CodeBlocks (Invalid argument)
install_name_tool: can't map file: ./CodeBlocksSVN.app/Contents/MacOS/CodeBlocks (Invalid argument)
install_name_tool: can't open file: ./CodeBlocksSVN.app/Contents/MacOS/codesnippets (No such file or directory)
install_name_tool: can't open file: ./CodeBlocksSVN.app/Contents/MacOS/codesnippets (No such file or directory)
install_name_tool: can't open file: ./CodeBlocksSVN.app/Contents/MacOS/codesnippets (No such file or directory)
install_name_tool: can't open file: ./CodeBlocksSVN.app/Contents/MacOS/libwxsmithlib.0.dylib (No such file or directory)
install_name_tool: can't open file: ./CodeBlocksSVN.app/Contents/MacOS/libwxsmithlib.0.dylib (No such file or directory)
The "can't map file" erros can be circumvented with the change:
install_name_tool -change /usr/local/lib/libcodeblocks.0.dylib @executable_path/libcodeblocks.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/CodeBlocks
/codeblocksinstall_name_tool -change /usr/local/lib/libwx_macu-2.8.0.dylib @executable_path/libwx_macu-2.8.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/CodeBlocks
/codeblocksinstall_name_tool -change /usr/local/lib/libwxsmithlib.0.dylib @executable_path/libwxsmithlib.0.dylib ./CodeBlocksSVN.app/Contents/MacOS/CodeBlocks
/codeblocksIn this case, When I run the script I get:
cp: /usr/local/bin/codesnippets: No such file or directory
cp: /usr/local/lib/libwxsmithlib.0.dylib: No such file or directory
cp: /usr/local/lib/libwx_macu-2.8.0.dylib: No such file or directory
install_name_tool: can't open file: ./CodeBlocksSVN.app/Contents/MacOS/libwx_macu-2.8.0.dylib (No such file or directory)
install_name_tool: can't open file: ./CodeBlocksSVN.app/Contents/MacOS/libwxsmithlib.0.dylib (No such file or directory)
install_name_tool: can't open file: ./CodeBlocksSVN.app/Contents/MacOS/codesnippets (No such file or directory)
install_name_tool: can't open file: ./CodeBlocksSVN.app/Contents/MacOS/codesnippets (No such file or directory)
install_name_tool: can't open file: ./CodeBlocksSVN.app/Contents/MacOS/codesnippets (No such file or directory)
install_name_tool: can't open file: ./CodeBlocksSVN.app/Contents/MacOS/libwxsmithlib.0.dylib (No such file or directory)
install_name_tool: can't open file: ./CodeBlocksSVN.app/Contents/MacOS/libwxsmithlib.0.dylib (No such file or directory)
I think the script is too old. The libwx_macu-2.8.0.dylib, libwxsmithlib.0, codesnippets files must be "anachronic" references. True? I have searched similar files but I have not found good candidates.
Which should new files be? (Especifically for libwx_macu-2.8.0.dylib)
At last, I executed application from Finder.
The Codeblocks icon jumped four or five times in the dashboard before vanishing.
Next nothing happened.
The Consola.app says:
[0x0-0x20020].org.codeblocks.app[489] /System/Library/Frameworks/Carbon.Framework/Versions/A/Support/LaunchCFMApp [489] Launch Failed with Error Code -2857
(cfragCFragRsrcErr) for application /Users/baluarte/CodeBlocksSVN.app/Contents/MacOS/CodeBlocks
com.apple.launchd[261] ([0x0-0x20020].org.codeblocks.app[489]) Exited with exit code:215
What must I do now?
Thanks in advance!
Baluarte
P.S: Sorry for my horrible English