Building Kicad with Spice support

Hey everyone,

I’m trying to compile kicad as shown in this video: (the directions are at about 5:19)

For those of you who don’t want to watch the video, the presenter said to type this into the console:

git clone
mkdir -p kicad/build
cd kicad/build

I’m on Debian Linux 8.5 (jessie)
I’ve forced cmake into version 3.6.2-2~bpo8+1
I have libngspice installed

Here is the output I get from trying to invoke the cmake command :
root@debby:/home/chester/kicad/build# cmake -DKICAD_SPICE=ON …
– Kicad install dir: </usr/local>
– Check for installed GLEW – found
CMake Error at /usr/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Call Stack (most recent call first):
/usr/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.6/Modules/FindCURL.cmake:61 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:552 (find_package)

– Configuring incomplete, errors occurred!
See also “/home/chester/kicad/build/CMakeFiles/CMakeOutput.log”.
See also “/home/chester/kicad/build/CMakeFiles/CMakeError.log”.

I’ve googled until I was dizzy looking for a solution to this problem.
I’m not a Linux expert by any means(the arcane art of compiling code is a tad above me ), so if you can help me, please include things that seem obvious to you.

Any help would be greatly appreciated. Thank you.

I always muddle my way through these. It looks like you are missing curl. Generally these errors during a build means you need the ‘dev’ versions for compiling code, not the programs themselves.

This is the dev I have installed for curl.
development files and documentation for libcurl (OpenSSL flavour)

Read through this: SOLVED: Compiling V5 RCs on Debian. There was help for the ngspice problem, too.

1 Like

Thank you. I followed the link that eelik posted below and manually installed the dependencies, which helped.
I’m now trying to use cmake-gui and am stuck with this error when I try to Generate the makefile

Kicad install dir: </usr/local>
Check for installed GLEW – found
Boost version: 1.55.0
CMake Error at CMakeLists.txt:583 (find_package):
By not providing “FindOCE.cmake” in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by “OCE”, but
CMake did not find one.

Could not find a package configuration file provided by “OCE” (requested
version 0.16) with any of the following names:


Add the installation prefix of “OCE” to CMAKE_PREFIX_PATH or set “OCE_DIR”
to a directory containing one of the above files. If “OCE” provides a
separate development package or SDK, be sure it has been installed.

I’ve been trying for hours to install a newer version of oce, to no avail.
I had version 0.15, but the build requires it to be at least 0.16.

Please help or point me in a direction that I may be able to find help

Somewhere in that thread or another I have a more specific reference I think but:

I’m not sure which of these dev libs were the ones I needed. I seem to have most of the dev versions installed on my system. This one took me a little longer to track down because it didn’t start with ‘oce’.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.