← Back to team overview

kicad-developers team mailing list archive

Re: Get wxWidgets 3.1.5 package for MSYS2

 

This did the trick! Thanks a lot!

Best Regards,
Pradeepa Senanayake.


On Sat, Jul 3, 2021 at 9:21 PM Wayne Stambaugh <stambaughw@xxxxxxxxx> wrote:

> Add -DPYTHON_INCLUDE_DIR=/mingw64/include/python3.8 to the CMake command
> line.  You have msys2 python installed which for some reason,
> FindPythonLibs.cmake detects instead of the mingw64 path.
>
> On 7/2/2021 11:55 PM, pradeepa.kck wrote:
> > I am using MINGW64.
> >
> >
> >
> > Sent on the go with Vodafone
> >
> >
> > -------- Original message --------
> > From: Brian Piccioni <brian@xxxxxxxxxxxxxxxxxxxxx>
> > Date: 3/7/21 1:43 pm (GMT+10:00)
> > To: kicad-developers@xxxxxxxxxxxxxxxxxxx
> > Subject: Re: [Kicad-developers] Get wxWidgets 3.1.5 package for MSYS2
> >
> > Are you doing this from an MSYS2 window or MinGW64 window? Because I was
> > doing the former and had all sorts of problems like this.
> >
> > On 2021-07-02 11:39 p.m., Pradeepa Senanayake wrote:
> >> One more issue in the build related to the crypt.h file in python. Are
> >> there any other package changes from the doc?
> >>
> >> >>>>
> >> [  6%] Building CXX object
> >> common/CMakeFiles/gal.dir/view/wx_view_controls.cpp.obj
> >> In file included from
> >>
> I:/my_projects/kicad/thirdparty/pybind11/include/pybind11/detail/common.h:119,
> >>                  from
> >> I:/my_projects/kicad/thirdparty/pybind11/include/pybind11/pytypes.h:12,
> >>                  from
> >> I:/my_projects/kicad/thirdparty/pybind11/include/pybind11/cast.h:13,
> >>                  from
> >> I:/my_projects/kicad/thirdparty/pybind11/include/pybind11/attr.h:13,
> >>                  from
> >> I:/my_projects/kicad/thirdparty/pybind11/include/pybind11/pybind11.h:45,
> >>                  from
> >> I:/my_projects/kicad/thirdparty/pybind11/include/pybind11/embed.h:12,
> >>                  from I:/my_projects/kicad/include/pgm_base.h:41,
> >>                  from
> >> I:/my_projects/kicad/common/view/wx_view_controls.cpp:29:
> >> C:/msys64/usr/include/python3.9/Python.h:44:10: fatal error: crypt.h:
> >> No such file or directory
> >>    44 | #include <crypt.h>
> >>       |          ^~~~~~~~~
> >> compilation terminated.
> >> make[2]: *** [common/CMakeFiles/gal.dir/build.make:272:
> >> common/CMakeFiles/gal.dir/view/wx_view_controls.cpp.obj] Error 1
> >> make[1]: *** [CMakeFiles/Makefile2:2688:
> >> common/CMakeFiles/gal.dir/all] Error 2
> >> make: *** [Makefile:146: all] Error 2
> >> <<<<
> >>
> >> Following are the python packages I have for python:
> >>
> >> Pradeepa@DESKTOP-OA7GTE5 MINGW64 /i/my_projects/kicad/build/release
> >> $ pacman -Qs python
> >> local/mingw-w64-x86_64-python 3.8.9-2
> >>     A high-level scripting language (mingw-w64)
> >> local/mingw-w64-x86_64-python-numpy 1.21.0-1
> >>     Scientific tools for Python (mingw-w64)
> >> local/mingw-w64-x86_64-python-pillow 8.3.0-1
> >>     Python Imaging Library (PIL) fork Python3 version (mingw-w64)
> >> local/mingw-w64-x86_64-python-six 1.16.0-1
> >>     Python 2 and 3 compatibility utilities (mingw-w64)
> >> local/mingw-w64-x86_64-python2 2.7.18-1
> >>     A high-level scripting language (mingw-w64)
> >> local/mingw-w64-x86_64-wxPython 4.1.1-1
> >>     A wxWidgets GUI toolkit for Python (mingw-w64)
> >> local/python 3.9.5-1
> >>     Next generation of the python high-level scripting language
> >> local/scons 3.1.2-6 (base-devel)
> >>     Extensible Python-based build utility
> >>
> >> Best Regards,
> >> Pradeepa Senanayake.
> >>
> >>
> >> On Sat, Jul 3, 2021 at 1:10 PM Pradeepa Senanayake
> >> <pradeepa.kck@xxxxxxxxx <mailto:pradeepa.kck@xxxxxxxxx>> wrote:
> >>
> >>     Thanks! You are right.
> >>
> >>     I had to remove the outdated wxWidgets package and clean up my
> >>     build folder.
> >>
> >>     Best Regards,
> >>     Pradeepa Senanayake.
> >>
> >>
> >>     On Sat, Jul 3, 2021 at 1:03 PM Brian Piccioni
> >>     <brian@xxxxxxxxxxxxxxxxxxxxx <mailto:brian@xxxxxxxxxxxxxxxxxxxxx>>
> >>     wrote:
> >>
> >>         Yes, I checked
> >>
> >>         mingw-w64-x86_64-wxmsw3.1 gets you 3.1.5
> >>
> >>
> >>         mingw64/mingw-w64-x86_64-wxmsw3.1 3.1.5-1 [installed]
> >>             A C++ library that lets developers create applications for
> >>         Windows, Linux and UNIX (mingw-w64)
> >>
> >>         On 2021-07-02 10:51 p.m., Pradeepa Senanayake wrote:
> >>>         Hello,
> >>>
> >>>         I'm trying to build the KiCad in MSYS2.
> >>>
> >>>         I get the following error,
> >>>
> >>>           Could NOT find wxWidgets: Found unsuitable version "3.0.5",
> >>>         but required is
> >>>           at least "3.1.5"
> >>>
> >>>         I cannot download the required version through the suggested
> >>>         pacman -S mingw-w64-x86_64-wxWidgets command.
> >>>         (https://packages.msys2.org/package/mingw-w64-x86_64-wxWidgets
> <https://packages.msys2.org/package/mingw-w64-x86_64-wxWidgets>)
> >>>
> >>>         Do I need to build wxWidgets from the source?
> >>>
> >>>         Best Regards,
> >>>         Pradeepa Senanayake.
> >>>
> >>>         _______________________________________________
> >>>         Mailing list:https://launchpad.net/~kicad-developers  <
> https://launchpad.net/~kicad-developers>
> >>>         Post to     :kicad-developers@xxxxxxxxxxxxxxxxxxx  <mailto:
> kicad-developers@xxxxxxxxxxxxxxxxxxx>
> >>>         Unsubscribe :https://launchpad.net/~kicad-developers  <
> https://launchpad.net/~kicad-developers>
> >>>         More help   :https://help.launchpad.net/ListHelp  <
> https://help.launchpad.net/ListHelp>
> >>         _______________________________________________
> >>         Mailing list: https://launchpad.net/~kicad-developers
> >>         <https://launchpad.net/~kicad-developers>
> >>         Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> >>         <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
> >>         Unsubscribe : https://launchpad.net/~kicad-developers
> >>         <https://launchpad.net/~kicad-developers>
> >>         More help   : https://help.launchpad.net/ListHelp
> >>         <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
> >
> > _______________________________________________
> > 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
>

References