Author Topic: TMK cygwin help required  (Read 1647 times)

0 Members and 1 Guest are viewing this topic.

Offline OhManIAmWorried

  • Thread Starter
  • Posts: 37
  • Location: Ukraine
TMK cygwin help required
« on: Sat, 02 September 2017, 12:38:06 »
I've followed Hasu's guide on building tmk firmware for keyboard, now I have all required files and need to compile those to have .hex file. It is mentioned, that to use all those Linux commands on my Win7 PC I need to install either cygwin or mingw.
 
I've chosen cygwin, followed this guide
and now, it turns out, that I don't have some packages installed (or something like that).

My console outputs

sh: dfu-programmer: command not found
sh: dfu-programmer: command not found
--------begin---------
sh: avr-gcc: command not found
make: *** [../../tmk_core/rules.mk:406: gccversion] Error 127

after I use make -f Makefile command.

So, the question is: what's wrong? Do I need any other packages installed? Is there another way to compile those files (complete guide, not "If you are using windows, install something or something" without further details)?
« Last Edit: Sat, 02 September 2017, 12:39:44 by OhManIAmWorried »
APC F-21 "Clicker" Drevo71 Delux M-618 DataComp dfk102

NTC 74% cut

Offline TalkingTree

  • Posts: 2452
  • Location: Italy (142)
    • My projects
Re: TMK cygwin help required
« Reply #1 on: Sat, 02 September 2017, 13:32:52 »
So, the question is: what's wrong? Do I need any other packages installed? Is there another way to compile those files (complete guide, not "If you are using windows, install something or something" without further details)?
If I recall correctly, and I might not, the syntax for Cygwin is apt-cyg install <package>, so try:
Code: [Select]
apt-cyg install dfu-programmer avr-gcc

Although I have to say it's much easier to set up Linux over Virtualbox for compiling TMK/QMK.
My opensource projects: GH80-3000, TOAD, XMMX. Classified: stuff

Offline OhManIAmWorried

  • Thread Starter
  • Posts: 37
  • Location: Ukraine
Re: TMK cygwin help required
« Reply #2 on: Sun, 03 September 2017, 01:11:49 »
So, the question is: what's wrong? Do I need any other packages installed? Is there another way to compile those files (complete guide, not "If you are using windows, install something or something" without further details)?
If I recall correctly, and I might not, the syntax for Cygwin is apt-cyg install <package>, so try:
Code: [Select]
apt-cyg install dfu-programmer avr-gcc

Although I have to say it's much easier to set up Linux over Virtualbox for compiling TMK/QMK.

I've tried such commands, but sudo and apt are not a part of cygwin, as I recall. Well, that's a shame, I'll try something else, but thank you!
APC F-21 "Clicker" Drevo71 Delux M-618 DataComp dfk102

NTC 74% cut

Offline 0100010

  • Posts: 1127
  • Location: DFW, TX, US
  • Not Sure
Re: TMK cygwin help required
« Reply #3 on: Mon, 04 September 2017, 15:52:16 »
+1 for downloading / installing Hasu's pre-packaged unbuntu image in virtualbox.  Saves all that environmental setup headache in windows.
  Quoting me causes a posting error that you need to ignore.