Use existing RPi OS?

Sysprogs forums Forums VisualGDB Use existing RPi OS?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #36984
    evilc
    Participant

    I 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?

    #36985
    support
    Keymaster

    Hi,

    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.

    #36986
    evilc
    Participant

    Thanks

    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:

     

    #36987
    support
    Keymaster

    You can try using the setup shown in this tutorial. It should work very similar to your current setup.

    #36988
    evilc
    Participant

    Looks like my distro does not have lsb_release

    I 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: trixie

    at 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.
    #36990
    support
    Keymaster

    Looks 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.

    #36991
    evilc
    Participant

    OK, 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.
    #36993
    evilc
    Participant

    I just recreated the project in MSBuild, and the “Synchronize Sysroot” button is still not there

    #37003
    support
    Keymaster

    The 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.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.