我需要将/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).
当我尝试将项目导入我的工作区时,它显示错误
[2013-03-17 16:14:15 - 无法启动cygpath.是Cygwin的路径吗?] java.io.IOException:无法运行程序"cygpath":CreateProcess error = 2,系统找不到指定的文件
这个项目包含jni库,它是一个基于ndk的项目.为什么会发生这个错误我不能将这个项目导入我的系统.
我试图用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) 我是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) 我试图.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) 我试图在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)
有谁遇到过这个问题?分享您的经验.
谢谢