kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #44764
Re: 5.99.0-7573-ge07848d887 Warning: Missing ngspice + problems seting up a working development environment
Hi Stefan
(You did not use reply all, so I re-added the list on cc)
Ok. I was slightly confused because you mentioned msys2 and vcpkg at
the same time. They are not compatible.
Normally with cmake the procedure is to configure the project first,
often a makefile generator is used, which means you use the make
command. If you want to use msvc (visual studio) and vcpkg you use
follow the instructions, I have used cmake-gui before. I have not
really tried to run anything for a dev environment under msvc, but I
gues it is possible, but remember usually you need to run the install
target to make sure you got all the proper binaries whereever you run
it from.
But you should simply be able to follow the instructions you probably
already found on
https://docs.kicad.org/doxygen/md_Documentation_development_compiling.html#vs_build
I am not sure how to configure that properly for runtime, but I know
other people are doing it so it is possible, but there may be some
custom configuration needed.
Nick
On Sat, 19 Dec 2020 at 21:13, star7 <star7@xxxxxxxxx> wrote:
>
> My goal is to be able to understand parts of the code, modify, debug, search errors and doing experiments. In the future testing and proposing new features.
>
> So the nightly builds could help me in cases of real errors, they are possibly removed in nightly builds.
>
> Off course I had a look on the source code before I compiled it. But I wanted to have a complete development environment to get a chance to easier understand parts of the code. I have a working compile environment now with mingw64. The compiled Code runs very well within mingw64. It does not work outside of mingw64. Some installation steps are missing.
>
> Looking on the source code with an editor only is to cumbersome. So I installed Visual Studio. My next goal was to get the project inside of Visual Studio as to have a much easier look on the code, much more as with a pure editor. I am not stuck to Visual Studio. Something like Eclipse would be as good. But my problem is in the moment to get the project under CMake in the Visual Studio 2019 environment. Might be Visual Studio 2017 would do the job, might be the problems come with Visual Studio 2019 or the vcpkg version. I did not try. Also I could move the hole thing from Windows 10 to a Linux environment. Up to now I only used KiCad (designed and produced successfully some PCB designs now in working products; !!! Many thanks by the way to this positive experience to all the contributors to KiCad!!!, Before I worked with proprietary Software) and did this on Windows. But if development of the KiCad Code is easier on Linux I could move to Linux for this target.
>
>
> best wishes
>
>
> Stefan
>
>
> On 12/18/20 4:28 PM, Nick Østergaard wrote:
>
> What is your goal?
>
> fre. 18. dec. 2020 12.00 skrev Stefan Auracher <auracher.stefan@xxxxxx>:
>>
>> 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
>>
>> _______________________________________________
>> 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