Build KiCad from Source


#1

Hi there.
I have question about build Kicad from source.
Everything built fine, but all files stuck in minGW folder. I dont like it.

Changed install path to what i like. Everything compiled fine, but Kicad doesnt start, because of missing libraries. All of them left in minGW/bin folder.

Is it a way to make cMake move dependencies to build location?


#2

I looked at how KiCad win installer does it and it appears that it just runs this script:

But at least it has full list of things you need so it may be of help.

If you install nsis and checkout kicad-winbuilder repository you can build your own installer, just look at


#3

Thank you. I saw winbuild project on git. Now i should try it.


#4

Thank you! This script work great! Had to play little bit. Because winbuilder project download all what it need by itself. But it work great!

Thank you!


#5

If you share your modified script it could help others who encounter the same problem in the future.


#6

You misunderstand me. I didn’t modify script. Just did by hand some of steps. Because winbuilder download a lot of software by itself, and I compile KiCAd using msys2. I didnt have bunch of stuff what it required to work.

One strange thing I noticed. If I copy everything what it required by hand it doesn’t work. Just got error 126 cannot open ‘_eeschema.kiface’. Or even if I copy all dependencies from installed KiCad - same error.

Winbuilder script fix that. But I didnt understand what in did to fix it. Because everything looks it just copy stuff and create installer. And it work.