I have had a lot of issues with some updates recently but I've managed to resolve most of them..
If you are using your Pi for the 1st time remember you need to run the setup script at least one time. It will install all the libs needed throughout the book. It will be attached to all Pi projects but here is the most updated version.
Code:
#!/usr/bin/env bash
#
# Dev environment setup � safe to re-run.
# Re-running updates the git repos to their latest version and refreshes apt packages.
# --- helper: clone a repo if it's missing, otherwise update it to the latest version ---
clone_or_update() {
url="$1"
dir="$2"
if [ -d "$dir/.git" ]; then
echo "Updating $dir (pulling latest)"
git -C "$dir" pull --ff-only
else
echo "Cloning $dir"
git clone "$url" "$dir"
fi
}
echo installing
echo installing cmake
cd "$HOME"
sudo apt update # refresh the package index so re-runs get the latest apt versions
sudo apt install cmake -y
echo
echo enhancing GPU debug output NOTE- not all will install
sudo apt install libglx-mesa0-dbgsym libglapi-mesa-dbgsym libgl1-mesa-dri-dbgsym -y
echo Done!
echo
echo Scroll up to make sure there were no errors, warnings are ok
echo Take note of the errors and check the web/support sites for fixes
read -s -p "Press Enter when you're ready!"
echo ...
ok first uploads are done, I will do a few tests to make sure everything is ok and futher uploads witll be posted then tested in sequence.
Sorry again for all the horrible delays, lots of reasons, but none which excuse you having paid for a book with no software to download, I will do my best to give you a lot of good content over and above what the book provides in the comming months.
Allrighty!
Finally did it. It works. Had to do a 'Set as Startup Project', copy the headers to /usr/include and it showed up on my Pi.
Now I'll get a cup of coffee, deserved it. After that I can continue knowing things work ok.
Brian, thanks again for all the help. Good luck with settings things up there.
I'm not seeing a lot of activity on the forum which is a bit surprising, are people having problems signing up? I added an extra mega easy question to the sign up system, so it should be simple, though you won't currently get a notification when you sign up
if anyone is struggling to sign up, just mail me at brian at scratchpadgames dot net and I will investigate
But if you do sign in ok, come here and say hello, tell us a bit about yourself and your reasons for joining up to this forum.
As I am resetting a lot of my equipment, this old issue cropped up again for me. It happens every so often for some, not all, of my students too.
It's basically due to both your PC and Pi attempting to get an IP address from a DHCP server that doesn't exist in a direct connection, so neither can establish a proper network link.
There are 3 solutions to this:
1st If you can, buy a small network switch. When both machines are connected via a switch which has access to your network, they can find your network's DHCP server. This is my personally preferred method, especially when I have a few different machines I want to target - a switch avoids lots of messy unplugging/plugging.
2nd Connect both your PC and Pi via ethernet to your network router. That way both machines get IPs from your router's DHCP server.
3rd A little less elegant but effective: set both devices to static IPs on their own private network. This is fiddly because you need to type commands into the Pi's terminal, but it works well.
On the Pi, carefully enter these two commands:
sudo nmcli con add type ethernet ifname eth0 con-name wired-static ipv4.addresses 192.168.2.1/24 ipv4.method manual autoconnect yes
sudo nmcli con up wired-static
This assigns 192.168.2.1 to your Pi. Now set your PC's ethernet to a static IP in the same range:
Win + X → Network Connections
Right-click Ethernet → Properties
Double-click Internet Protocol Version 4 (TCP/IPv4) (<<this might vary depending on your version of Windows, but basically set IPv4 to manual)
Select "Use the following IP address":
Now your wired connection should work!
You can also enable WiFi on both devices for internet access - they'll route traffic appropriately.
While you can use raspberrypi.local (or whatever your Pi's hostname is) to connect, using the IP address 192.168.2.1 directly is faster and guarantees you're using the wired connection.
Hopefully you won't have a problem - it's only a small number of setups that have this issue, but this solution should fix it.
Actually there is a 4th option, just make sure both systems are on the same WiFi network.. WiFi these days is impressively fast, but... wired is quite significanly faster and you will feel that difference if you are doing a lot of debugging or sending data back and forward.
Posted by: Brian Beuken - 12-13-2025, 04:52 PM - Forum: Book 2
- No Replies
I hope you've been enjoying the book, but at this immediate moment, there's a lack of content on the support site. I have chased the site hosts again and they are trying to trace the problem. But I can offer some help and some code samples on this forum while we try to get thigns fixed.
Please sign up, say hello and I'll try to help you get through the book
The book launches tomorrow, so its time to get the videos and source files sorted, there may however be some delay again.. Im still getting some issues from the site when it comes to uploading large files, it seems to fail, a help request has gone to the hosting company.. Hopefully I can get it resolved and start uploading videos and chapter contents soon.
In the meantime if you have an early copy of the book, please log in, say hello and I'll update you when things are finally resolved.
There's a new version... of course there is just as the book launches..
But aside from some cosmetic changes, and I assume, a bit of internal shuffling around, its not massively different, just some navigation changes to panels. It still loads and runs all VS2022 projects fine.
That said for the forseeable future I will continue to use Visual Studio 2022 for all project. I'll experiment more with the 2026 and transition when I am confident everything works
Trixie uses Wayland as default but it will emulate X11, as a result projects all seem to work fine, but may stretch window sizes from the standard 1024x768 to full screen.. Its not a major issue, you can still set X11 in the raspi-config tool via the terminal.
I am so so sorry, but due to a combination of my being a bit stupid and our webhost being slightly more stupid, the website and its forums were totally trashed.
We have to start again, hopefully a last time and also this time with backups.... I did at least have website backups so the update to the website is continuing, and we should be fully live by December 4th, the day before the book launches.
TLDR the webhosts filled the webspace with log files, the website was not expanded as I had asked, and the website locked, when I tried to back up it destroyed the forums and I had to delete it and then shout at the host company to get the space I paid for allocated to this site.......damn
Please log in, please post ask questions, please provide answers and lets try to make this a useful resource for anyone coding on SBC's
It will take me a little while to get things back to normal, so please be patient with me