Re: [Kicad-developers] CMake help

2021-05-18 Thread Nick Østergaard
Mm, normally you should use the mingw env in msys2, from your prompt it
appears you use the msys env.

Normally I would expect all psths it uses for binsries to be unic like,
that is /c instead of c:/

ons. 19. maj 2021 02.55 skrev Clifford Neal Simon :

> Hi devs,
>
> I'm doing my first build from source, using msys2 on windows.
> I (shallow) cloned the main repository.
> I downloaded the tools and dependencies using pacman, according to here:
> https://dev-docs.kicad.org/en/build/windows-msys2/
> Now I should be able to run cmake, but cmake fails.
>
> User@Programming MSYS ~/kicad/build/release
> $ /mingw64/bin/cmake -DCMAKE_BUILD_TYPE=Release \
>   -G "MSYS Makefiles" \
>   -DCMAKE_PREFIX_PATH=/mingw64 \
> -DCMAKE_INSTALL_PREFIX=/mingw64 \
> -DDEFAULT_INSTALL_PATH=/mingw64 \
> ../../
> -- The C compiler identification is unknown
> -- The CXX compiler identification is unknown
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - failed
> -- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe
> -- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe - broken
> CMake Error at
> C:/msys64/mingw64/share/cmake-3.20/Modules/CMakeTestCCompiler.cmake:66
> (message):
>   The C compiler
>
> "C:/msys64/mingw64/bin/gcc.exe"
>
>   is not able to compile a simple test program.
>
> I looked at CMakeError.log. From what I can tell from there, it seems to
> be trying to compile "CMakeCCompilerId.c" with gcc but it passed the flags
> --target=arm-arm-none-eabi;-mcpu=cortex-m3 to gcc and gcc does not
> understand those flags. Those flags are very strange. I did not ask to
> cross-compile, and of course I would not expect for a cross-compilation to
> work. Have I missed a step?
>
> -Clifford
>
> ___
> 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] OCE vs. OCC default build flag

2021-05-18 Thread Kevin Cozens

On 2021-05-18 11:15 a.m., Carsten Schoenert wrote:

you will need to have installed libocct-data-exchange-dev which will
probably pull in other OCC related packages as an dependency.


Thanks for the info. Good to know that libocct is the library I will need to 
install when the switch is made from OCE to OCC.


--
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] CMake help

2021-05-18 Thread Clifford Neal Simon
Hi devs,

I'm doing my first build from source, using msys2 on windows.
I (shallow) cloned the main repository.
I downloaded the tools and dependencies using pacman, according to here:
https://dev-docs.kicad.org/en/build/windows-msys2/
Now I should be able to run cmake, but cmake fails.

User@Programming MSYS ~/kicad/build/release
$ /mingw64/bin/cmake -DCMAKE_BUILD_TYPE=Release \
-G "MSYS Makefiles" \
-DCMAKE_PREFIX_PATH=/mingw64 \
-DCMAKE_INSTALL_PREFIX=/mingw64 \
-DDEFAULT_INSTALL_PATH=/mingw64 \
../../
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe
-- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe - broken
CMake Error at
C:/msys64/mingw64/share/cmake-3.20/Modules/CMakeTestCCompiler.cmake:66
(message):
  The C compiler

"C:/msys64/mingw64/bin/gcc.exe"

  is not able to compile a simple test program.

I looked at CMakeError.log. From what I can tell from there, it seems to be
trying to compile "CMakeCCompilerId.c" with gcc but it passed the flags
--target=arm-arm-none-eabi;-mcpu=cortex-m3 to gcc and gcc does not
understand those flags. Those flags are very strange. I did not ask to
cross-compile, and of course I would not expect for a cross-compilation to
work. Have I missed a step?

-Clifford
___
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] How many users does KiCAD have?

2021-05-18 Thread Seth Hillbrand
Hello Avishay-

We do not currently have telemetry for KiCad directly.  But we do have some
metrics on downloads as a proxy for installations.

We average ~1500 downloads per day from the KiCad website.  This is
relatively steady over time and works out to 225,000 downloads of KiCad
5.1.9.  This accounts for Windows (90%) and MacOS (10%) but does not
account for installations on linux and other *nixes.  From the Ubuntu
numbers given by Jean-Samuel, Ubuntu will account for another 30 downloads
per day or a total of 5k users.

