Eclipse CDT没有找到Cygwin或MinGW工具链 [英] Eclipse CDT does not find either Cygwin or MinGW toolchain

查看:270
本文介绍了Eclipse CDT没有找到Cygwin或MinGW工具链的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难将Eclipse Juno配置为C / C ++。我是Windows用户,所以我已经安装了 Cygwin MinGW CDT 在Eclipse下。也正确地配置了 PATH 变量,尽管我在Eclipse C / C ++新项目中还没有任何新的工具链。



这些是我的Eclipse详细信息:

 适用于Web开发人员的Eclipse Java EE IDE。 

版本:Juno发行
构建ID:20120614-1722

另请参见Eclipse安装组件的映像。

从Windows命令行封装了一些outout:

  C:\> echo%path%
C:\Program Files\Common Files\Microsoft Shared\ Windows Live; C:\程序文件(x8
6)\Common Files\Microsoft Shared\Windows Live; C:\Windows\system32; C:\Windows; C:\
Windows \System32\Wbem; C:\Windows\System32\WindowsPowerShell\v1.0\; C:\Program Fil
es(x86)\ATI Technologies\ ATI.ACE\Core-Static; C:\Program Files\MiKTeX 2.9\miktex
\bin\x64\; C:\Program Files\MATLAB\R2011b\runtime \win64; C:\Program Files\MATLAB\R
2011b \bin; C:\Program文件(x86)\Windows Live\Shared; C:\Program Files\ Java\jdk\b
in; C:\Program Files(x86)\Java\jre\bin; C:\程序文件(x86)\Android\android-sd
k\platform-tools; C:\Program文件(x86)\Android\android-sdk\tools; C: \Program Fil
es \Python32; C:\Program Files(x86)\Notepad ++; C:\tomcat\bin; C:\Users\Administrato
r \AppData C:\程序文件(x86) \\AppData\Roaming\\\
pm; C:\MinGW\bin; C:\MSYS\bin; C:\cyg
win \bin

C: \> gdb --version
GNU gdb(GDB)7.4
版权所有(C)2012免费软件基金会,
许可证GPLv3 +:GNU GPL版本3或更高版本< http: //gnu.org/licenses/gpl.html>
这是免费软件:您可以自由更改并重新分发。
在法律允许的范围内,没有任何保证。输入显示复制
和显示保修的详细信息。
这个GDB被配置为i686-pc-mingw32。
有关错误报告说明,请参阅:
< http://www.gnu.org/software/gdb/bugs/> ;.

C:\> make --version
GNU Make 3.81
版权所有(C)2006免费软件基金会,
这是免费软件;看到复制条件的来源。
没有保修;甚至没有适销性或适用于A
特定目的。

此程序为i386-pc-mingw32

C:\> g ++ --version
g ++(GCC)4.7.0
版权所有(C)2012免费软件基金会,
这是免费软件;看到复制条件的来源。没有
保修;甚至不适用于适销性或适用于特定目的。

C:\> gcc --version
gcc(GCC)4.7.0
版权所有(C)2012免费软件基金会,
这是免费软件;看到复制条件的来源。没有
保修;甚至不适用于适销性或适用于特定目的。

Cygwin shell的封闭输出:

  Cygwin包信息
