Sysprogs forums › Forums › VisualGDB › Use existing RPi OS?
- This topic has 8 replies, 2 voices, and was last updated 3 weeks, 6 days ago by
support.
-
AuthorPosts
-
November 25, 2025 at 09:40 #36984
evilc
ParticipantI am thinking of using VisualGDB for a project, but all the tutorials that I see are talking about downloading a new RPi image.
I would rather keep my existing one (DietPi)
Is it possible to install the needed software without flashing a new OS?
November 25, 2025 at 09:46 #36985support
KeymasterHi,
It should work, as long as your OS has gcc/gdb, or you have a compatible cross-toolchain. As long as your can figure it out for your custom OS, VisualGDB will work just fine.
November 25, 2025 at 10:22 #36986evilc
ParticipantThanks
I appear to have gcc and gdb installed
I already have VS on my Windows PC able to debug code on the Pi, without using VisualGDB, I am just utterly stuck on how to import libraries without VisualGDB (I am basically trying to do this without VisualGDB)
Should I not be able to get it working on my existing install, is there a GUI-less RPi image that I can use with VisualGDB?
ie it looks like the “normal” method would be to use this menu to download an SD image:
November 25, 2025 at 10:27 #36987support
KeymasterYou can try using the setup shown in this tutorial. It should work very similar to your current setup.
November 25, 2025 at 12:46 #36988evilc
ParticipantLooks like my distro does not have
lsb_releaseI tried installing it, but now I get:
VisualGDB version: 6.0.108.5338
—————— System.Exception ——————
System.Exception: The target system image does not match the selected toolchain:
Command: lsb_release -c
Output:
Codename: trixieat k23.c(zz a)
at k23.a(zz a)
at VisualGDB.Common_GUI.WPF.ItemizedProgressWindow.<>c__DisplayClass2_0`1.<RunAction>b__0()
trace=[k23.c:632, k23.a:71, VisualGDB.Common_GUI.WPF.ItemizedProgressWindow+<>c__DisplayClass2_0`1.<RunAction>b__0:0]-
This reply was modified 4 weeks ago by
evilc.
November 25, 2025 at 12:48 #36990support
KeymasterLooks like you are still trying to use our toolchain that will not work with your target OS. Please try configuring VisualGDB to build the projects directly on the device instead.
November 25, 2025 at 13:08 #36991evilc
ParticipantOK, that fixed that.
I managed to run the basic hello world test, all OK.
I am now on the WiringPi tutorial, at step 5
I am using CMake, and it says
Go to the MSBuild Settings (or CMake Build Settings page if you are using CMake) and click “Synchronize Sysroot”
I cannot find this button. My screen does not look like the MSBuild screenshot in your tutorial.
To the right of the “Toolchain” box is a spanner icon, but it’s not in there
Screenshot attached
Attachments:
You must be logged in to view attached files.November 25, 2025 at 13:18 #36993evilc
ParticipantI just recreated the project in MSBuild, and the “Synchronize Sysroot” button is still not there
November 26, 2025 at 20:10 #37003support
KeymasterThe sysroot synchronization only makes sense if you are using a cross-toolchain (with its own copy of sysroot). It is not needed when building directly on the device.
-
This reply was modified 4 weeks ago by
-
AuthorPosts
- You must be logged in to reply to this topic.