kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #44375
Not a priority: building Kicad on Ubuntu on Windows (WSL)
Hello
As I say, not a priority but I thought something I'd try. It might be
useful to be able to build/run Kicad in WSL for testing. If it works it
will mean people don't have to dual boot in order to test.
I have two issues:
1) NGSPICE not found. Unfortunately I cannot get the NGSPICE build
script referenced to work. First it complained about not having yacc and
after installing byacc I get the error
make[2]: Leaving directory '/tmp/libngspice_so/ngspice/src/maths'
Making all in frontend
make[2]: Entering directory '/tmp/libngspice_so/ngspice/src/frontend'
YACC parse-bison.c
byacc: e - line 32 of
"/tmp/libngspice_so/ngspice/src/frontend/parse-bison.y", syntax error
%name-prefix "PP"
^
Makefile:761: recipe for target 'parse-bison.c' failed
make[2]: *** [parse-bison.c] Error 1
make[2]: Leaving directory '/tmp/libngspice_so/ngspice/src/frontend'
Makefile:1414: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/libngspice_so/ngspice/src'
Makefile:494: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
*** Build failed ***
so I just set -DKICAD_SPICE=OFF.
2) The make file seems to think the environment is MSYS2. I get this
-- Check for installed GLEW -- found
-- Boost version: 1.65.1
CMake Error at
/mnt/c/msys64/mingw64/lib/oce/OCE-libraries.cmake:229 (message):
The imported target "TKernel" references the file
"C:/msys64/mingw64/lib/libTKernel.dll.a"
but this file does not exist.
I assume this is due to the way the make script determines if it is
Linux or Windows.
If I can get this working I'll document the needed commands.
Thanks
Follow ups