[Problem] Can't use MinGW toolchain, even if MinGW is installed. [message #1850907] |
Tue, 22 March 2022 01:08 |
Guido Barbieri Messages: 2 Registered: March 2022 |
Junior Member |
|
|
Hi, I'm trying to compile Windows programs under a Linux system using Eclipse.
I can compile Linux programs without issues, however, I can't do the same for Windows programs.
The problem is that I can't select MiniGW as a toolchain when trying to compile code.
If I force it by selecting it in Properties<C/C++ Build<Tool Chain editor it will say "Tool chain MinGW is not detected".
How can I get this to work? I'm using Clear Linux, I installed the MinGW bundle from it's official repository.
MinGW stuff appears on usr/bin, yet I'm not managing to get this working properly.
Any help is appreciated,. thanks!
EDIT: Basically, what I want to do is for MinGW to show in the wizard when creating a C/C++ project, alongside the Linux GCC compiler, so I can compile binaries for both Windows and Linux.
A workaround I found is to use my MinGW prefix and path in "Cross GCC" and that seems to work, but it's not the solution I was looking for, since the MinGW toolchain still doesn't appear alongside the Linux GCC toolchain in the wizard and it's not as practical as I was hoping for.
[Updated on: Tue, 22 March 2022 03:34] Report message to a moderator
|
|
|
|
Re: [Problem] Can't use MinGW toolchain, even if MinGW is installed. [message #1850936 is a reply to message #1850933] |
Tue, 22 March 2022 20:09 |
Guido Barbieri Messages: 2 Registered: March 2022 |
Junior Member |
|
|
Thanks for the answer! Yes, that's what I'm doing right now for cross compile and it works.
But, I was hoping to have something like this in the C/C++ wizard:
You can see that MinGW appears there, directly without the need of using the Cross GCC compiler. In my case since I use a Linux system, MinGW is replaced with the Linux GCC compiler, but I was wondering if it's possible to add in the toolchain window the MinGW option on my Linux system.
I repeat, I can compile with Cross GCC without issues when I put the prefix and path, but, I would like to add the MinGW option like the image above shows, I'm not sure if this is possible to do, but I can't think why it shouldn't be either. As of now, If I force it by selecting it in Properties < C/C++ Build < Tool Chain editor, it will say "Tool chain MinGW is not detected".
Thanks in advance!
[Updated on: Tue, 22 March 2022 20:12] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.05583 seconds