Questions tagged [cygpath]

For issues relating to the cygpath path converter utility.

The cygpath program is a utility to convert and native filenames to -style pathnames and vice versa.

28 questions
39
votes
8 answers

msys path conversion (or cygpath for msys?)

I need to pass /DEF:c:\filepath\myLib.def" command line option from a bash script to MS compiler/linker. The path is generated as part of build process by a bash script. Basically, the argument that my script passes…
Pavel P
  • 13,962
  • 11
  • 68
  • 109
29
votes
3 answers

Unable to launch cygpath in android

When i am trying to import a project to my workspace it shows an error [2013-03-17 16:14:15 - Unable to launch cygpath. Is Cygwin on the path?] java.io.IOException: Cannot run program "cygpath": CreateProcess error=2, The system cannot find…
jithu
  • 686
  • 1
  • 9
  • 12
9
votes
1 answer

Has someone successfully compiled freetype with MinGW/MSYS?

I am unsucessful trying to compile freetype with MinGW/MSYS Here's what I do: From cmd.exe I switch in to MSYS: C:\temp\freetype-2.3.5-1\src\freetype\2.3.5\freetype-2.3.5>bash And then call the configure script bash-3.1$ ./configure FreeType build…
René Nyffenegger
  • 35,550
  • 26
  • 140
  • 232
5
votes
1 answer

Cygwin can't execute shell script

I am trying to execute a .sh file with Cygwin on Windows 7, and I'm getting an error cannot execute binary file. Here is what I wrote in the Cygwin command prompt window: $ bash cygpath --unix…
dmr
  • 19,157
  • 34
  • 91
  • 136
5
votes
2 answers

Unable to launch cygpath

I am new to openCV and I downloaded it to work with it in Eclipse Juno. I have download version 2.4.6 and I have download NDK version R9 and I am working on windows platform and still can't run the tutorials of openCV because of the following…
Sereen Shalby
  • 215
  • 1
  • 5
  • 15
5
votes
4 answers

cygpath not able to convert Windows path to Linux path

Im trying to convert the file paths to/from Linux and Windows on Windows Machine. unix path to windows works fine. $ cygpath -w /cygdrive/c/CYGWIN/CYGBuild/build.mak C:\CYGWIN\CYGBuild\build.mak But windows path to Linux gives wrong output. i.e…
Jeyaram
  • 8,315
  • 5
  • 35
  • 59
2
votes
2 answers

java.io.IOException:Cannot run program "sh" (in directory"c:\cygwin\bin\test"):CreateProcess error=2.The system cannot find file specified

I am running shell scripts with the help of java and cygwin. When i am running my code in windows xp it works fine. Now i am trying to run same code on windows 7 i am getting above error. (java.io.IOException)java.io.IOException: Cannot run program…
Code Hungry
  • 3,520
  • 20
  • 62
  • 91
2
votes
1 answer

Hadoop Cygwin Windows 7 JAVA_HOME Path not found and command not found

i have tried all possible solutions through google but still not working i am not getting what is this command not found error from hadoop-env.sh and bin/java not such a directory, Here is hadoop-env.sh export JAVA_HOME=/cygdrive/c/Java/jre6 export…
Sarde
  • 550
  • 1
  • 7
  • 17
2
votes
3 answers

cygpath doesn't convert Windows path correctly

command line shell echo %PIG_HOME% C:\cygwin\usr\lib\pig cygwin echo $PIG_HOME C:\cygwin\usr\lib\pig echo $( cygpath -u "$PIG_HOME" ) /usr/lib/pig cd $( cygpath -u "$PIG_HOME" ) -bash: cd: /usr/lib/pig: No such file or directory Question: why is…
ATN
  • 665
  • 8
  • 26
1
vote
2 answers

Translating Cygwin path to Windows

HI, I have cygwin installed in my Windows system. I have written two function in my profile file so that every time I open vi/vim, it will open with gvim. But with this one of the issue, the windows path and Cygwin path. I tried with Cygpath as…
hari
  • 1,379
  • 3
  • 16
  • 29
1
vote
1 answer

Cygpath and accents (àèìòù)

cygpath doesn't seem to correctly handle paths with accents, e.g. C:\cygwin64\bin>cygpath --absolute -C UTF8 "C:\foo\àòè\foo2" prints /usr/bin/"C:/foo/àòè/foo2" whereas I would expect: /cygdrive/c/foo/àòè/foo2 The same path without accents yields…
Polletto
  • 349
  • 2
  • 12
1
vote
1 answer

How to install and build NS-3 using bake

I am trying to download, build and test NS-3 using bake by typing the following commands on Cygwin on windows 7: $ cd $ mkdir workspace $ cd workspace $ hg clone http://code.nsnam.org/bake Then I changed the directory to bake directory and…
user5483831
1
vote
1 answer

cygpath inconsistent with variable as input unix to windows conversion

I have a bash script that prompts a user to drag and drop a file as an input and then I need to convert that path to windows style path so I can use it as an argument to an .exe that is being called: echo -e "\nPlease drag and drop your input audio…
jwsmite
  • 11
  • 1
1
vote
1 answer

Who handles the paths in Cygwin

I am curious to find out who handles the paths in cygwin. For instance if I do the following, it works: cd C:\ However when I do: $ pwd /cygdrive/c Who is responsible for the discrepancy here? The reason I am curious is that "cd C:" among'st other…
Har
  • 3,005
  • 8
  • 27
  • 63
1
vote
2 answers

Always get path starting /cygdrive from cygpath?

On Cygwin, the cygpath application translates between Windows and Unix-style paths. Consider the following examples: $ cygpath -u "c:/" /cygdrive/c $ cygpath -u "c:/cygwin64/bin" /usr/bin Is there any way to get /cygdrive/c/cygwin64/bin from the…
Chris Jefferson
  • 7,133
  • 9
  • 35
  • 59
1
2