Skip to content

onethinx/VSCode_OnethinxPack_macOS-DEPRECIATED

Repository files navigation

Onethinx Core MAC OS-X dependencies pack

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

The instructions on how to update are way down below.

1. Download prerequisites

2. Install CMake, VS Code & extensions

  • Install CMake.
  • Install VS Code.
  • Install extensions:
    • ARM Support For Visual Studio Code (dan-c-underwood)
    • C/C++ IntelliSense, debugging (microsoft)
    • CMake language support (twxs)
    • CMake Tools (microsoft)
    • Cortex-Debug GDB support (marus25)
    • Power Tools (e.GO Mobile)
    • LinkerScript support for GNU (Zixuan Wang)
    • Open in Application (Fabio Spampinato)
    • Output Colorizer (IBM)
    • Tasks (actboy168)
  • Apply the CMake path to VS Settings: "cmake.cmakePath": "/Applications/CMake.app/Contents/bin/cmake",

3. Install the Onethinx Dependencies Pack

  • Unzip the pack archive to your local harddisk (eg: /Applications/VSCode_OnethinxPack_macOS).
    Hint: you might want to remove '-master' at the end of the folder name.
  • For MacOS Mojave and older (<=10.14)
    • If the file ~.bash_profile doesn't exist, create it: Terminal >> cd ~ && touch .bash_profile
    • Open ~.bash_profile: Terminal >> cd ~ && open -e .bash_profile
  • For MacOS Catalina and newer (>= 10.15)
    • If the file ~.zprofile doesn't exist, create it: Terminal >> cd ~ && touch .zprofile
    • Open ~.zprofile: Terminal >> cd ~ && open -e .zprofile
  • Add this to the end of the file (make sure you enter the correct path) and save:
    # Loading environment variables for the Onethinx Pack
    source /locationOfYour/VSCode_OnethinxPack_macOS/variables.env
    
  • Set the correct path in this pack's variables.env file.
  • Restart your machine (or log-out and log-in) to reload the environment variables.

4. Check

  • If Make and the compiler is correctly installed by typing the following into your terminal or terminal window of VS Code.
    • make -v
    • arm-none-eabi-gcc -v
  • If you have not done this yet, download the Hello World from https://ghithub.com/onethingx/VSCode_HelloWorld
    • If this builds without error, the Onethinx build suite has been installed properly.

5. 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.

How to update

  • download the latest Onethinx Dependencies Pack from https://github.com/onethinx/VSCode_OnethinxPack_macOS
  • delete the contents of the Dependencies Pack folder from you harddisk
  • unpack the contents of the archive to the Dependencies Pack folder
  • Set the correct path in this pack's variables.env file.
  • Restart your machine (or log-out and log-in) to reload the environment variables.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published