包版本状态
_autorebase 000085-1 OK
_update-info-dir 01054-1 OK
alternative 1.3.30c- 10 OK
autoconf 10-1 OK
autoconf2.1 2.13-10 OK
autoconf2.5 2.68-1 OK
automake1.9 1.9.6-10 OK
base-cygwin 3.1-1 OK
base-files 4.1-1 OK
bash 4.1.10-4 OK
binutils 2.22.51-2 OK
bzip2 1.0.6-2 OK
colorgcc 1.3.2-2 OK
coreutils 8.15-1 OK
crypt 1.2-1 OK
cygutils 1.4.10-2 OK
cygwin 1.7.15-1 OK
cygwin-doc 1.7-1 OK
破折号0.5.7-1 OK
dejagnu 20021217-2 OK
diffutils 3.2-1 OK
dos2unix 6.0-1 OK
editrights 1.01-2 OK
expect 5.45-1 OK
file 5.11-1 OK
findutils 4.5.9-2 OK
gawk 4.0.1-1 OK
gcc 3.4.4-999 OK
gcc-core 3.4.4-999 OK
gcc -g ++ 3.4.4-999 OK
gcc-mingw 20040810-1 OK
gcc-mingw-core 20050522-3 OK
gcc-mingw-g ++ 20050522-3 OK
gcc-tools-epoch1-autoconf 2.59-1 OK
gcc-tools-epoch1-automake 1.9.6-1 OK
gcc-tools-epoch2-autoconf 2.64-1 OK
gcc- tools-epoch2-automake 1.11.1-1 OK
gcc4 4.5.3-3 OK
gcc4-core 4.5.3-3 OK
gcc4-g ++ 4.5.3-3 OK
gdb 7.3.50-3 OK
gdbm 1.8.3-20 OK
gettext 0.18.1.1-2 OK
grep 2.6.3-1 OK
groff 1.21-2 OK
gzip 1.4-1 OK
ipc-utils 1.0-1 OK
less 444-1 OK
libattr1 2.4.46-1 OK
libbz2_1 1.0.6- 2 OK
libcloog0 0.15.7-1 OK
libdb4.5 4.5.20.2-3 OK
libffi4 4.5.3-3 OK
libgcc1 4.5.3-3 OK
libgdbm 1.8.0-5 OK
libgdbm-devel 1.8.3- 20 OK
libgdbm4 1.8.3-8 OK
libgmp3 4.3.2-1 OK
libgmpxx4 4.3.2-1 OK
libgomp1 4.5.3-3 OK
libiconv2 1.14-2 OK
libintl3 0.14.5-1 OK
libintl8 0.18.1.1-2 OK
liblzma5 5.0.2_20110517-1 OK
libmpc1 0.8-1 OK
libmpfr1 2.4.1-4 OK
libmpfr4 3.0.1-1 OK
libncurses10 5.7-18 OK
libncurses9 5.7-16 OK
libncursesw10 5.7-18 OK
libpcre0 8.21-2 OK
libpopt0 1.6.4-4 OK
libppl 0.10.2-1 OK
libreadline7 6.1.2-3 OK
libsigsegv2 2.10-1 OK
libssp0 4.5.3-3 OK
libstdc ++ 6 4.5.3-3 OK
libstdc ++ 6-devel 4.5.3-3 OK
登录1.10-10 OK
m4 1.4.16-1 OK
make 3.82.90-1 OK
man 1.6g-1 OK
mingw-binutils 2.21-1 OK
mingw-gcc-core 4.5.2-1 OK
mingw-gcc-g ++ 4.5.2-1 OK
mingw-pthreads 20110507-1 OK
mingw-runtime 3.20-1 OK
mingw-w32api 3。 17-2 OK
mingw64-i686-binutils 2.22.52-1 OK
mingw64-i686-gcc 4.5.3-6 OK
mingw64-i686-gcc-core 4.5.3-6 OK
mingw64-i686-gcc-g ++ 4.5.3-6 OK
mingw64-i686-headers 3.0b_svn5134-1 OK
mingw64-i686-pthreads 20100619-4 OK
mingw64 -i686-runtime 3.0b_svn5134-1 OK
mingw64-x86_64-binutils 2.22.52-1 OK
mingw64-x86_64-gcc 4.5.3-6 OK
mingw64-x86_64-gcc-core 4.5.3-6 OK
mingw64-x86_64-gcc-g ++ 4.5.3-6 OK
mingw64-x86_64-headers 3.0b_svn5134-1 OK
mingw64-x86_64-pthreads 20100619-4 OK
mingw64-x86_64-runtime 3.0b_svn5134-1 OK
mintty 1.1.1-1 OK
perl 5.10.1-5 OK
rebase 4.2.0-1 OK
运行1.1.13-1 OK
sed 4.2.1-2 OK
tar 1.25-1 OK
tcl 8.5.11-1 OK
terminfo 5.7_20091114-14 OK
texinfo 4.13-4 OK
tzcode 2012b-1 OK
w32api 3.17-2 OK
其中2.20-2 OK
xz 5.0.2_20110517-1 OK
zlib0 1.2.7-1 OK

