Pkg Search "py*-qmk" Returns Nothing

Hello,

I am trying to build QMK firmware for a kyboard and I was following this guide.
For FreeBSD it says to run the command
Code:
pkg install -g "py*-qmk"
. However I can't find any packaged related to QMK. I've tried
Code:
pkg search qmk
and it's returns nothing.
So I tried installing Python 3, running
Code:
python3 -m pip install --user qmk
and adding set PATH = ($PATH\:$HOME/.local/bin) to ~/.cshrc.
However even though I had added ~/.local/bin to my PATH variable qmk wasn't found. So I use used it's full path instead and ran
Code:
/home/crayxmp/.local/bin/qmk doctor
, which returned a number of errors :'/. I decided to go ahead and try to compile it anyway using
Code:
/home/crayxmp/.local/bin/qmk compile --keyboard converter/modelm101 --keymap default
and it complained about not being able to find qmk again. So I updated the Make file to point to qmk and then ran the command again. But to my dismay it want's avr-gcc. But I can't find anything related to it with a pkg search (apart from the C libraries, but their not much use without the actual compiler!)

Anyway I really want to compile QMK! I already tried doing it under Cygwin on M$ Windows 10 and ran into a problem with that too >:(.

So if anyone has any suggestions or knows what I should do I would very much appreciate it! I thought about trying to compile avr-gcc but I'm not exactly sure where to get an official copy of it or if it would work under FreeBSD. Maybe I could try and use the Linux compatibily layer to compile QMK using that? I don't want to have to install Linux just do do this. I SHOULD be able to do it using FreeBSD!
 
Code:
To switch from quarterly to latest (packages based off ports head):

    Copy /etc/pkg/FreeBSD.conf to /usr/local/etc/pkg/repos/FreeBSD.conf if you haven't already
    Change the string quarterly to latest in the url: line
    Run pkg update -f to update from the new (latest) repository metadata.
 
Fair warning, latest has lots of updates, every day. It tries to follow the ports tree as closely as possible.

That said, create a /usr/local/etc/pkg/repos/FreeBSD.conf:
Code:
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest"
}
That's it. Running pkg update and pkg upgrade will update everything to the latest repository.
 
Thanks for your replies. I'm just doing the upgrade now. I hope it goes well :). I've had trouble with moving to new version of FreeBSD before ? (I know this isn't changing the version though). I think that might have been because I was mixing ports and packages and librariy version weren't matching up. Although I'm not really sure haha.
 
I think that might have been because I was mixing ports and packages and librariy version weren't matching up.
Yeah, you can get into some hot water if you mix packages from quarterly and a latest ports tree (or vice-versa).
 
Hmm... Okay so I'm installing the qmk python thing now. However I have noticed that FreeCAD is no longer installed on my system and I couldn't see it when searching for it with pkg search. :eek:. Maybe I'll just deal with it later haha ?
 
I've successfully compiled QMK ?. I think I should probably go to sleep now. Hopefully I can get it working on my Model M tomorrow ?.
 
Back
Top