The limitations of this method of counting:
1) It does not track _unique_ download (no IP logging), so a user
downloading twice will count twice
2) It does not account for users that neglect to upgrade their minor
versions, so it does not count users of 5.1.0-5.1.8 that have not upgraded.
3) It does not count Linux users who compile on their own or install
versions directly from their package managers (and not the Ubuntu PPA)

Overall, this is likely our baseline number.  We don't have estimates for
the rates of upgrades, so we can't say how much larger the true number is
right now.  It also does not capture users running nightly builds (they are
more likely to download multiple times for the same installation) or users
running older versions of KiCad.

Also of interest might be this breakdown of the locations of users
downloading KiCad:
[image: image.png]

As you can see, we are dominated by European users at the moment.  I will
note that both Asia and South America are becoming more prevalent.  And, in
case this graph concerns people, it is derived by major IP octets.  We do
not store IP addresses, but we do store coarse locations by zeroing out the
lower two octets of IP addresses before geolocating to a country.  This
helps us to make informed decisions about features (e.g. ISO vs. ANSI vs
JIS vs GOST?) to include in future versions of KiCad.

While we do have some ideas of commercial usage, these are not data that we
share publicly.  I hope you understand.

I hope this helps.

Regards-
Seth


On Tue, May 18, 2021 at 3:22 AM Avishay Orpaz  wrote:

> I understand it's a tricky question to answer, especially when it comes to
> open source software, but is there any estimation about the number of
> active KiCAD users? How many (commercial) companies use KiCAD? How many
> people downloaded each version of KiCAD?
>
> Avishay
> ___
> 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
>


-- 
[image: KiCad Services Corporation Logo]
Seth Hillbrand
*Lead Developer*
+1-530-302-5483‬
Long Beach, CA
www.kipro-pcb.comi...@kipro-pcb.com
___
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] OCE vs. OCC default build flag

2021-05-18 Thread Ian McInerney
I would prefer we keep this change to 5.99/6.0 only and not force a default
change in 5.1 builds. There are enough other dependency changes going on
for future v6 that packagers/users have to handle I think it is more
reasonable to force it there.

-Ian

On Tue, May 18, 2021 at 5:35 PM Eeli Kaikkonen 
wrote:

> See
> https://gitlab.com/eelik-kicad/kicad/-/wikis/How-to-build-KiCad-on-Ubuntu-(the-easy-way)
>
> The reason I started this thread was that I saw that practically all
> packages were using OCC already, so it's available.
>
> On Tue, May 18, 2021 at 6:04 PM Kevin Cozens  wrote:
> >
> > How will this affect those of us who build KiCad from source? I have
> liboce
> > packages installed which provide OCE. If you change to OCC what
> package(s)
> > will I need then? The distro I use (Linux Mint) has libocct (Open CASCADE
> > Technology) packages. Is that what I will need or will I have to find
> > another source (ie. a PPA) for the support libraries?
> >
>
> Eeli Kaikkonen
>
> ___
> 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] SPICE_VALUE behavior

2021-05-18 Thread Wayne Stambaugh

Hi Sylwester,

I don't know that we need to support SI units in spice strings but I 
suppose it wouldn't hurt.  That would have to wait until V7 as it is a 
new feature.  The test cases look correct so I don't see any issues here.


- Wayne

On 5/18/21 2:06 PM, Sylwester Kocjan wrote:

Hello!

I've noticed a minor bug in SPICE_VALUE class. Could you please let me 
know if we should parse SI units in SPICE strings or ignore them, so I 
can fix it? I think ngspice accepts units like, V, I, Ohm, but this may 
be an overkill. The easiest solution is to ignore everything after 
number and prefix.


See below the testcases I made on AC tab of Simulation Settings dialog:

Input:  Actual behavior:    Expected behavior:
10m Value parsed correctly  Value parsed correctly
10mHz   Value parsed correctly  Value parsed correctly
10mHzz  Value parsed correctly  Exception thrown
10Hz    Exception thrown    Value parsed correctly
10Hzz   Exception thrown    Exception thrown

Best regards,
Sylwester

___
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


[Kicad-developers] SPICE_VALUE behavior

2021-05-18 Thread Sylwester Kocjan
Hello!   Ive noticed a minor bug in SPICE_VALUE class. Could you please 
let me know if we should parse SI units in SPICE strings or ignore them, so I 
can fix it? I think ngspice accepts units like, V, I, Ohm, but this may be an 
overkill. The easiest solution is to ignore everything after number and prefix. 
   See below the testcases I made on AC tab of Simulation Settings dialog:   
