Editing
WSL
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Ubuntu in WSL=== 3) Updating Your Ubuntu System Now that you can access internet, you can update your Ubuntu. Follow "Update and upgrade packages" in Set up a WSL development environment | Microsoft Docs. 4) Setup VS Code and everything else Now it's time to setup your VS code and terminals so that you can access your files on the VM to do this follow Set up a WSL development environment | Microsoft Docs sections: Set up Windows Terminal File storage Use Visual Studio Code 5) Install what we need for building the desktop app Run the following command to get your environment ready, these comments should be ran in WSL Ubuntu. 5.1) cmake sudo apt install cmake 5.2) Clang as compiler: sudo apt install clang-10 --install-suggests After running this command a symbolic (type of file in Linux that points to another file or a folder) is created, when you use clang-10 and clang++-10, clang 10 C and C++ compilers are targeted respectively. You can read more about this to understand it better by reading the answer by karel at How to set Clang 9 as the default C++ compiler on Ubuntu 19.10? - Ask Ubuntu (do not follow this as instruction but read to understand what is going on, you can check your symbolic to understand it better) 6) Update CMakeList.txt (if we did not push changes by the time you use this document) Add the following lines to CMakeList.txt (at /firmware/Desktop) before the line containing "project(XXXXXX)", this would set the compilers for project, if you set them after this line it will not work correctly. set(CMAKE_C_COMPILER "clang-10") set(CMAKE_CXX_COMPILER "clang++-10") 7) Build the Project (to be updated) cd firmware/Breathing rm -rf build cmake -B build . cd build make 7.1) Troubleshooting 7.1.1) If CMake Does Not Apply Your Changes rm -f CMakeCache.txt Then redo build 8) Run the Tests cd /OS-firmware/ source run_small_window.sh You may need to change the access to the run_small_window.sh by "sudo chmod 777 run_small_window.sh" (on WSL this is not needed)
Summary:
Please note that all contributions to SafeCodeGroup may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
SafeCode Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information