Using GAPI SDK for C with MinGW 8.1 on Windows

Install MinGW 8.1

  • Download MinGW from Sourceforge.net
  • Start the installation
  • During the installation please ensure to provide the following settings
    • Select Version 8.1.0
    • Select architecture x86_64 to build 64bit software
    • Select win32, for using win32 threading model. Alternatively select posix if you want to use the C++ threading model available since C++11 (e.g. std::thread)
    • Select seh as exception model
    • Attention: Please install to a location without spaces in the installation path, so do not choose the default C:\Program Files\...!
  • After the installation
    • Add the MinGW compiler to the PATH variable, e.g. c:\mingw-w64\x86_64-8.1.0-win32-seh-rt_v6-rev0\mingw64\bin

Install CMake

  • CMake is provided with the Baumer GAPI installer, feel free to use your own installed CMake if the version is greater than 3.10.2 (try cmake --version on the command line)
  • Ensure CMake is added to the PATH variable either during install or manually
  • Restart your PC for the PATH changes to take effect

Try the Baumer GAPI SDK for C Examples

  • Use the install_example_win.bat to create the project for MinGW
  • If the MinGW compiler is found by the script, it will offer an option for MinGW, please choose that.
  • We recommend to use Microsoft Visual Studio Code to work with the MinGW compiler but any IDE should work