Skip to content

How to compile in Windows? #192

@F-Barny

Description

@F-Barny

Thank you for lufa.

(It compiles fine on my Linux machine)
But is there a special trick to compile this lib in Windows?

I compiled the projects with WinAVR + command line and Microchip Studio 7.
Both gave me an Error 128

OS: Win10 native & VM
WinAVR & Microchip Studio are running on different Windows-systems

Example output of trial run with USBtoSerial

C:\AVR\LUFA\lufa-master\Projects\USBtoSerial>make
      0 [main] sh 6840 sync_with_child: child 7044(0x208) died before initialization with status code 0xC0000142
     84 [main] sh 6840 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
      0 [main] sh 3048 sync_with_child: child 10232(0x214) died before initialization with status code 0xC0000142
     80 [main] sh 3048 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
      0 [main] sh 5188 sync_with_child: child 8140(0x214) died before initialization with status code 0xC0000142
     70 [main] sh 5188 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
 [INFO]    : Begin compilation of project "USBtoSerial"...
avr-gcc (WinAVR 20100110) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 [OBJCPY]  : Extracting EEP file data from "USBtoSerial.elf"
avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 --no-change-warnings USBtoSerial.elf USBtoSerial.eep || exit 0
      0 [main] sh 2116 sync_with_child: child 4092(0x200) died before initialization with status code 0xC0000142
     83 [main] sh 2116 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
make: *** [USBtoSerial.eep] Error 128
C:\AVR\LUFA\lufa-master\Projects\USBtoSerial>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions