VisualGDb cannot use Mingw64 version 5.0

Sysprogs forums Forums VisualGDB VisualGDb cannot use Mingw64 version 5.0

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21891
    b.timofte
    Participant

    Dear all

    I try to use the latest Mingw and even the toolchain is detected correctly:

     

    <?xml version=”1.0″?>
    <CustomToolchain xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; xmlns:xsd=”http://www.w3.org/2001/XMLSchema”&gt;
    <Toolchain>
    <UnixSystem>false</UnixSystem>
    <AdditionalPathDirectories>
    <string>C:\MinGW_x64_32\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\mingw64\bin</string>
    <string>C:\MinGW_x64_32\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\mingw64\msys\1.0\bin</string>
    </AdditionalPathDirectories>
    <RequireCtrlBreak>false</RequireCtrlBreak>
    <SourceDirMapping>
    <Directories>
    <SourceDirMappingEntry>
    <RemoteDir>/mingw</RemoteDir>
    <LocalDir>C:\MinGW_x64_32\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\mingw64</LocalDir>
    </SourceDirMappingEntry>
    </Directories>
    <PathStyle>MinGWUnixSlash</PathStyle>
    </SourceDirMapping>
    <Name>MinGW</Name>
    <UniqueID>com.sysprogs.imported.mingw1</UniqueID>
    <Location>.</Location>
    <GCC>C:\MinGW_x64_32\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\mingw64\bin\gcc.exe</GCC>
    <GXX>C:\MinGW_x64_32\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\mingw64\bin\g++.exe</GXX>
    <GDB>C:\MinGW_x64_32\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\mingw64\bin\gdb.exe</GDB>
    <AR>C:\MinGW_x64_32\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\mingw64\bin\ar.exe</AR>
    <OBJCOPY>C:\MinGW_x64_32\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\mingw64\bin\objcopy.exe</OBJCOPY>
    <Make>C:\MinGW_x64_32\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\mingw64\bin\mingw32-make.exe</Make>
    <UseCygwinBash>false</UseCygwinBash>
    </Toolchain>
    <Type>Windows</Type>
    <Target>x86_64-w64-mingw32</Target>
    <Version>
    <GCC>8.1.0</GCC>
    <GDB>8.1</GDB>
    <Revision>0</Revision>
    </Version>
    <Name>MinGW</Name>
    <IsShared>false</IsShared>
    </CustomToolchain>

     

    I get error at compile (MsBuild)

     

    Error:
    1>l71+l1: Could not find the toolchain com.sysprogs.imported.mingw1 8.1.0/8.1/r0
    1>   at l71.i(RemoteHostSettings d, ToolchainKey b, ToolchainType c, in a)
    1>   at l91..ctor(VisualGDBProjectSettings2 e, x2 c, at a, j2 b, in f, IDELevelProjectInfoForBuilding d)
    1>   at xu..ctor(VisualGDBProjectSettings2 d, x2 c, IDELevelProjectInfoForBuilding a, at b)
    1>   at VisualGDB.MSBuild.BuildHelper..ctor(String vgdbSettingsFile, IDELevelProjectInfoForBuilding info)
    1>   at Sysprogs.build.tasks.shared.LaunchVisualGDB.Execute()
    1>C:\Program Files (x86)\Sysprogs\VisualGDB\MSBuild\Targets\external.targets(5,3): error : Could not find the toolchain com.sysprogs.imported.mingw1 8.1.0/8.1/r0

     

    Can you please help ?

    • This topic was modified 5 years, 8 months ago by b.timofte.
    #21895
    support
    Keymaster

    Hi,

    Please try restarting Visual Studio. If it doesn’t help, please let us know how did you import the toolchain (automatic installation via VisualGDB, manual import, copied the XML file, etc.) and whether the toolchain is shown in the VisualGDB Package Manager or the toolchain selector in the wizard.

    #21900
    b.timofte
    Participant

    Hello

    It was MSbuild project

    I restarted and i get the same error

    Strangely if i make a new gnu make project with this compiler it works . If i convert it to msbuild i get the error.

    #21909
    support
    Keymaster

    Hi,

    Strange. The MSBuild-based projects use a different mechanism for locating the toolchain property sheets, although it should be automatically synchronized to the mechanism used for GNU Make.

    Could you please share your %LOCALAPPDATA%\VisualGDB\FindToolchain.props file and the .vcxproj file so we could check for possible causes of this?

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