标签: cygpath

msys路径转换(或msys的cygpath?)

我需要将/DEF:c:\filepath\myLib.def"命令行选项从bash脚本传递给MS编译器/链接器.该路径是作为构建过程的一部分由bash脚本生成的.基本上,我的脚本的参数通行证是:

-DEF:/c/filepath/myLib.def
Run Code Online (Sandbox Code Playgroud)

MSYS路径转换无法正确处理它,因为它不了解/DEF:部分.如果我这样做的话

-DEF=/c/filepath/myLib.def
Run Code Online (Sandbox Code Playgroud)

但是ms工具不理解这个参数.简而言之,在MSYS bash中编写该参数的正确方法是什么,以便将其转换为正确的参数?

在cygwin上我可以使用cygpath,但没有相应的,因为msys的某些人认为它不需要(即使cygwin的脚本使用cygpath).

portability path msys mingw32 cygpath

32
推荐指数
4
解决办法
2万
查看次数

无法在android中启动cygpath

当我尝试将项目导入我的工作区时,它显示错误

[2013-03-17 16:14:15 - 无法启动cygpath.是Cygwin的路径吗?] java.io.IOException:无法运行程序"cygpath":CreateProcess error = 2,系统找不到指定的文件

这个项目包含jni库,它是一个基于ndk的项目.为什么会发生这个错误我不能将这个项目导入我的系统.

java-native-interface android android-ndk cygpath

29
推荐指数
1
解决办法
3万
查看次数

有人用MinGW/MSYS成功编译了freetype吗?

我试图用MinGW/MSYS编译freetype是不成功的

这是我做的:

cmd.exe我切换到MSYS:

C:\temp\freetype-2.3.5-1\src\freetype\2.3.5\freetype-2.3.5>bash
Run Code Online (Sandbox Code Playgroud)

然后调用configure脚本

bash-3.1$ ./configure

FreeType build system -- automatic system detection

The following settings are used:

  platform                    unix
  compiler                    cc
  configuration directory     ./builds/unix
  configuration rules         ./builds/unix/unix.mk

If this does not correspond to your system or settings please remove the file
`config.mk' from this directory then read the INSTALL file for help.

Otherwise, simply type `make' again to build the library,
or `make refdoc' to build the API reference (the latter needs …
Run Code Online (Sandbox Code Playgroud)

cygwin mingw freetype gnu-make cygpath

9
推荐指数
1
解决办法
6162
查看次数

无法启动cygpath

我是openCV的新手,我下载它以便在Eclipse Juno中使用它.

我有下载版本2.4.6,我已下载NDK版本R9,我正在使用Windows平台,但由于以下错误,仍然无法运行openCV的教程.我按照本文档中的步骤操作.

我试图改变构建路径部分的路径(C:\android-ndk\android-ndk-r9\ndk-build.cmd NDK_DEBUG=1)

[2013-10-29 18:06:56 - Unable to launch cygpath. Is Cygwin on the path?] java.io.IOException: Cannot run program "cygpath": CreateProcess error=2, The system cannot find the file specified
[2013-10-29 18:07:12 - ManagerActivity] Manifest attribute 'minSdkVersion' is set to '@ANDROID_NATIVE_API_LEVEL@'. Integer is expected.
[2013-10-29 18:07:13 - package] Manifest attribute 'minSdkVersion' is set to '@ANDROID_SDK_VERSION@'. Integer is expected.
Run Code Online (Sandbox Code Playgroud)

java eclipse opencv android-ndk cygpath

5
推荐指数
1
解决办法
9176
查看次数

Cygwin无法执行shell脚本

我试图.sh在Windows 7上使用Cygwin 执行一个文件,我收到一个错误cannot execute binary file.

这是我在Cygwin命令提示符窗口中编写的内容:

$ bash cygpath --unix C:\Users\\MyName\\Documents\\MyProject\\dygraphsMaster\\generate-combined.sh
Run Code Online (Sandbox Code Playgroud)

这是结果:

/usr/bin/cygpath: /usr/bin/cygpath: cannot execute binary file
Run Code Online (Sandbox Code Playgroud)

shell cygwin windows-7 cygpath

5
推荐指数
1
解决办法
1595
查看次数

cygpath无法将Windows路径转换为Linux路径

我试图在Windows机器上将文件路径转换为Linux和Windows.

unix路径到windows工作正常.

$ cygpath -w /cygdrive/c/CYGWIN/CYGBuild/build.mak
C:\CYGWIN\CYGBuild\build.mak
Run Code Online (Sandbox Code Playgroud)

但Windows的Linux路径输出错误.即缺少'/'和cygdrive

$ cygpath -u c:\cygwin\cygbuild\build.mak
c:cygwincygbuildbuild.mak
Run Code Online (Sandbox Code Playgroud)

有谁遇到过这个问题?分享您的经验.

谢谢

cygwin cygpath

5
推荐指数
1
解决办法
9045
查看次数