Hi,
I've compiled simple application using Qt under osx 10.6.4. It works without any problems. Now I want to make self contained bundle. Here are my steps:
I create directory called Framework in main.app/Contents/
I copy QtOpenGL, QtGui and QtCore to this directory.
Now its time for install_name_tool

install_name_tool -id @executable_path/../Framework/QtOpenGL main.app/Contents/Frameworks/QtOpenGL
install_name_tool -id @executable_path/../Framework/QtGui main.app/Contents/Frameworks/QtGui
install_name_tool -id @executable_path/../Framework/QtCore main.app/Contents/Frameworks/QtCore
install_name_tool -change QtOpenGL.framework/Versions/4/QtOpenGL @executable_path/../Framework/QtOpenGL main.app/Contents/MacOS/main
install_name_tool -change QtGui.framework/Versions/4/QtGui @executable_path/../Framework/QtGui main.app/Contents/MacOS/main
install_name_tool -change QtCore.framework/Versions/4/QtCore @executable_path/../Framework/QtCore main.app/Contents/MacOS/main
install_name_tool -change QtGui.framework/Versions/4/QtGui @executable_path/../Framework/QtGui main.app/Contents/Framework/QtOpenGL
install_name_tool -change QtCore.framework/Versions/4/QtCore @executable_path/../Framework/QtCore main.app/Contents/Framework/QtOpenGL
install_name_tool -change QtCore.framework/Versions/4/QtCore @executable_path/../Framework/QtCore main.app/Contents/Framework/QtGui

When application is prepared like this it crashes immediately after executing. Here's part of report:

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Application Specific Information:
abort() called

Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x00007fff87fc13d6 __kill + 10
1 libSystem.B.dylib 0x00007fff88061972 abort + 83
2 QtCore 0x0000000101376455
qt_message_output(QtMsgType, char const*) + 117
3 QtCore 0x0000000101376637
qt_message(QtMsgType, char const*, __va_list_tag*) + 183
4 QtCore 0x00000001013767fa qFatal(char const*,
...) + 170
5 QtGui 0x000000010076f339
qt_init(QApplicationPrivate*, int) + 2265
6 QtGui 0x00000001007da18d
QApplicationPrivate::construct() + 77
7 QtGui 0x00000001007da606
QApplication::QApplication(int&, char**, int) + 102
8 com.yourcompany.main 0x0000000100004a2b main + 59
9 com.yourcompany.main 0x0000000100004846 _start + 224
10 com.yourcompany.main 0x0000000100004765 start + 33

Thread 1: Dispatch queue: com.apple.libdispatch-manager
0 libSystem.B.dylib 0x00007fff87f8c08a kevent + 10
1 libSystem.B.dylib 0x00007fff87f8df5d _dispatch_mgr_invoke
+ 154
2 libSystem.B.dylib 0x00007fff87f8dc34
_dispatch_queue_invoke + 185
3 libSystem.B.dylib 0x00007fff87f8d75e
_dispatch_worker_thread2 + 252
4 libSystem.B.dylib 0x00007fff87f8d088 _pthread_wqthread + 353
5 libSystem.B.dylib 0x00007fff87f8cf25 start_wqthread + 13

Thread 2:
0 libSystem.B.dylib 0x00007fff87f8ceaa __workq_kernreturn + 10
1 libSystem.B.dylib 0x00007fff87f8d2bc _pthread_wqthread + 917
2 libSystem.B.dylib 0x00007fff87f8cf25 start_wqthread + 13

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx:
0x00007fff5fbff408 rdx: 0x0000000000000000
rdi: 0x000000000000e249 rsi: 0x0000000000000006 rbp:
0x00007fff5fbff420 rsp: 0x00007fff5fbff408
r8: 0x00007fff70f64a40 r9: 0x0000000103321fc0 r10:
0x00007fff87fbd412 r11: 0x0000000000000202
r12: 0x0000000000000003 r13: 0x00007fff5fbff4d0 r14:
0x0000000000000003 r15: 0x00007fff5fbff670
rip: 0x00007fff87fc13d6 rfl: 0x0000000000000202 cr2: 0x00007fff70b879b9

Why is this happening? How can I fix it?