recompiling powerswitch.c

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

recompiling powerswitch.c

Post by Guest » Tue Oct 09, 2007 5:41 am

hi,

just having a few issues recompiling a modified powerswitch.c
using the provided makefile, it comes up with the following error in programmer's notepad:
> "make.exe" all
gcc -I..\MinGW\include -O -Wall -c powerSwitch.c
process_begin: CreateProcess(NULL, gcc -I..\MinGW\include -O -Wall -c powerSwitch.c, ...) failed.
make (e=2): The system cannot find the file specified.

make.exe: *** [powerSwitch.o] Error 2

I've tried using C:\MinGW\include as the include directory, among other combinations, but it just gives the same error.

also, i'm assuming the usb.h header given from libusb-win32 supposed to be inserted into MinGW's include directory as well?

thanks.

Guest

Post by Guest » Tue Oct 09, 2007 6:17 am

oh umm.. i also tried to compile it under unix, but it reports errors from MinGW's library:
gcc -Wall -O -I../MinGW/include -I../local/include -L../local/lib -L../MinGW/lib -c powerSwitch.c
In file included from ../MinGW/include/windef.h:253,
from ../MinGW/include/windows.h:48,
from ../local/include/usb.h:5,
from powerSwitch.c:22:
../MinGW/include/winnt.h:2352: #error "undefined processor type"

MinGW version is 5.1.3

Jackson

Post by Jackson » Wed Oct 10, 2007 2:19 pm

im having a similar issue. are we supposed use the compiler provided with mingw, or doesn't it matter? either way its seemingly not working :(

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

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

This look like a general problem with the MinGW installation. The make utility complains that it can't find the compiler (as far as I understand the error message). Either the make utility does not match the rest of the installation (I remember there were two "make" packages for MinGW, one claimed that the other was broken), or the compiler (gcc) is not installed.

Post Reply