Input:  Actual behavior:    Expected behavior:  10m Value 
parsed correctly  Value parsed correctly  10mHz   Value parsed correctly  
Value parsed correctly  10mHzz  Value parsed correctly  Exception thrown  
10Hz    Exception thrown    Value parsed correctly  10Hzz   
Exception thrown    Exception thrown   Best regards,  Sylwester
___
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] OCE vs. OCC default build flag

2021-05-18 Thread Eeli Kaikkonen
See 
https://gitlab.com/eelik-kicad/kicad/-/wikis/How-to-build-KiCad-on-Ubuntu-(the-easy-way)

The reason I started this thread was that I saw that practically all
packages were using OCC already, so it's available.

On Tue, May 18, 2021 at 6:04 PM Kevin Cozens  wrote:
>
> How will this affect those of us who build KiCad from source? I have liboce
> packages installed which provide OCE. If you change to OCC what package(s)
> will I need then? The distro I use (Linux Mint) has libocct (Open CASCADE
> Technology) packages. Is that what I will need or will I have to find
> another source (ie. a PPA) for the support libraries?
>

Eeli Kaikkonen

___
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] OCE vs. OCC default build flag

2021-05-18 Thread Carsten Schoenert
Hi,

Am 18.05.21 um 17:01 schrieb Kevin Cozens:
> How will this affect those of us who build KiCad from source? I have liboce 
> packages installed which provide OCE. If you change to OCC what package(s) 
> will I need then? The distro I use (Linux Mint) has libocct (Open CASCADE 
> Technology) packages. Is that what I will need or will I have to find 
> another source (ie. a PPA) for the support libraries?

you will need to have installed libocct-data-exchange-dev which will
probably pull in other OCC related packages as an dependency.

-- 
Regards
Carsten

___
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] OCE vs. OCC default build flag

2021-05-18 Thread Kevin Cozens

On 2021-05-17 8:19 a.m., Wayne Stambaugh wrote:
How does this change affect our package devs?  I'm guessing they would have 
to make some package dependencies changes if OCC is going to be the 
default.  I would like to hear from them before we make OCC the default.


How will this affect those of us who build KiCad from source? I have liboce 
packages installed which provide OCE. If you change to OCC what package(s) 
will I need then? The distro I use (Linux Mint) has libocct (Open CASCADE 
Technology) packages. Is that what I will need or will I have to find 
another source (ie. a PPA) for the support libraries?


--
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


Re: [Kicad-developers] OCE vs. OCC default build flag

2021-05-18 Thread Wayne Stambaugh
Make sure that OCE is not installed along side OCC.  I also had to add 
"-DOCC_INCLUDE_DIR=/${MINGW_PREFIX}/include/opencascade" so that 
FindOpenCASCADE.cmake could find the header files.  Everything else 
should build as normal.


On 5/18/2021 9:12 AM, Nick Østergaard wrote:

It did not work last time I tried it.

On Tue, 18 May 2021 at 14:43, Wayne Stambaugh > wrote:


I just looked and the 5.1.10 windows build is using OCE.  I thought we
switched over to OCC for msys2 builds but apparently not.  I have
switched to OCC on my windows msys2 builds.  I think we should switch
the msys2 5.1 builds to OCC because it resolves some issues.

Wayne

On 5/17/2021 3:21 PM, Seth Hillbrand wrote:
 > After reviewing the thread that Nick linked
 > (https://gitlab.com/kicad/code/kicad/-/issues/6198

 > >) I recall this
 > discussion more.
 >
 > I think that we should remove OCE altogether.  The existing versions
 > have bugs that we cannot fix and it is fully deprecated at the
source
 > repository (https://github.com/tpaviot/oce/releases

 > >) in that it only tags
upstream
 > releases and hasn't released any updates since 2018.
 >
 > Keeping OCE in the build tree as an option is just asking for
headaches
 > that we can avoid in v6.
 >
 > -Seth
 >
 > On Mon, May 17, 2021 at 12:07 PM Steven A. Falco
mailto:stevenfa...@gmail.com>
 > >> wrote:
 >
 >     I confirm that Fedora already selects OCC in its build
