简体   繁体   English

netbeans8.2 + msys2_64 + mingw64 + cygwin64 + C 项目构建错误

[英]netbeans8.2 + msys2_64 + mingw64 + cygwin64 + C project build errors

On new HP tower G4 workstation with Xeon E2224G processor, Windows 10 pro for wokstations OS build 19042.746.在配备 Xeon E2224G 处理器的全新 HP 塔式 G4 工作站上,Windows 10 pro for wokstations OS build 19042.746。

install netbeans 8.2安装 netbeans 8.2

Install msys2_64 and mingw64安装 msys2_64 和 mingw64

set path e:\msys64\usr\bin;设置路径 e:\msys64\usr\bin; e:\msys64\mingw64\bin; e:\msys64\mingw64\bin; %PATH% %小路%

Verify that make,sh,bash,rm and more are in e:\msys64\usr\bin configure netbeans for C project and try to clean and build and get this error:验证 make,sh,bash,rm 等是否在 e:\msys64\usr\bin 为 C 项目配置 netbeans 并尝试构建并清除此错误:

'No shell found. Cannot proceed. Please install either CYGWIN or Msys.'

OK then, install cygwin.好的,然后安装cygwin。 Now get this error:现在得到这个错误:

'1 [main] rm (7980) E:\cygwin64\bin\rm.exe: *** fatal error - cygheap base mismatch detected - 0x180345408/0x180347408.'
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
cygcheck -c gives
base-cygwin          3.8-1              OK
base-files           4.3-2              OK
cygwin               3.1.7-1            OK

I have searched and there is only one cygwin1.dll我已经搜索了,只有一个 cygwin1.dll

frank@FRANK_NEW ~
$ which cygwin1.dll
/usr/bin/cygwin1.dll

I have restarted the machine several times to no avail.我已经重新启动了几次机器,但无济于事。

I have been using netbeans and mingw then msys/mingw for about 10 years and have the combination working on other desktop and laptop machines, but have not had this problem.我一直在使用 netbeans 和 mingw 然后是 msys/mingw 大约 10 年,并且在其他台式机和笔记本电脑上使用该组合,但没有遇到这个问题。

Thanks for the replies above.谢谢楼上的回复。 The problem here is the different ways that PATH is handled by Windows 10 Pro and Windows 10 Pro for Workstations.这里的问题是 PATH 由 Windows 10 Pro 和 Windows 10 Pro for Workstations 处理的不同方式。

For Win10 Pro define a user variable 'MSYS_HOME' give it a value of 'E:\msys64\usr\bin' now put that in the system path ie some system path;%MSYS_HOME%;more system path Netbeans will find the tools rm, sh, make, etc and complete the clean and build of the project.对于 Win10 Pro 定义一个用户变量 'MSYS_HOME' 给它一个值 'E:\msys64\usr\bin' 现在把它放在系统路径中,即一些系统路径;%MSYS_HOME%;更多系统路径 Netbeans 将找到工具 rm , sh, make 等并完成项目的清理和构建。

for Win10 Pro for Worksations the above did not work.对于 Win10 Pro for Worksations,上述方法不起作用。 Netbeans would not build the project and give the error 'No shell found. Netbeans 不会构建项目并给出错误“未找到 shell。 Cannot proceed.无法继续。 Please install either CYGWIN or Msys.'请安装 CYGWIN 或 Msys。 the path has to be set in the system path directly ie some system path;E:\msys64\usr\bin;more system path this made Netbeans work correctly to perform clean and build.路径必须直接在系统路径中设置,即一些系统路径;E:\msys64\usr\bin;更多系统路径这使得 Netbeans 可以正常工作以执行清理和构建。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 迁移到 MSYS2/MinGW64 时 Header 路径不匹配 - Header paths mismatch when migrating to MSYS2/MinGW64 用mingw64编译一个mpi项目 - compiling a mpi project with mingw64 Java JNI C程序可以与Mingw32一起正常运行,而不能与Cygwin64一起运行 - Java JNI C Program Works fine with Mingw32 and not with Cygwin64 如何使用 Cygwin64 为 Windows 构建 C Python 扩展? - How do I build a C Python Extension for Windows using Cygwin64? Msys2和Mingw64系统包含目录不正确,阻止了GLib的使用 - Msys2 and Mingw64 system include directory is incorrect preventing the use of GLib Mingw64 / Msys2 - gcc 无法在其自己的包含目录中找到标头 - Mingw64 / Msys2 - gcc unable to find headers in its own include dir minGW64 在 C 程序中使用静态 libcurl.a - using static libcurl.a in C program by minGW64 如何使用 Cygwin64 和 Clang 构建 32 位应用程序? - How to build a 32bit app using Cygwin64 and Clang? c 语言 C:/mingw/mingw64/x86_64-w64-mingw32/include/wingdi.h:1706:5: 错误: 未知类型名称 'DWORD' - c language C:/mingw/mingw64/x86_64-w64-mingw32/include/wingdi.h:1706:5: error: unknown type name 'DWORD' 在 Windows 上使用 Cygwin64 编译器和调试器为 C 设置 VS 代码(错误:无法开始调试) - Setting up VS Code for C using Cygwin64 Compiler and Debugger on Windows (ERROR: Unable to start debugging)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM