I figured out that I had to add an additional include which seems to be only necessary under Ubuntu.I set the path these additional include to: /usr/share/arduino/hardware/arduino/cores/arduino
avrdude: stk500_recv(): programmer is not respondingI had to change the USB port to /dev/ttyACM0 (see screenshot) and that solved the problem.
**** Build of configuration Release for project test ****make allError: Cannot run program "make" (in directory "C:\Users\inagy\workspace\test\Release"): CreateProcess error=2, The system cannot find the file specified**** Build Finished ****
What exactly do you mean with "I'm using a mega2560 I can use Serial1..3 for debugging ;-)"?
It has got 4 hardware serial ports, so I don't have to use the first one that is connected to the USB interface for debugging. I write to Serial1 which has a TTL to RS232 converter connected to /dev/ttyS0 (which has a terminal program running on it).