← Back to team overview

kicad-developers team mailing list archive

Re: Build on msys2 fails : libngspice-x.dll not found in any executable path

 

I did  that and got a weird error from cmake to the effect it wanted to build MSVS make files (from long, long, long ago).

I deleted all CMakeCacke.txt on my system.

I decided to run pacman -Syuu and it did a small update.

I then ran the cmake script without scripting off

cmake -DCMAKE_BUILD_TYPE=Debug
 -G "Eclipse CDT4 - Unix Makefiles"
 -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE
 -DCMAKE_PREFIX_PATH=C:/msys64/mingw64
 -DCMAKE_INSTALL_PREFIX=C:/msys64/mingw64
 -DDEFAULT_INSTALL_PATH=C:/msys64/mingw64
 -DMSYS=TRUE
 ../kicad

this completed with no errors. I am running

make -j install   presently.


perhaps they fixed the wxPython issue?



On 2020-05-25 10:57 a.m., jp charras wrote:
Le 25/05/2020 à 15:33, Brian Piccioni a écrit :
Unfortunately, while we seem to get past the libngspice-0.dll problem with the fix, the old workaround  for the python problem no longer works.

cmake -DCMAKE_BUILD_TYPE=Debug \
-DKICAD_SCRIPTING=OFF\ <<<<<<<<<<<<<<<<<<<< I believe this used to get around the pyhton mismatch.
-G "Eclipse CDT4 - Unix Makefiles" \
-DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE \
-DCMAKE_PREFIX_PATH=C:/msys64/mingw64 \
-DCMAKE_INSTALL_PREFIX=C:/msys64/mingw64 \
-DDEFAULT_INSTALL_PATH=C:/msys64/mingw64 \
-DMSYS=TRUE \
../kicad


Throws the library mismatch error.


$ cmake -DCMAKE_BUILD_TYPE=Debug \
-DKICAD_SCRIPTING=OFF\
-G "Eclipse CDT4 - Unix Makefiles" \
-DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE \
-DCMAKE_PREFIX_PATH=C:/msys64/mingw64 \
-DCMAKE_INSTALL_PREFIX=C:/msys64/mingw64 \
-DDEFAULT_INSTALL_PATH=C:/msys64/mingw64 \
-DMSYS=TRUE \
../kicad
-- Eclipse version is set to 3.6 (Helios). Adjust CMAKE_ECLIPSE_VERSION if this is wrong.
-- KiCad install dir: <C:/msys64/mingw64>
-- Enabling warning -Wsuggest-override
-- Enabling warning -Wduplicated-branches
-- Enabling warning -Wduplicated-cond
-- Enabling error for -Wvla
-- Enabling warning -Wimplicit-fallthrough
-- Enabling error for -Wreturn-type
-- Enabling warning -Wshadow
-- Check for installed GLEW -- found
info: libngspice shared lib found: C:/msys64/mingw64/bin/libngspice-0.dll

-- Check for installed Python Interpreter -- found
-- Python module install path: lib/python2.7/site-packages
CMake Error at CMakeModules/FindwxPython.cmake:52 (message):
   wxPython/Phoenix does not appear to be installed on the system
Call Stack (most recent call first):
   CMakeLists.txt:740 (find_package)


-- Configuring incomplete, errors occurred!
See also "C:/msys64/home/Msys_bjpic/FixedFormatting/debug/CMakeFiles/CMakeOutput.log".
See also "C:/msys64/home/Msys_bjpic/FixedFormatting/debug/CMakeFiles/CMakeError.log".

I do not see this issue.

FindwxPython is not called if cmake is called with -DKICAD_SCRIPTING=OFF
(or DKICAD_SCRIPTING_WXPYTHON=OFF)
Try to delete CMakeCacke.txt and rerun cmake.




References