Run microsoft windows on X11

Source: Internet
Author: User

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 ~~

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.