Run microsoft windows on X11
Please indicate the source when reprint: http://blog.csdn.net/absurd/
Yesterday I wrote a blog about creating a simulated mobile phone runtime environment. At that time, I was wondering whether Microwindows and MiniGUI can run in such a simulated environment? It should be okay. Just use X11 or SDL to simulate the keyboard, mouse, and display device. The principle is very simple, so I plan to write such a driver for Microwindows. After the download, I found that the developer had done this long ago, which saves me some time. I tried it for a while and it feels pretty good. Take a note.
1. Download the installation package and decompress it.
[Root @ localhost guis] # tar zxvf/mnt/HGFS/Linux/GUI/microwindows-full-0.91.tar.gz
[Root @ localhost GUI] # microwindows-0.91/src/CD/
2. Modify the config file
X11 = N
To:
X11 = y
3. Compile
Make
4. Run
[Root @ localhost SRC] # export LD_LIBRARY_PATH = $ PWD/lib
[Root @ localhost SRC] # export display =: 0
[Root @ localhost SRC] #./bin/Mine
5. Effects in the simulator:
To run in the simulator, You need to modify the following:
The scr_x11.c file starts with the coordinates of the window from (0, 0.
L change screen_width to the width of the simulator screen in config.
L change screen_height to the height of the simulator screen in config.
~~ End ~~