I have a commute of several hours every day, as a passenger, so figured that I might as well make use of the time and learn C/C++ development on the Pi.
I comfortable & confident happy with C/++ and Linux, but have not yet developed for the Pi.
I have available:
- a laptop running Windows 10
- and could run a Linux VM if that helps
- a Pi Zero W
- a hand 'phone, which could provide a WiFi hotspot
- a USB to Ethernet adapter
- a large screen Android tablet and a BlueTooth keyboard
- an HDMI cable (maybe use the Android tablet as a display somehow other than VNC?)
- a USB (laptop end) to UART (pi end) debug cable
I don't mind spending up to $50 or so on further hardware, if necessary.
For the code which I wish to develop, the Pi does not need internet access, and my code will be a GUIless executable.
Firstly, what's the general approach?
- Run the IDE on host (Windows/Linux)? And use the IDE, TelNet or FTP to load my program to the Pi? That way, I can have a headless Linux distro on the Pi & save some space.
- Install the IDE on the PI, which will take space & require a desktop to run the IDE, which I do not need to run my executable, then use something like TightVNC from the laptop to access the IDE and code?
For Windows IDEs, I have, and am comfortable with CLion, Eclipse, MS VS, NetBeans, Code::Blocks ... but don't know how to configure them on Host to cross-compile for the Pi. Of course, if the IDE is on the Pi, then I don't have that problem, as the tool-chain will be native.
So, is there an agreed general approach?
And, is it the optimal approach for me on my commute, given the materials to hand?