2014年11月12日 星期三

QNX graphic path on vmware

整理筆記一下....
QNX® Software Development Platform 6.6 Graphics Patch [Patch ID 3875]

download下來後在pc上
參考
在command line執行下面bat設定環境變數
base_directory\qnx660-env.bat
再apply patch
applypatch -F download_path/patch-660-3875-660-Graphics-GA.tar

vmware上設置

1‧設定環境變數
  export GRAPHICS_ROOT=/usr/lib/graphics/vmware/
  export LD_LIBRARY_PATH=/usr/lib:/lib:/lib/dll:$GRAPHICS_ROOT:$LD_LIBRARY_PATH

2.copy patch的file到vmware。
  我先mount到pc下的share,並把相關的patch檔copy過去。

cp -f etc/system/config/scaling.conf /etc/system/config/scaling.conf
cp -f usr/share/gles/textures/brick_wall.tga /usr/share/gles/textures/brick_wall.tga
cp -f usr/share/gles/textures/bubble.png /usr/share/gles/textures/bubble.png
cp -f usr/share/images/wallpaper.jpg /usr/share/images/wallpaper.jpg
cp -f x86/bin/screeninfo /bin/screeninfo
cp -f x86/lib/dll/libwfdcfg-sample.so /lib/dll/libwfdcfg-sample.so
cp -f x86/lib/dll/screen-gles1.so /lib/dll/screen-gles1.so
cp -f x86/lib/dll/screen-gles2blt.so /lib/dll/screen-gles2blt.so
cp -f x86/lib/dll/screen-gles2.so /lib/dll/screen-gles2.so
cp -f x86/lib/dll/screen-sw.so /lib/dll/screen-sw.so
cp -f x86/lib/libgestures.so.1 /lib/libgestures.so.1
cp -f x86/lib/libinputevents.so.1 /lib/libinputevents.so.1
cp -f x86/lib/libkalman.so.1 /lib/libkalman.so.1
cp -f x86/lib/libmtouch-calib.so.1 /lib/libmtouch-calib.so.1
cp -f x86/lib/libmtouch-devi.so.1 /lib/libmtouch-devi.so.1
cp -f x86/lib/libmtouch-fake.so.1 /lib/libmtouch-fake.so.1
cp -f x86/lib/libmtouch-inject.so.1 /lib/libmtouch-inject.so.1
cp -f x86/sbin/gpu_drv /sbin/gpu_drv
cp -f x86/sbin/screen /sbin/screen
cp -f x86/usr/bin/calib-touch /usr/bin/calib-touch
cp -f x86/usr/bin/display_image /usr/bin/display_image
cp -f x86/usr/bin/egl-configs /usr/bin/egl-configs
cp -f x86/usr/bin/events /usr/bin/events
cp -f x86/usr/bin/font-freetype /usr/bin/font-freetype
cp -f x86/usr/bin/gles1-gears /usr/bin/gles1-gears
cp -f x86/usr/bin/gles2-gears /usr/bin/gles2-gears
cp -f x86/usr/bin/gles2-maze /usr/bin/gles2-maze
cp -f x86/usr/bin/gpudbg /usr/bin/gpudbg
cp -f x86/usr/bin/print-gestures /usr/bin/print-gestures
cp -f x86/usr/bin/screenshot /usr/bin/screenshot
cp -f x86/usr/bin/sw-vsync /usr/bin/sw-vsync
cp -f x86/usr/bin/vkey /usr/bin/vkey
cp -f x86/usr/bin/yuv-test /usr/bin/yuv-test
cp -f x86/usr/lib/graphics/vmware/graphics.conf /usr/lib/graphics/vmware/graphics.conf
cp -f x86/usr/lib/graphics/vmware/libAtcDecompressor.so /usr/lib/graphics/vmware/libAtcDecompressor.so
cp -f x86/usr/lib/graphics/vmware/libAtcDecompressor.so.1 /usr/lib/graphics/vmware/libAtcDecompressor.so.1
cp -f x86/usr/lib/graphics/vmware/libegl_gallium.so /usr/lib/graphics/vmware/libegl_gallium.so
cp -f x86/usr/lib/graphics/vmware/libHwEGL.so /usr/lib/graphics/vmware/libHwEGL.so
cp -f x86/usr/lib/graphics/vmware/libHwglapi.so /usr/lib/graphics/vmware/libHwglapi.so
cp -f x86/usr/lib/graphics/vmware/libHwGLESv1_CM_g.so /usr/lib/graphics/vmware/libHwGLESv1_CM_g.so
cp -f x86/usr/lib/graphics/vmware/libHwGLESv1_CM.so /usr/lib/graphics/vmware/libHwGLESv1_CM.so
cp -f x86/usr/lib/graphics/vmware/libHwGLESv2.so /usr/lib/graphics/vmware/libHwGLESv2.so
cp -f x86/usr/lib/graphics/vmware/libHwGPU.so /usr/lib/graphics/vmware/libHwGPU.so
cp -f x86/usr/lib/graphics/vmware/libHwWFDvmware.so /usr/lib/graphics/vmware/libHwWFDvmware.so
cp -f x86/usr/lib/graphics/vmware/libllvmpipe_drv.so /usr/lib/graphics/vmware/libllvmpipe_drv.so
cp -f x86/usr/lib/graphics/vmware/libmesa_texcompress_atc.so /usr/lib/graphics/vmware/libmesa_texcompress_atc.so
cp -f x86/usr/lib/graphics/vmware/libmesa_texcompress_pvrt.so /usr/lib/graphics/vmware/libmesa_texcompress_pvrt.so
cp -f x86/usr/lib/graphics/vmware/libmesa_texcompress.so /usr/lib/graphics/vmware/libmesa_texcompress.so
cp -f x86/usr/lib/graphics/vmware/libpipe_vmwgfx_drv.so /usr/lib/graphics/vmware/libpipe_vmwgfx_drv.so
cp -f x86/usr/lib/graphics/vmware/libst_HwGL_g.so /usr/lib/graphics/vmware/libst_HwGL_g.so
cp -f x86/usr/lib/graphics/vmware/libst_HwGL.so /usr/lib/graphics/vmware/libst_HwGL.so
cp -f x86/usr/lib/graphics/vmware/libvmwsvga.so /usr/lib/graphics/vmware/libvmwsvga.so
cp -f x86/usr/lib/libEGL.so.1 /usr/lib/libEGL.so.1
cp -f x86/usr/lib/libGLESv1_CL.so.1 /usr/lib/libGLESv1_CL.so.1
cp -f x86/usr/lib/libGLESv1_CM.so.1 /usr/lib/libGLESv1_CM.so.1
cp -f x86/usr/lib/libGLESv2.so.1 /usr/lib/libGLESv2.so.1
cp -f x86/usr/lib/libscreen.so.1 /usr/lib/libscreen.so.1
cp -f x86/usr/lib/libswblit.so.1 /usr/lib/libswblit.so.1
cp -f x86/usr/lib/libWFD.so.1 /usr/lib/libWFD.so.1
cp -f x86/lib/libgestures.so /lib/libgestures.so
cp -f x86/lib/libinputevents.so /lib/libinputevents.so
cp -f x86/lib/libkalman.so /lib/libkalman.so
cp -f x86/lib/libmtouch-calib.so /lib/libmtouch-calib.so
cp -f x86/lib/libmtouch-devi.so /lib/libmtouch-devi.so
cp -f x86/lib/libmtouch-fake.so /lib/libmtouch-fake.so
cp -f x86/lib/libmtouch-inject.so /lib/libmtouch-inject.so
cp -f x86/usr/lib/libEGL.so /usr/lib/libEGL.so
cp -f x86/usr/lib/libGLESv1_CL.so /usr/lib/libGLESv1_CL.so
cp -f x86/usr/lib/libGLESv1_CM.so /usr/lib/libGLESv1_CM.so
cp -f x86/usr/lib/libGLESv2.so /usr/lib/libGLESv2.so
cp -f x86/usr/lib/libscreen.so /usr/lib/libscreen.so
cp -f x86/usr/lib/libswblit.so /usr/lib/libswblit.so
cp -f x86/usr/lib/libWFD.so /usr/lib/libWFD.so
echo "Done!"

注意: 如果從window上編輯上面的成為.sh執行的話,記得要改換行字元,不然到QNX上時檔名結尾會多一個^M。在notepad ++ 的檔案格式轉換可改成unix就不會有這問題。

再執行
gpu_drv
screen
即可