Index: /trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk	(revision 12432)
+++ /trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk	(revision 12433)
@@ -483,4 +483,25 @@
 
 
+# If there is the accessible plugin & we are using our home-made qt put it to
+# the output dir
+# @todo: fix this &| add it to the qt4 unit
+# note: it seems that $(PATH_SDK_QT4) isn't defined if this makefile is called
+# from the root VBox directory.
+if1of ($(KBUILD_TARGET),)
+#if1of ($(KBUILD_TARGET),darwin win)
+# Where are the plugins located
+PREFIX=lib
+SUFFIX=
+ifeq ($(KBUILD_TARGET),win)
+PREFIX=
+SUFFIX=4
+endif
+PATH_SDK_QT4_PLUGINS=$(PATH_SDK_QT4)/plugins
+# Generate the target dir
+BLDDIRS=$(PATH_BIN)/accessible/
+OTHERS += \
+      $(PATH_BIN)/accessible/$(PREFIX)qtaccessiblewidgets$(SUFFIX)$(SUFF_DLL)
+endif 
+      
 ifeq ($(KBUILD_TARGET),darwin)
 #
@@ -576,4 +597,14 @@
 include $(KBUILD_PATH)/subfooter.kmk
 
+$(PATH_BIN)/accessible/$(PREFIX)qtaccessiblewidgets$(SUFFIX)$(SUFF_DLL): $(PATH_SDK_QT4_PLUGINS)/accessible/$(PREFIX)qtaccessiblewidgets$(SUFFIX)$(SUFF_DLL) | $$(dir $$@)
+	$(INSTALL) -m 0644 $< ${@}
+ifeq ($(KBUILD_TARGET), darwin)
+	install_name_tool \
+       -change           QtCore.framework/Versions/4/QtCore \
+	   @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore \
+       -change           QtGui.framework/Versions/4/QtGui \
+	   @executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui \
+	${@}
+endif
 
 #
