← Back to team overview

kicad-developers team mailing list archive

Re: Not a priority: building Kicad on Ubuntu on Windows (WSL)

 

> I assume this is due to the way the make script determines if it is Linux
or Windows.

KiCad does not determine the Operating system. CMake does.
You are somehow invoking or mixing executables between windows and linux.
i.e. if you have CMAKE.exe in path, it may be executed inside your wsl2
shell. This will confuse it.


I wouldn't really bother trying to make KiCad run under WSL2....it's really
big world of hurt. Namely, GUI support is non-existent and the workarounds
are basically installing outdated Xorg server binaries on windows and
remote connecting to the WSL2 VM. You are probably better off spawning a
full Hyper-V VM....


On Mon, Aug 17, 2020 at 12:42 PM Brian Piccioni <brian@xxxxxxxxxxxxxxxxxxxxx>
wrote:

> 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
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>


-- 
Mark

References