question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Scan for MinGW kits is not working

See original GitHub issue

Just for the record: Maybe I am doing something wrong but it seems to me that cmake.mingwSearchDirs is not loaded from the configuration and thus kit_options.minGWSearchDirs is undefined and no scan for MinGW kits is performed:

    if (isWin32 && kit_options.minGWSearchDirs) {
      for (const dir of convertMingwDirsToSearchPaths(kit_options.minGWSearchDirs)) {
        scan_paths.add(dir);
      }
    }

This needs further investigation for me to confirm it.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Zingamcommented, Feb 13, 2020

This made me wonder about the following: Clang doesn’t have a variable cmake.mingwSearchDirs but has the hardcoded default paths. The path to MinGW is set in package.json. Perhaps it makes sense to align the implementations - add a hardcoded value to MinGW and a variable to Clang. Or a better option could be just to add a generic variable cmake.compilerSearchPaths (I don’t think there is one) to replace:

"cmake.mingwSearchDirs": [
  "C:\\MinGW"
]

and use it everywhere for current and future compilers.

1reaction
ZUIcatcommented, Jul 12, 2021

I have the same problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scan for Kits can't detect different MinGW compilers if ... - GitHub
Let's say I use MinGW 8.1.0 x86_64, so GCC 8.1.0 64 bits. ... The problem is that the "Scan for kits" command only...
Read more >
CMake does not work with g++ installed with MinGW
Try reinstalling the program to fix this problem. Here is the full ouput: The CXX compiler identification is unknown Check for working CXX...
Read more >
MinGW FAQ
Information about the Mingw Compiler. Includes descriptive information and questions commonly brought up on the mailing list.
Read more >
I already have MinGW on my computer. How do I configure it ...
After that I started matlab as admin and run the >> configuremingw command and selected the minGW folder (not the bin folder!). Now...
Read more >
Building tools (CMake, MinGW, Visual Studio)
To check that the Path environment variable has been correctly modified, open Powershell and issue the following command, which issues the content of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found