Skip to content

Latest commit

 

History

History
53 lines (50 loc) · 2.87 KB

File metadata and controls

53 lines (50 loc) · 2.87 KB

Onethinx Core Windows dependencies pack

How to setup Visual Studio Code with the Onethinx Core dependencies pack

1. Download prerequisites

2. Install VS Code & extensions

  • Install VS Code.
  • Install extensions:
    • C/C++ IntelliSense, debugging (microsoft)
    • Cortex-Debug GDB support (marus25)
    • Meson Build (mrmomo)
    • Power Tools (e.GO Mobile)
    • Tasks (actboy168)
    • optional: ARM Assembly Support For Visual Studio Code (dan-c-underwood)
    • optional: Output Colorizer (IBM)

3. Install Meson & Ninja build tools

4. Install the Onethinx Dependencies Pack

  • Unzip the pack archive to your local harddisk (eg: C:\VSCode_OnethinxPack_Windows)
    • Hint: you might want to remove '-main' at the end of the folder name
  • Open your command prompt (cmd)
  • Run C:\VSCode_OnethinxPack_Windows\setVariables.bat
    • You'll see the environment variables and the path being set
  • Restart your machine (or log-out and log-in) to reload the environment variables

5. Check

  • If Meson and the compiler is correctly installed by typing the following into your command prompt or terminal window of VS Code
    • meson -v
    • arm-none-eabi-gcc -v
  • If you have not done this yet, download the Hello World Project

6. Remind

  • After changing the device configuration (or project file structure) to use
    • Clean Reconfigure
    • Clean Rebuild in order to build the image properly
  • To delete the contents of the build folder
    • if you copied the project including build folder from another location / machine
    • when build fails
  • This pack contains the 64bit version of CMake. Replace with the 32bit version if you run on a 32bit machine.

How to update

  • Download the latest Onethinx Dependencies Pack
  • Delete the contents of the Dependencies Pack folder from you harddisk
  • Unpack the contents of the archive to the Dependencies Pack folder
  • Run C:\VSCode_OnethinxPack_Windows\removeVariables.bat
  • Run C:\VSCode_OnethinxPack_Windows\setVariables.bat
  • Restart your machine (or log-out and log-in) to reload the environment variables