Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connecting a Pi to a Pi?
(03-18-2019, 10:04 AM)GSalvato Wrote:
(03-18-2019, 08:44 AM)Brian Beuken Wrote: Why is easy...editing and compiling on one machine then sending to another to run and debuh is how all professional game coders work, Ideally use a Pc like they do, but its clear some people just hate the idea of using a windows pc, or can't afford it, so 2 Pis, gives another option

Why would you install raspberry on a pc?? Think you've misunderstood the intention.

I think building and using SCP or similar is the one of thebest options, code needs to be transferred, but then also need GDB to run on the target so that needs and SSH style connection and an IDE on the dev system thats receptive to it....

I still say, use a Pc..use the right tools for the job.

Well.. apart from compilation speed (that is the same if you use another Pi) the only reason I see to use two connected Pis is that the Ide use a lot of RAM.
Apart this I continue to prefer to use VNC to connect to mi Pi and develop/debug on the same.


Well consider also,mainly  I write games, so I need my full screen to be visialble in real time at all times, having the dev system control debugging means I can step through code easily and see the results on the target.
There would of course be no difference in compile speed, but easy of debugging is considerably improved.

Even with a PC, which is capable of much faster compile speeds, I prefer to do my compiles on target, and allow the make file to only compile changed files so its pretty effective. Since its the debugger and other runtime thngs that I want to see in action, which is just much harder if my IDE is on the running machne as well.
Brian Beuken
Lecturer in Game Programming at Breda University of Applied Sciences.
Author of The Fundamentals of C/C++ Game Programming: Using Target-based Development on SBC's 

If I have well understood what you have written... it is exactly the result I have by using qtcreator in the target machine and VNC to connect to the same. Obviously I have two monitors: one connected directly to the target Pi and a second one (I'm cheating since I use a laptop) in the other PC (is an laptop with Ubuntu 18.04). In the HDMI monitor connected to the Pi I have my full gles window and in the VNC client window of my laptop I have the qtcreator window in which I can set breakpoints, see variables values, and so on (it uses gdb).

Forum Jump:

Users browsing this thread: 1 Guest(s)