anchao opened a new pull request, #6897:
URL: https://github.com/apache/incubator-nuttx/pull/6897

   ## Summary
   
   arch/sim: add windows host simulate support
   sim/host: move host implement to posix directory
   
   This PR is depends on cmake support:
   https://github.com/apache/incubator-nuttx/pull/6718
   
   Preview version is on private project, will be contributed to the community 
asap:
   ```
   git clone g...@github.com:anchao/incubator-nuttx.git -b windows
   git clone g...@github.com:anchao/incubator-nuttx-apps.git -b windows
   mv incubator-nuttx-apps apps
   cd incubator-nuttx
   ```
   Compile with cmake:
   ```
   cmake -B vs2022 -DBOARD_CONFIG=sim/windows -G"Visual Studio 17 2022" -A Win32
   cmake --build vs2022
   ```
   If you want to use Visual Studio, you can import the solution directly from 
the IDE after CMake generates the solution:
   
   
![6ba2d572-14e7-498f-96ea-4238c17d6803](https://user-images.githubusercontent.com/758493/186084393-27eda7fc-87ef-4979-ba2d-2f6580496898.png)
   
   After the compilation is completed, Debug\nuttx.exe will be generated:
   
   
![c3e10a62-3e90-4dba-a6fd-64fb41f932ac](https://user-images.githubusercontent.com/758493/186084497-ba2f74cf-7bd3-480e-8325-e3901b287502.png)
   
   Run the simulator:
   
   PowerShell:
   (The default terminal operation has encoding issues, but it does not affect 
normal use, all commands can be executed normally)
   
   
![b3c48de4-160c-4564-9aa3-c58902c3dbbd](https://user-images.githubusercontent.com/758493/186084815-e463ff40-23ac-4564-8fe2-55fe6dc1c5e1.png)
   
   Visual Studio
   
   
![b83f4895-1ed9-43db-9fb3-0cf636ad2541](https://user-images.githubusercontent.com/758493/186084861-0cc70ec5-160a-42ec-9688-b6b31dff8c27.png)
   
   ## Impact
   
   N/A
   
   ## Testing
   
   visual studio 2022 + cmake
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to