Page 1 of 1
compiling remote sensor daemon
Posted: Sat Oct 06, 2007 5:45 am
by Guest
Hi everyone, I am having trouble compiling sensord.c under Windows XP. I have installed MinGW to C:/MinGW but whenever i try to compile using:
>make -f Makefile.Windows
it returns the following error on console
gcc C:\MinGW\include -O -Wall -c sensord.c
process_begin: CreateProcess(NULL, gcc C:\MinGW\include -O -Wall -c sensord.c, .
..) failed.
make (e=2): The system cannot find the file specified.
make: *** [sensord.o] Error 2
Can anyone be kind enough to provide some guidance on how to compile it under Windows XP?
Cheers,
Jimmy
Posted: Sun Oct 07, 2007 9:33 pm
by christian
Have you modified the Makefiles?
This is an error message created by the make utility itself. It looks as if it tried to find a program named "gcc C:\MinGW\include -O -Wall -c sensord.c" instead of running "gcc" and passing the rest as parameter.
This can happen if you have quoted the call to gcc and its arguments.
I can also see that you pass "C:\MinGW\include" instead of "-I/usr/local/mingw/include" which is in our Makefile.windows. I therefore assume that you have modified the Makefiles...
Posted: Sat Oct 13, 2007 6:54 am
by Guest
christian wrote:Have you modified the Makefiles?
This is an error message created by the make utility itself. It looks as if it tried to find a program named "gcc C:\MinGW\include -O -Wall -c sensord.c" instead of running "gcc" and passing the rest as parameter.
This can happen if you have quoted the call to gcc and its arguments.
I can also see that you pass "C:\MinGW\include" instead of "-I/usr/local/mingw/include" which is in our Makefile.windows. I therefore assume that you have modified the Makefiles...
As you suggested, I changed back to the default Makefile, both Makefile and Makefile.windows, but I am still getting some error.
> make -f Makefile.windows
gcc -I/usr/local/mingw/include -O -Wall -c sensord.c
process_begin: CreateProcess(NULL, gcc -I/usr/local/mingw/include -O -Wall -c se
nsord.c, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [sensord.o] Error 2
FYI, I am using Windows XP SP2.
Please help.
Posted: Sat Oct 13, 2007 12:07 pm
by christian
Have you ever been able to compile anything with this MinGW installation? This looks like a broken make utility or a missing compiler.