Re: [Kicad-developers] Python 3 now required

2021-06-16 Thread Jon Evans
The option KICAD_SCRIPTING_PYTHON3 doesn't even exist anymore.  I
recommend that people who are having issues get rid of your CMake
cache and start fresh, you have a lot of left over variables that may
be confusing things.  When we remove a variable from our CMake
configuration, many times it does not get removed from your cache.

On Wed, Jun 16, 2021 at 5:16 PM Nick Østergaard  wrote:
>
> You don't need to specify the type, but cmake will accept it as well and that 
> is how it is written by cmake in the CMakeCache.txt.
>
> On Wed, 16 Jun 2021 at 20:51, Kevin Cozens  wrote:
>>
>> On 2021-06-15 6:32 a.m., Marco Ciampa wrote:
>> > On Tue, Jun 15, 2021 at 12:22:42AM +0300, Eeli Kaikkonen wrote:
>> [snip]
>> >> That's where cmake UIs come handy. Try ccmake or cmake-gui (they are
>> [snip]
>> >
>> > Exactly, Kevin is right but using the cmake-gui command it was very easy
>> > to figure out how to change the variables to make it compile for me.
>>
>> I changed a symlink on my machine to make 'python' point to 'python3'. I
>> also rm'ed the build directory. I seem to be over the problem with it
>> finding the right version of Python when both 2.7 and 3.6 are installed.
>>
>> Now it complains that it can't find wxPython/Phoenix. AFAICT, that means I
>> need version 4 of wx. I only have 3 and the distro I'm using doesn't have
>> version 4 available so I can no longer build KiCAD v6. At least I solved the
>> previous problem. :)
>>
>> > //Build for Python 3 instead of 2 (default OFF).
>> > KICAD_SCRIPTING_PYTHON3:BOOL=ON
>>
>> Is this the new way of specifying whether a setting is enabled or not? You
>> need to specify the setting type and not just whether it is on or off? In
>> the past I just have just used =.
>>
>> --
>> Cheers!
>>
>> Kevin.
>>
>> http://www.ve3syb.ca/   | "Nerds make the shiny things that
>> https://www.patreon.com/KevinCozens | distract the mouth-breathers, and
>>  | that's why we're powerful"
>> Owner of Elecraft K2 #2172  |
>> #include  | --Chris Hardwick
>>
>> ___
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to : kicad-developers@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
>
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Python 3 now required

2021-06-16 Thread Nick Østergaard
You don't need to specify the type, but cmake will accept it as well and
that is how it is written by cmake in the CMakeCache.txt.

On Wed, 16 Jun 2021 at 20:51, Kevin Cozens  wrote:

> On 2021-06-15 6:32 a.m., Marco Ciampa wrote:
> > On Tue, Jun 15, 2021 at 12:22:42AM +0300, Eeli Kaikkonen wrote:
> [snip]
> >> That's where cmake UIs come handy. Try ccmake or cmake-gui (they are
> [snip]
> >
> > Exactly, Kevin is right but using the cmake-gui command it was very easy
> > to figure out how to change the variables to make it compile for me.
>
> I changed a symlink on my machine to make 'python' point to 'python3'. I
> also rm'ed the build directory. I seem to be over the problem with it
> finding the right version of Python when both 2.7 and 3.6 are installed.
>
> Now it complains that it can't find wxPython/Phoenix. AFAICT, that means I
> need version 4 of wx. I only have 3 and the distro I'm using doesn't have
> version 4 available so I can no longer build KiCAD v6. At least I solved
> the
> previous problem. :)
>
> > //Build for Python 3 instead of 2 (default OFF).
> > KICAD_SCRIPTING_PYTHON3:BOOL=ON
>
> Is this the new way of specifying whether a setting is enabled or not? You
> need to specify the setting type and not just whether it is on or off? In
> the past I just have just used =.
>
> --
> Cheers!
>
> Kevin.
>
> http://www.ve3syb.ca/   | "Nerds make the shiny things that
> https://www.patreon.com/KevinCozens | distract the mouth-breathers, and
>  | that's why we're powerful"
> Owner of Elecraft K2 #2172  |
> #include  | --Chris Hardwick
>
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Python 3 now required

2021-06-16 Thread Kevin Cozens

On 2021-06-15 6:32 a.m., Marco Ciampa wrote:

On Tue, Jun 15, 2021 at 12:22:42AM +0300, Eeli Kaikkonen wrote:

[snip]

That's where cmake UIs come handy. Try ccmake or cmake-gui (they are

[snip]


Exactly, Kevin is right but using the cmake-gui command it was very easy
to figure out how to change the variables to make it compile for me.


I changed a symlink on my machine to make 'python' point to 'python3'. I 
also rm'ed the build directory. I seem to be over the problem with it 
finding the right version of Python when both 2.7 and 3.6 are installed.


Now it complains that it can't find wxPython/Phoenix. AFAICT, that means I 
need version 4 of wx. I only have 3 and the distro I'm using doesn't have 
version 4 available so I can no longer build KiCAD v6. At least I solved the 
previous problem. :)



//Build for Python 3 instead of 2 (default OFF).
KICAD_SCRIPTING_PYTHON3:BOOL=ON


Is this the new way of specifying whether a setting is enabled or not? You 
need to specify the setting type and not just whether it is on or off? In 
the past I just have just used =.


--
Cheers!

Kevin.

http://www.ve3syb.ca/   | "Nerds make the shiny things that
https://www.patreon.com/KevinCozens | distract the mouth-breathers, and
| that's why we're powerful"
Owner of Elecraft K2 #2172  |
#include  | --Chris Hardwick

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] OCC now default build configuration

2021-06-16 Thread Wayne Stambaugh
OpenCascade is now the default when building KiCad.  This includes the 
5.1 branch.  This was done because OCC fixes a few bugs in OCE and OCE 
support will eventually be removed.


Package developers should adjust the platform build and install 
dependencies to OCC as required.  If a platform doesn't support OCC, 
configure builds with -DKICAD_USE_OCE=ON -DKICAD_USE_OCC=OFF in order to 
build against OCE.  Also, make sure OCE is uninstalled from your system 
before installing OCC as library conflicts can cause issues on some 
platforms.


Cheers,

Wayne


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp