← Back to team overview

kicad-developers team mailing list archive

5.99.0-7573-ge07848d887 Warning: Missing ngspice + problems seting up a working development environment

 

I started KiCad from within msys like
/d/proj/msys_mingw/KiCad_git_repo/kicad/build/release/kicad/kicad.exe

And within this build tree in
D:\proj\msys_mingw\KiCad_git_repo\kicad\build\release

I don't have the directory structure as in an regular KiCad installation
like C:\auracher\pgr\eda\KiCad\kicad-5.1.6_1-x86_64\KiCad with

the subdirectories bin lib share ssl. So there is no directory
kicad/lib/ngspice/


Sorry I am a beginner in this. I Think I am missing the installation
steps from the build tree to the real independant installation of KiCad
outside of msys/mingw

I would expect that this should be collected to
D:\proj\msys_mingw\KiCad_git_repo\kicad\out. But also ther are no
subdirectorys bin lib share ssl. Do I need another

make target?


How can I do that. Or what other possibilities do I have to work with
the KiCad Code ?

Or is it a silly idea to work on windows. Is it easier on Linux?


Thanks for any help


Besides this I have a second problem.

On Windows 10 I installed Microsoft Visual Studio C++ 2019 to get an IDE
for the kiCad Source

Also I compiled the vcpg packages with

.\vcpkg install boost
.\vcpkg install cairo
.\vcpkg install curl
.\vcpkg install glew
.\vcpkg install gettext
.\vcpkg install glm
.\vcpkg install icu
.\vcpkg install ngspice
.\vcpkg install opencascade
.\vcpkg install opengl
.\vcpkg install openssl
.\vcpkg install python3
.\vcpkg install wxwidgets
.\vcpkg install zlib

as desribed in
https://docs.kicad.org/doxygen/md_Documentation_development_compiling.html

and did the other steps documented there.

This all worked very well as described in the above kiCad Docu.


After starting Visual Studio 2019 I tried to build the project via
CMake. I opened:

D:\proj\msys_mingw\KiCad_git_repo\kicad\CmakeLists.txt

I had to modify the file:

D:\proj\msys_mingw\KiCad_git_repo\kicd\CMakeLists.txt

I inserted at the top


set( GLEW_INCLUDE_DIR
"/d/proj/msys_mingw/vcpkg_repo/vcpkg/packages/glew_x86-windows/include/" )
set( GLEW_LIBRARY
"/d/proj/msys_mingw/vcpkg_repo/vcpkg/packages/glew_x86-windows/lib" )

set ( GLM_INCLUDE_DIR
"/d/proj/msys_mingw/vcpkg_repo/vcpkg/packages/glm_x86-windows/include" )
set ( GLM_VERSION "0.9.9.8" )

set ( ZLIB_LIBRARY
"/d/proj/msys_mingw/vcpkg_repo/vcpkg/packages/zlib_x86-windows/lib" )
set ( ZLIB_INCLUDE_DIR
"/d/proj/msys_mingw/vcpkg_repo/vcpkg/packages/zlib_x86-windows/include")

set ( CURL_LIBRARY
"/d/proj/msys_mingw/vcpkg_repo/vcpkg/packages/curl_x86-windows/lib" )
set ( CURL_INCLUDE_DIR
"/d/proj/msys_mingw/vcpkg_repo/vcpkg/packages/curl_x86-windows/include")

set ( CAIRO_LIBRARIES
"/d/proj/msys_mingw/vcpkg_repo/vcpkg/packages/cairo_x86-windows/lib")
set ( CAIRO_INCLUDE_DIR
"/d/proj/msys_mingw/vcpkg_repo/vcpkg/packages/cairo_x86-windows/include")
set ( CAIRO_RELEASE "1.16.0" )

set( PKG_CONFIG_EXECUTABLE "/c/msys64/mingw64/bin/pkgconf.exe" )


This eliminated some errors


But I still have the following problem

1> [CMake] -- KiCad install dir:
<D:/proj/msys_mingw/KiCad_git_repo/kicad/out/install/x64-Debug (Standard)>
1> [CMake] -- Check for installed GLEW -- found
1> [CMake] -- Check for installed ZLIB -- found
1> [CMake] -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
1> [CMake] CMake Error at CMakeModules/FindCairo.cmake:145 (file):
1> [CMake]   file failed to open for reading (No such file or directory):
1> [CMake]
1> [CMake]
/d/proj/msys_mingw/vcpkg_repo/vcpkg/packages/cairo_x86-windows/include/cairo-version.h
1> [CMake] Call Stack (most recent call first):

...


many thanks for teh patience


Stefan


On 12/16/20 12:14 PM, Holger Vogt wrote:
Correction:

analog.com and 5 other *.cm files should reside in kicad/lib/ngspice/


_______________________________________________
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


Follow ups

References