Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » preparing eclipse for c/c++ development(Installed MinGW is not available on eclipse)
preparing eclipse for c/c++ development [message #1804548] Thu, 28 March 2019 11:51 Go to next message
Eclipse UserFriend
Please help (just started building eclipse CDT for C/C++ development 2019-03-28)
Installed MinGW is not available on eclipse.

Installed packages: eclipse-cpp-2019-03-R-win32-x86_64, JavaSetup8u201, and mingw-w64-install on Windows 10 Home 64 system (newly purchased from HP model Omen 15.6" laptop)

New path, ;C:\MinGW\mingw32\bin (C:\MinGW is chosen during MinGW installation) has been added to environment variable path. Eclipse launched properly. However, MinGW is not available on eclipse.

John 2019-03-28T11:45-04:00 Thursday
Re: preparing eclipse for c/c++ development [message #1804636 is a reply to message #1804548] Fri, 29 March 2019 13:29 Go to previous messageGo to next message
Eclipse UserFriend
Are you sure that mingw32 is a correct directory, as there is no more 32 bit host support in Eclipse, and it seems to me that you have correctly otherwise a 64 bit system.

Sorry, I do not have enough Windows to check.
Re: preparing eclipse for c/c++ development [message #1804711 is a reply to message #1804636] Fri, 29 March 2019 23:46 Go to previous messageGo to next message
Eclipse UserFriend
First, thanks for your response. I have set the directory as C:\Mingw before installation. During installation, mingw-w64-install created mingw32 under this directory and install all directories under this mingw32.

It is when I find the WinGW is not available, I then checked and found that MinGW installer put all directories, including bin, under directory mingw32, which is under C:\MinGW, i. e. C:\MinGW\mingw32\.

As I remembered, all directories suppose to be under C:\MinGW directory along with mingw32 as one of directories. I have also tried to copy all directories back to C:\MinGW, knowing it is not right way. But it is still not working as expected.

Is it possible due to HP laptop Omen, HP Window 10 Home 64, operating system?
Re: preparing eclipse for c/c++ development [message #1804724 is a reply to message #1804711] Sat, 30 March 2019 09:42 Go to previous messageGo to next message
Eclipse UserFriend
I have also tested "gcc" from Command Prompt, and found copy directories over is invalid.

Microsoft Windows [Version 10.0.17763.379]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\johnt>gcc
gcc: fatal error: no input files
compilation terminated.

C:\Users\johnt>C:\MinGW\mingw32\bin\gcc
gcc: fatal error: no input files
compilation terminated.

C:\Users\johnt>C:\MinGW\bin\gcc
The system cannot find the path specified.

C:\Users\johnt>
Re: preparing eclipse for c/c++ development [message #1804727 is a reply to message #1804724] Sat, 30 March 2019 10:33 Go to previous messageGo to next message
Eclipse UserFriend
Did you use the Windows command interpreter or the MinGW one?

Your PATH may be not good for MinGW.
Re: preparing eclipse for c/c++ development [message #1804738 is a reply to message #1804727] Sat, 30 March 2019 16:24 Go to previous messageGo to next message
Eclipse UserFriend
I have tried both and no difference.

My understanding is that MinGW installer added new path, C:\MinGW\mingw32\bin automatically, during the installation. However, eclipse environmental setting for MinGW is to look over "gcc" under the directory C:\MinGW\bin, therefore, it finds none.

Is there any way that eclipse can be setup such that it could able to look over gcc at C:\MinGW\mingw32\bin instead of C:\MinGW\bin?
Re: preparing eclipse for c/c++ development [message #1804755 is a reply to message #1804738] Sun, 31 March 2019 10:14 Go to previous messageGo to next message
Eclipse UserFriend
This is what I have found from eclipse ccosole window preference C/C++ - Core Build Toolchains:

Core Build Toolchains: available Toolchains for GCC win32-i686 C:\MinGW\mingw32\bin\gcc.exe, and the other is C:\MinGW\mingw32\bin\i686-w64-mingw32-gcc.exe.

Based on eclipse's available Toolchains for GCC, I believe that I have not get MinGW source properly.
Or, this new eclipse 2019-03 has different settings on the Toolchains.

I have tried to download previous version but eclipse site would not allow me to download previous release, eclipse Photon, nor Eclipse IDE 2018-12, after submitted donation again.
Re: preparing eclipse for c/c++ development [message #1804757 is a reply to message #1804755] Sun, 31 March 2019 11:50 Go to previous messageGo to next message
Eclipse UserFriend
Found problem! MinGW installed but not setup to use. After running mingw-get-setup for basic package, MinGW GCC has been shown for choosing.

I started to build Hello World as first project test1 but failed with following message displayed on console. Please tell me how to fix this issue.

11:32:33 **** Incremental Build of configuration Debug for project test1 ****
make all
Cannot run program "make": Launching failed

Error: Program "make" not found in PATH
PATH=[C:/Program Files/Java/jre1.8.0_202/bin/server;C:/Program Files/Java/jre1.8.0_202/bin;C:/Program Files/Java/jre1.8.0_202/lib/amd64;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\MinGW\mingw32\bin;C:\MinGW\bin;C:\Users\johnt\AppData\Local\Microsoft\WindowsApps;C:\MinGW\mingw32\bin;C:\MinGW\bin;;C:\eclipse]

11:32:33 Build Failed. 1 errors, 0 warnings. (took 55ms)
Re: preparing eclipse for c/c++ development [message #1804762 is a reply to message #1804757] Sun, 31 March 2019 14:04 Go to previous messageGo to next message
Eclipse UserFriend
In the time of Windows XP, MinGW needed an accessory package of MSYS to be installed from the MinGW repository. It seems that you're missing it or the utilities are not in your PATH.

Sorry, I still do not have any newer Windowses to check.
Re: preparing eclipse for c/c++ development [message #1804877 is a reply to message #1804762] Tue, 02 April 2019 11:58 Go to previous message
Eclipse UserFriend
First, I have found an old package, eclipse Kepler, from my old laptop downloaded few years ago. I tried installed onto the new HP Omen laptop. I found that this old version is working with no additional effort needed.

Then, I see your reply and checked my laptop Omen. I have found the installed MSYS packages, is configured just for "Basic Setup"group that does not include the following MSYS packages, msys-autoconf, msys-automake, msys-binutils, msys-gcc, msys-gettext, msys-libiconv, msys-libtool.

I have installed above missing packages. However, new newly downloaded eclipse 2019-03 is still shown that "make" could not be found, therefore, build failed.

Because eclipse Kepler is running without problem. Is it possible that the new package, eclipse-cpp-2019-03-R-win32-x86_64, missing something?
Previous Topic:Debugging inside docker container: shared object file not found.
Next Topic:How to view the complete string of a variable in eclipse C++?
Goto Forum:
  


Current Time: Thu May 01 12:48:45 EDT 2025

Powered by FUDForum. Page generated in 0.04571 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top