After build and install the Kicad sources in msys2/mingw64 with the command line:
$cmake -DCMAKE_BUILD_TYPE=Release \
-G “MSYS Makefiles” \
-DCMAKE_PREFIX_PATH=/mingw64 \
-DCMAKE_INSTALL_PREFIX=/e/kicad-src/kicad-msys2/build/release/install \
-DDEFAULT_INSTALL_PATH=/e/kicad-src/kicad-msys2/build/release/install \
-DKICAD_DATA=/e/KiCAD-src/kicad-msys2/build/release/install/share/kicad \
-DKICAD_DEMOS=/e/KiCAD-src/kicad-msys2/build/release/install/share/kicad/demos \
-DKICAD_DOCS=/e/KiCAD-src/kicad-msys2/build/release/install/share/doc/kicad \
-DKICAD_LIBRARY_DATA=/e/KiCAD-src/kicad-msys2/build/release/install/share/kicad \
-DKICAD_TEMPLATE=/e/KiCAD-src/kicad-msys2/build/release/install/share/kicad/template \
-DOCC_INCLUDE_DIR=/mingw64/include/opencascade \
…/…/
$make install
and the binary files are now in /e/kicad-src/kicad-msys2/build/release/install directory,i made a lot of
effort in configurations , then the Kicad.exe,eeschema.exe,bitmap2component.exe,gerbview.exe,pcb_calculator.exe,pl_editor.exe are launch normaly alone,but when double click pcbnew.exe try to launch it alone,unexpectly get a “Error loading editor” issue message box,however when i copy the pcbnew.exe from /e/kicad-src/kicad-msys2/build/release/install/bin to /c/msys64/mingw64/bin,that is
the directory msys2/mingw64 be installed, the pcbnew.exe run successfully;I worked hard for a long time and I didn’t solve the problem.
how i to do?
attachment: the error informations and dialog window:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|pcbnew error |
|+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +|
| 加载编辑器时出错 |
|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
|details: |
|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|
|10:15:21: Failed to load shared library ‘E:\KiCAD-src\kicad-msys2\build\release\install\bin_pcbnew.dll’
| (error 0: 操作成功完成。) |
|10:15:21: 加载 kiface 库 ‘E:\KiCAD-src\kicad-msys2\build\release\install\bin\_pcbnew.dll’ 失败。 |
|10:15:21: 加载编辑器时出错。 |
|+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++