View on GitHub

workshop-fyp-2021

Compiler Setup

Install Windows Mingw

  1. Install MSYS2.

  2. Setting up MSYS2.

    • From the start menu run MSYS2 MSYS.
    • To update the package database and base package type the command pacman -Syu until there is nothing todo.
  3. Install the toolchain

    • Type the command pacman -S --needed base-devel mingw-w64-x86_64-toolchain.
    • Press ENTER to select all package when the prompt Enter a selection (default=all) show up.
  4. Validating installation

    • From the start menu run MSYS2 MinGW 64-bit.
    • Type the command g++ -v.
    • The command will show the target when installed. Terminal output of MSYS2 MinGW 64-bit terminal

Install Linux GCC

  1. Update the package-list.

     sudo apt-get update
    
  2. Install GNU compiler tools and the GDB debugger.

     sudo apt-get install build-essential gdb
    
  3. Optional install manual pages about using GNU/Linux

     sudo apt-get install manpages-dev
    
  4. Validate installation

     make -v
    
     g++ -v
     gdb -v
    

Install macOS GCC

  1. Install Homebrew package manager.

     /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrewinstall/HEAD/install.sh)"
    
  2. Update Homebrew and validate brew instalation

     brew update
     brew upgrade
    
     brew --version
    
  3. Install GCC and the GDB debugger via Homebrew

     brew info gcc
     brew install gcc
     brew install gdb
    
  4. Removes previous application/dependency revisions saving considerable space.

     brew cleanup
    
  5. Validate installation

     make -v
    
     g++ -v
     gdb -v