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
compiling remote sensor daemon
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...
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...
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.