我也很熟悉为什么MinGW不会显示在Eclipse / Indigo CDT工具链的列表中?如何处理Eclipse CDT + Cygwin? http://wyding.blogspot.com/2009/04/setup-cygwin-toolchain-in-eclipse-cdt.html



任何人都可以帮助我意识到有什么问题?

解决方案

我有同样的问题。
我已经找到了两种可能的解决方案:


  1. 取消选中仅当项目类型和工具链平台,当您选择新建项目 - > C ++项目 - >项目类型:可执行文件时。


  2. 卸载GNU Autotools,然后您可以看到所需的选项。



I am having hard times to configure Eclipse Juno to for C/C++. I am a Windows user, so I have installed Cygwin and MinGW, and CDT under Eclipse. Also configured the PATH variable correctly, though I still do not have any new toolchain in Eclipse C/C++ new project.

These are my Eclipse details:

Eclipse Java EE IDE for Web Developers.

Version: Juno Release
Build id: 20120614-1722

Also, see image of installed component of Eclipse. Enclosed some outout from Windows command line:

C:\>echo %path%
C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x8
6)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\
Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Fil
es (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\MiKTeX 2.9\miktex
\bin\x64\;C:\Program Files\MATLAB\R2011b\runtime\win64;C:\Program Files\MATLAB\R
2011b\bin;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Java\jdk\b
in;C:\Program Files (x86)\Java\jre\bin;C:\Program Files (x86)\Android\android-sd
k\platform-tools;C:\Program Files (x86)\Android\android-sdk\tools;C:\Program Fil
es\Python32;C:\Program Files (x86)\Notepad++;C:\tomcat\bin;C:\Users\Administrato
r\AppData\Roaming\npm;C:\Program Files (x86)\Gnu\GnuWin32\bin;C:\Program Files\n
odejs;C:\Users\Administrator\AppData\Roaming\npm;C:\MinGW\bin;C:\MSYS\bin;C:\cyg
win\bin

C:\>gdb --version
GNU gdb (GDB) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.    

C:\>make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-pc-mingw32

C:\>g++ --version
g++ (GCC) 4.7.0
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

C:\>gcc --version
gcc (GCC) 4.7.0
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Enclosed output from Cygwin shell:

Cygwin Package Information
Package                   Version              Status
_autorebase               000085-1             OK
_update-info-dir          01054-1              OK
alternatives              1.3.30c-10           OK
autoconf                  10-1                 OK
autoconf2.1               2.13-10              OK
autoconf2.5               2.68-1               OK
automake1.9               1.9.6-10             OK
base-cygwin               3.1-1                OK
base-files                4.1-1                OK
bash                      4.1.10-4             OK
binutils                  2.22.51-2            OK
bzip2                     1.0.6-2              OK
colorgcc                  1.3.2-2              OK
coreutils                 8.15-1               OK
crypt                     1.2-1                OK
cygutils                  1.4.10-2             OK
cygwin                    1.7.15-1             OK
cygwin-doc                1.7-1                OK
dash                      0.5.7-1              OK
dejagnu                   20021217-2           OK
diffutils                 3.2-1                OK
dos2unix                  6.0-1                OK
editrights                1.01-2               OK
expect                    5.45-1               OK
file                      5.11-1               OK
findutils                 4.5.9-2              OK
gawk                      4.0.1-1              OK
gcc                       3.4.4-999            OK
gcc-core                  3.4.4-999            OK
gcc-g++                   3.4.4-999            OK
gcc-mingw                 20040810-1           OK
gcc-mingw-core            20050522-3           OK
gcc-mingw-g++             20050522-3           OK
gcc-tools-epoch1-autoconf 2.59-1               OK
gcc-tools-epoch1-automake 1.9.6-1              OK
gcc-tools-epoch2-autoconf 2.64-1               OK
gcc-tools-epoch2-automake 1.11.1-1             OK
gcc4                      4.5.3-3              OK
gcc4-core                 4.5.3-3              OK
gcc4-g++                  4.5.3-3              OK
gdb                       7.3.50-3             OK
gdbm                      1.8.3-20             OK
gettext                   0.18.1.1-2           OK
grep                      2.6.3-1              OK
groff                     1.21-2               OK
gzip                      1.4-1                OK
ipc-utils                 1.0-1                OK
less                      444-1                OK
libattr1                  2.4.46-1             OK
libbz2_1                  1.0.6-2              OK
libcloog0                 0.15.7-1             OK
libdb4.5                  4.5.20.2-3           OK
libffi4                   4.5.3-3              OK
libgcc1                   4.5.3-3              OK
libgdbm                   1.8.0-5              OK
libgdbm-devel             1.8.3-20             OK
libgdbm4                  1.8.3-8              OK
libgmp3                   4.3.2-1              OK
libgmpxx4                 4.3.2-1              OK
libgomp1                  4.5.3-3              OK
libiconv2                 1.14-2               OK
libintl3                  0.14.5-1             OK
libintl8                  0.18.1.1-2           OK
liblzma5                  5.0.2_20110517-1     OK
libmpc1                   0.8-1                OK
libmpfr1                  2.4.1-4              OK
libmpfr4                  3.0.1-1              OK
libncurses10              5.7-18               OK
libncurses9               5.7-16               OK
libncursesw10             5.7-18               OK
libpcre0                  8.21-2               OK
libpopt0                  1.6.4-4              OK
libppl                    0.10.2-1             OK
libreadline7              6.1.2-3              OK
libsigsegv2               2.10-1               OK
libssp0                   4.5.3-3              OK
libstdc++6                4.5.3-3              OK
libstdc++6-devel          4.5.3-3              OK
login                     1.10-10              OK
m4                        1.4.16-1             OK
make                      3.82.90-1            OK
man                       1.6g-1               OK
mingw-binutils            2.21-1               OK
mingw-gcc-core            4.5.2-1              OK
mingw-gcc-g++             4.5.2-1              OK
mingw-pthreads            20110507-1           OK
mingw-runtime             3.20-1               OK
mingw-w32api              3.17-2               OK
mingw64-i686-binutils     2.22.52-1            OK
mingw64-i686-gcc          4.5.3-6              OK
mingw64-i686-gcc-core     4.5.3-6              OK
mingw64-i686-gcc-g++      4.5.3-6              OK
mingw64-i686-headers      3.0b_svn5134-1       OK
mingw64-i686-pthreads     20100619-4           OK
mingw64-i686-runtime      3.0b_svn5134-1       OK
mingw64-x86_64-binutils   2.22.52-1            OK
mingw64-x86_64-gcc        4.5.3-6              OK
mingw64-x86_64-gcc-core   4.5.3-6              OK
mingw64-x86_64-gcc-g++    4.5.3-6              OK
mingw64-x86_64-headers    3.0b_svn5134-1       OK
mingw64-x86_64-pthreads   20100619-4           OK
mingw64-x86_64-runtime    3.0b_svn5134-1       OK
mintty                    1.1.1-1              OK
perl                      5.10.1-5             OK
rebase                    4.2.0-1              OK
run                       1.1.13-1             OK
sed                       4.2.1-2              OK
tar                       1.25-1               OK
tcl                       8.5.11-1             OK
terminfo                  5.7_20091114-14      OK
texinfo                   4.13-4               OK
tzcode                    2012b-1              OK
w32api                    3.17-2               OK
which                     2.20-2               OK
xz                        5.0.2_20110517-1     OK
zlib0                     1.2.7-1              OK

I am also familiar with Why doesn't MinGW show up in the list of Eclipse/Indigo CDT Toolchains? and How to deal with Eclipse CDT+Cygwin? and http://wyding.blogspot.com/2009/04/setup-cygwin-toolchain-in-eclipse-cdt.html

Could anyone help me realize what is wrong?

解决方案

I have the same problem. I have found two possible solutions:

  1. Uncheck "Show project types and toolchains only if they are supported on the platform" when you choose "New Project->C++ Project->Project Type: Executable".

  2. Uninstall the "GNU Autotools", then you can see options that you want.

这篇关于Eclipse CDT没有找到Cygwin或MinGW工具链的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