scripts, both
 >     for the official 5.1 builds, and for the 5.99 nightlies.  The
 >     default can change without affecting Fedora.
 >
 >              Steve
 >
 >     ___
 >     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 Services Corporation Logo
 > Seth Hillbrand
 > *Lead Developer*
 > +1-530-302-5483‬
 > Long Beach, CA
 > www.kipro-pcb.com 
>
i...@kipro-pcb.com 
 > >
 >
 >
 > ___
 > 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] OCE vs. OCC default build flag

2021-05-18 Thread Nick Østergaard
It did not work last time I tried it.

On Tue, 18 May 2021 at 14:43, Wayne Stambaugh  wrote:

> I just looked and the 5.1.10 windows build is using OCE.  I thought we
> switched over to OCC for msys2 builds but apparently not.  I have
> switched to OCC on my windows msys2 builds.  I think we should switch
> the msys2 5.1 builds to OCC because it resolves some issues.
>
> Wayne
>
> On 5/17/2021 3:21 PM, Seth Hillbrand wrote:
> > After reviewing the thread that Nick linked
> > (https://gitlab.com/kicad/code/kicad/-/issues/6198
> > ) I recall this
> > discussion more.
> >
> > I think that we should remove OCE altogether.  The existing versions
> > have bugs that we cannot fix and it is fully deprecated at the source
> > repository (https://github.com/tpaviot/oce/releases
> > ) in that it only tags
> upstream
> > releases and hasn't released any updates since 2018.
> >
> > Keeping OCE in the build tree as an option is just asking for headaches
> > that we can avoid in v6.
> >
> > -Seth
> >
> > On Mon, May 17, 2021 at 12:07 PM Steven A. Falco  > > wrote:
> >
> > I confirm that Fedora already selects OCC in its build scripts, both
> > for the official 5.1 builds, and for the 5.99 nightlies.  The
> > default can change without affecting Fedora.
> >
> >  Steve
> >
> > ___
> > 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 Services Corporation Logo
> > Seth Hillbrand
> > *Lead Developer*
> > +1-530-302-5483‬
> > Long Beach, CA
> > www.kipro-pcb.com  i...@kipro-pcb.com
> > 
> >
> >
> > ___
> > 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] OCE vs. OCC default build flag

2021-05-18 Thread Wayne Stambaugh
I just looked and the 5.1.10 windows build is using OCE.  I thought we 
switched over to OCC for msys2 builds but apparently not.  I have 
switched to OCC on my windows msys2 builds.  I think we should switch 
the msys2 5.1 builds to OCC because it resolves some issues.


Wayne

On 5/17/2021 3:21 PM, Seth Hillbrand wrote:
After reviewing the thread that Nick linked 
(https://gitlab.com/kicad/code/kicad/-/issues/6198 
) I recall this 
discussion more.


I think that we should remove OCE altogether.  The existing versions 
have bugs that we cannot fix and it is fully deprecated at the source 
repository (https://github.com/tpaviot/oce/releases 
) in that it only tags upstream 
releases and hasn't released any updates since 2018.


Keeping OCE in the build tree as an option is just asking for headaches 
that we can avoid in v6.


-Seth

On Mon, May 17, 2021 at 12:07 PM Steven A. Falco > wrote:


I confirm that Fedora already selects OCC in its build scripts, both
for the official 5.1 builds, and for the 5.99 nightlies.  The
default can change without affecting Fedora.

         Steve

___
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 Services Corporation Logo
Seth Hillbrand
*Lead Developer*
+1-530-302-5483‬
Long Beach, CA
www.kipro-pcb.com  i...@kipro-pcb.com 




___
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] How many users does KiCAD have?

2021-05-18 Thread Jean-Samuel Reynaud
Dear Avishay,


For PPA I have some statistic (available at
https://jsreynaud.github.io/). But it include only download for packages
of KiCad via PPA (ubuntu).


Le 18/05/2021 à 12:19, Avishay Orpaz a écrit :
> I understand it's a tricky question to answer, especially when it comes
> to open source software, but is there any estimation about the number of
> active KiCAD users? How many (commercial) companies use KiCAD? How many
> people downloaded each version of KiCAD?
> 
> Avishay
> 
> ___
> 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


[Kicad-developers] How many users does KiCAD have?

2021-05-18 Thread Avishay Orpaz
I understand it's a tricky question to answer, especially when it comes to
open source software, but is there any estimation about the number of
active KiCAD users? How many (commercial) companies use KiCAD? How many
people downloaded each version of KiCAD?

Avishay
___
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