Disclaimer: ChatGPT generated document.
When cross-compiling for ARM, you’ll encounter different ARM toolchains and ABIs (Application Binary Interfaces) such as:
✅ arm-eabi
✅ arm-gnueabi
Hello! I made this document for anyone trying to setup an enviroment for SDL2 on Windows using VS Code for building and debugging.
This is just a basic setup to test everything works and compiles correctly. This is adapted from this guide by Adam Richardson, made to work with the UCRT enviroment.
So, let's get to it.
See also:
| Service | Type | Storage | Limitations |
|---|---|---|---|
| Amazon DynamoDB | 25 GB | ||
| Amazon RDS | |||
| Azure SQL Database | MS SQL Server | ||
| 👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- # | |
| from __future__ import unicode_literals | |
| # -------------------------------------- | |
| # Now compatible with Pelican 4.0.x! | |
| # -------------------------------------- | |
| # Added by me | |
| import time |
| """Another way, note this one will load the whole array into memory .""" | |
| from keras.preprocessing.image import ImageDataGenerator | |
| import h5py | |
| from keras.utils.io_utils import HDF5Matrix | |
| seed=0 | |
| batch_size=32 | |
| # we create two instances with the same arguments | |
| data_gen_args = dict( | |
| rotation_range=90., |
This was tested on a ThinkPad P70 laptop with an Intel integrated graphics and an NVIDIA GPU:
lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Device 191b (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GM204GLM [Quadro M3000M] (rev a1)
A reason to use the integrated graphics for display is if installing the NVIDIA drivers causes the display to stop working properly.
In my case, Ubuntu would get stuck in a login loop after installing the NVIDIA drivers.
This happened regardless if I installed the drivers from the "Additional Drivers" tab in "System Settings" or the ppa:graphics-drivers/ppa in the command-line.
| # For Windows users# Note: <> denotes changes to be made | |
| #Create a conda environment | |
| conda create --name <environment-name> python=<version:2.7/3.5> | |
| #To create a requirements.txt file: | |
| conda list #Gives you list of packages used for the environment | |
| conda list -e > requirements.txt #Save all the info about packages to your folder |