Re: Cygwin Makefile Path
Vladimir Voskresensky <vova <at> tepkom.ru>
2007-10-01 06:14:13 GMT
seems not CND pack problem, but the problem of used tool. because you
have the same problem in command line...
Could you, please, send your Makefile and your nbproject/Makefile* files.
It's strange, that your C++ compiler is named "c" (*.cc files are
compiled with C++ compiler).
Btw, did you put
C:\cygwin\bin.
in the beginning of PATH env variable?
One more comment:
- what is compiler collection chosen for your project? (Properties on
project window)
- and what are the build tools options for this compiler collection?
(Tools->Options->C++)
Thanks,
Vladimir.
User007 wrote:
> Hi,
> Even I have been stuck up at the same problem for the past couple of days.
> The below is the output I get from Netbeans IDE
>
> Running "C:\Cygwin\bin\make.exe -f Makefile CONF=Debug" in C:\Program
> Files\netbeans-5.5\samples\Welcome_1
>
> /usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
> make[1]: Entering directory `/cygdrive/c/Program
> Files/netbeans-5.5/samples/Welcome_1'
> mkdir -p build/Debug/None-Windows
> c -g3 -gdwarf-2 -o build/Debug/None-Windows/welcome.o welcome.cc
> make[1]: c: Command not found
> make[1]: [build/Debug/None-Windows/welcome.o] Error 127 (ignored)
> mkdir -p dist/Debug
> o dist/Debug/welcome build/Debug/None-Windows/welcome.o
> make[1]: o: Command not found
> make[1]: [dist/Debug/welcome.exe] Error 127 (ignored)
> make[1]: Leaving directory `/cygdrive/c/Program
> Files/netbeans-5.5/samples/Welcome_1'
>
> Build successful. Exit value 0.
>
> Running "start sh "C:\Program Files\netbeans-5.5\cnd1\bin\dorun.sh" -p
> "[Press Enter to close window] " -f
> "C:\DOCUME~1\Chavali\LOCALS~1\Temp\nbcnd_rc5353" dist\Debug\welcome "arg 1"
> "arg 2"" in C:\Program Files\netbeans-5.5\samples\Welcome_1
>
>
> Run failed. Exit value 127.
>
>
> When I run the make from cygwin shell cd'd to folder: I have the following
> output
>
> $ make
> make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
> make[1]: Entering directory `/cygdrive/c/Program
> Files/netbeans-5.5/samples/Welc
> ome_1'
> mkdir -p build/Debug/None-Windows
> c -g3 -gdwarf-2 -o build/Debug/None-Windows/welcome.o welcome.cc
> make[1]: c: Command not found
> make[1]: [build/Debug/None-Windows/welcome.o] Error 127 (ignored)
> mkdir -p dist/Debug
> o dist/Debug/welcome build/Debug/None-Windows/welcome.o
> make[1]: o: Command not found
> make[1]: [dist/Debug/welcome.exe] Error 127 (ignored)
> make[1]: Leaving directory `/cygdrive/c/Program
> Files/netbeans-5.5/samples/Welco
> me_1'
>
> A little background:
> I have installed the gcc, gdb, make etc and have checked the versions using
> cygcheck -c command.
> I have also set the enviornment variable for C:\cygwin\bin.
>
>
> Thanks,
> user007
>
>
>
>
>
>
>
>
> Vladimir Voskresensky wrote:
>
>> Jesdisciple wrote:
>>
>>> Well, it actually ran the compiler, so thanks for that. Unfortunately, I
>>> seem to have some other problems. If this is more appropriate in another
>>> thread, please say so.
>>>
>>> ------------------------------------------------------------------------------------------------------
>>> Running "C:\cygwin\bin\make.exe -f Makefile CONF=Debug" in C:\Program
>>> Files\netbeans-5.5.1\projects\HelloApp_1\helloapp
>>>
>>> /usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
>>> make[1]: Entering directory `/cygdrive/c/Program
>>> Files/netbeans-5.5.1/projects/HelloApp_1/helloapp'
>>> cd ../hello1lib && /usr/bin/make -f Makefile CONF=Debug
>>> make[2]: Entering directory `/cygdrive/c/Program
>>> Files/netbeans-5.5.1/projects/HelloApp_1/hello1lib'
>>> /usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
>>> make[3]: Entering directory `/cygdrive/c/Program
>>> Files/netbeans-5.5.1/projects/HelloApp_1/hello1lib'
>>> mkdir -p build/Debug/None-Windows
>>> c -g3 -gdwarf-2 -o build/Debug/None-Windows/hello1.o hello1.cc
>>> make[3]: c: Command not found
>>>
>>>
>> compiler is gcc, not "c"
>> could you, please, run "make" from cygwin shell,
>> cd to folder
>>
>> /cygdrive/c/Program Files/netbeans-5.5.1/projects/HelloApp_1/helloapp
>>
>> does it work?
>>
>> thanks,
>> Vladimir.
>>
>>
>>
>>
>
>