compiling remote sensor daemon

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Guest

compiling remote sensor daemon

Post by Guest » Sat Oct 06, 2007 5:45 am

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

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Sun Oct 07, 2007 9:33 pm

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...

Guest

Post by Guest » Sat Oct 13, 2007 6:54 am

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.

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Sat Oct 13, 2007 12:07 pm

Have you ever been able to compile anything with this MinGW installation? This looks like a broken make utility or a missing compiler.

Post Reply