Re: [Kicad-developers] Building Kicad on Windows 10/Eclipse/Msys2

2019-11-23 Thread Brian Piccioni
Eeli and Carsten Thanks for the additional info.  The reason I was working of the git information was in response to Simon earlier in this thread who suggested it. If git was the way to go I wanted to include it because people like me find that there is typically plenty of instructions regarding the use of developmentTools on things like Linux but very little on Windows/msys. Moreover, accomplished developers know this stuff implicitly whereas the rest of us do not. Same goes for things like cmake, etc.. Brian From: Eeli KaikkonenSent: November 23, 2019 4:35 AMTo: Carsten SchoenertCc: KiCad DevelopersSubject: Re: [Kicad-developers] Building Kicad on Windows 10/Eclipse/Msys2   la 23. marrask. 2019 klo 11.11 Carsten Schoenert (c.schoen...@t-online.de) kirjoitti:Hello Eli,Am 23.11.19 um 10:03 schrieb Eeli Kaikkonen:> BTW, it's unnecessarily verbose to say "git pull origin master". Just> "git pull" is enough when you are in the local master branch.no it's not.Your statement is only true if the user hasn't added one ore moreremotes. If you have only one remote configured git tries to be smartand is substitute the rest for the command by the obviously logical value.So, if you want to be safe than the full command line is correct. Oh yeah. I took a shortcut and thought about my normal situation when I have checked out a branch (master), although I added " when you are in the local master branch". Anyways it's best to give as simple instructions for getting the source code as possible and leave everything else for homework for the user. Eeli (with 2 e's) 

___
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] Building Kicad on Windows 10/Eclipse/Msys2

2019-11-23 Thread Eeli Kaikkonen
la 23. marrask. 2019 klo 11.11 Carsten Schoenert (c.schoen...@t-online.de)
kirjoitti:

> Hello Eli,
>
> Am 23.11.19 um 10:03 schrieb Eeli Kaikkonen:
> > BTW, it's unnecessarily verbose to say "git pull origin master". Just
> > "git pull" is enough when you are in the local master branch.
>
> no it's not.
> Your statement is only true if the user hasn't added one ore more
> remotes. If you have only one remote configured git tries to be smart
> and is substitute the rest for the command by the obviously logical value.
>
> So, if you want to be safe than the full command line is correct.
>
>
>
Oh yeah. I took a shortcut and thought about my normal situation when I
have checked out a branch (master), although I added " when you are in the
local master branch". Anyways it's best to give as simple instructions for
getting the source code as possible and leave everything else for homework
for the user.

Eeli (with 2 e's)
___
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] Building Kicad on Windows 10/Eclipse/Msys2

2019-11-23 Thread Carsten Schoenert
Hello Eli,

Am 23.11.19 um 10:03 schrieb Eeli Kaikkonen:
> BTW, it's unnecessarily verbose to say "git pull origin master". Just
> "git pull" is enough when you are in the local master branch.

no it's not.
Your statement is only true if the user hasn't added one ore more
remotes. If you have only one remote configured git tries to be smart
and is substitute the rest for the command by the obviously logical value.

So, if you want to be safe than the full command line is correct.

-- 
Regards
Carsten Schoenert

___
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] Building Kicad on Windows 10/Eclipse/Msys2

2019-11-23 Thread Eeli Kaikkonen
la 23. marrask. 2019 klo 4.05 Brian Piccioni (br...@documenteddesigns.com)
kirjoitti:

> Can Simon or somebody who understands such things verify that the
> following is correct so I can update my recipe?
>
>
>
> Thanks
>
>
>
> ==
>
>
>
> In Mingw64
>
>
>
> git clone https://github.com/KiCad/kicad-source-mirror.git
>
>
>
> This will create a local repository directory called kicad-source-mirror
>
>
>
> At any time you can update the repository by
>
>
>
> cd kicad-source-mirror
>
> git pull origin master
>
>
>
> Note that this will leave files which are in kicad-source-mirror but not
> in the kicad source repository unaffected.
>
> *** However *** they will over write your versions of those files! So if
> you edit cmakelists.txt or any other Kicad source file those edits will be
> lost.
>
>
>
Git pull tries to merge the upstream changes to your files. If there are no
conflicts the upstream changes and your own changes will both be in your
local files.

I don't think it's necessary to teach people how to use git in these
instructions. Just simple "download the source zip package and unzip it or
use git clone so that the sources are in such and such directory, for
example:..." and the simple unzip command line and the simple git clone
command line. You don't give further instructions about using unzip, either.

BTW, it's unnecessarily verbose to say "git pull origin master". Just "git
pull" is enough when you are in the local master branch. It's a shortcut
for "git fetch" + "git merge"; for details see e.g.
https://stackoverflow.com/questions/292357/what-is-the-difference-between-git-pull-and-git-fetch
or a git tutorial. (Now you can see why you shouldn't try to give extra
information about git in these instructions. Those who want to use git can
read a git tutorial.)

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] Building Kicad on Windows 10/Eclipse/Msys2

2019-11-22 Thread Brian Piccioni
Can Simon or somebody who understands such things verify that the following is correct so I can update my recipe? Thanks == In Mingw64 git clone https://github.com/KiCad/kicad-source-mirror.git This will create a local repository directory called kicad-source-mirror At any time you can update the repository by cd kicad-source-mirrorgit pull origin master  Note that this will leave files which are in kicad-source-mirror but not in the kicad source repository unaffected.*** However *** they will over write your versions of those files! So if you edit cmakelists.txt or any other Kicad source file those edits will be lost.   From: Simon RichterSent: November 22, 2019 6:46 AMTo: kicad-developers@lists.launchpad.netSubject: Re: [Kicad-developers] Building Kicad on Windows 10/Eclipse/Msys2 Hi, On Thu, Nov 21, 2019 at 09:30:48PM -0500, Brian Piccioni wrote: > Download the Kicad source files from https://github.com/KiCad/kicad-source-mirror > Untar or unzip into /home/kicad-source-mirror-master This probably should be "use git to get the source tree", otherwise I thinkthis might be a valuable addition to the website.    Simon ___Mailing list: https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.netUnsubscribe : https://launchpad.net/~kicad-developersMore 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] Building Kicad on Windows 10/Eclipse/Msys2

2019-11-22 Thread Brian Piccioni
Simon  I have never figured out how to use git to fetch sources. If you can direct me to something like a Linux command line example I would appreciate it otherwise I’ll set it as a background task. Brian From: Simon RichterSent: November 22, 2019 6:46 AMTo: kicad-developers@lists.launchpad.netSubject: Re: [Kicad-developers] Building Kicad on Windows 10/Eclipse/Msys2 Hi, On Thu, Nov 21, 2019 at 09:30:48PM -0500, Brian Piccioni wrote: > Download the Kicad source files from https://github.com/KiCad/kicad-source-mirror > Untar or unzip into /home/kicad-source-mirror-master This probably should be "use git to get the source tree", otherwise I thinkthis might be a valuable addition to the website.    Simon ___Mailing list: https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.netUnsubscribe : https://launchpad.net/~kicad-developersMore 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] Building Kicad on Windows 10/Eclipse/Msys2

2019-11-22 Thread Simon Richter
Hi,

On Thu, Nov 21, 2019 at 09:30:48PM -0500, Brian Piccioni wrote:

> Download the Kicad source files from 
> https://github.com/KiCad/kicad-source-mirror ;
> Untar or unzip into /home/kicad-source-mirror-master

This probably should be "use git to get the source tree", otherwise I think
this might be a valuable addition to the website.

   Simon

___
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] Building Kicad on Windows 10/Eclipse/Msys2

2019-11-21 Thread Brian Piccioni
Based on feedback received after I published a recipe for building Kicad with QT Creator, I managed to figure out how to build it on Windows 10 with Eclipse on Msys2.  I have posted that recipe here documenteddesigns.com/2019/11/22/building-kicad-on-windows-10-with-eclipse-msys2/ but, for posterity, repeat it below. I came very close to figuring out a build on Microsoft Visual Studio Community Edition but I’ll put that aside for the moment. MSVC is my preferred environment because it is pretty much all bundled.   Here we go. Msys2 InstallationInstall Msys2 (Download Msys2 http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20161025.exe )Open a Mingw64 terminal ( msys64/mingw64.exe ) as this only seems to work if you open a mingw64 window.pacman -SyuuAnswer yes to remove conflicts. Close the window via task manager when done.pacman -Syuu This takes a long time. Close the window via task manager when done.pacman -Syuu To make sure all is up to datecopy and paste these lines into Mingw64pacman -S base-devel \git \mingw-w64-x86_64-cmake \mingw-w64-x86_64-doxygen \mingw-w64-x86_64-gcc \mingw-w64-x86_64-python2 \mingw-w64-x86_64-pkg-config \mingw-w64-x86_64-swig \mingw-w64-x86_64-boost \mingw-w64-x86_64-cairo \mingw-w64-x86_64-glew \mingw-w64-x86_64-curl \mingw-w64-x86_64-wxPython \mingw-w64-x86_64-wxWidgets \mingw-w64-x86_64-toolchain \mingw-w64-x86_64-glm \mingw-w64-x86_64-oce \mingw-w64-x86_64-ngspice \mingw-w64-i686-toolchain mingw-w64-x86_64-toolchainInstall EclipseIn Windows install Eclipse CDT for Windows 64 bit see https://www.eclipse.org/downloads/packages/release/2019-09/r/eclipse-ide-cc-developersYou need to edit the eclipse.ini file and change the line -Xmx1024mto-Xmx2048m Or -Xmx4096m This increases the heap for Java so you don't get out of memory errors.Save the eclipse.ini and load eclipse to see if it works.Download and install Kicad Source FilesIn the mingw64 terminal and sure you can run mingw32-make.exe. If not, update the dos/windows path until you can.Note: this assumes you want the development build. If you want a release build, download that, for example kicad-5.1.4.tar.xz and use that name (kicad-5.1.4.tar.xz) insteead of kicad-source-mirror-master.Download the Kicad source files from https://github.com/KiCad/kicad-source-mirror Untar or unzip into /home/kicad-source-mirror-masterCreate a directory such as eclipse-kicad. This will be your build directory.cd /home/kicad-source-mirror-master/eclipse-kicadCopy and paste these lines into Mingw64cmake -DCMAKE_BUILD_TYPE=Debug \-G "Eclipse CDT4 - Unix Makefiles" \-DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE \-DCMAKE_PREFIX_PATH=C:/msys64/mingw64 \-DCMAKE_INSTALL_PREFIX=C:/msys64/mingw64 \-DDEFAULT_INSTALL_PATH=C:/msys64/mingw64 \-DMSYS=TRUE \../kicad-source-mirror-masterThis takes a few minutes but you only do it once.Note that the -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE switch creates a link between the build and source directories for eclipse. This allows for error highlighting, etc..You can test the build with make -j install (Note: the -j means use as many cores as you can and reduces compile time on my system by 70%). This process may take hours: on my gaming laptop it takes about 30 minutes if I use the -j option.In EclipseFile->Import General->Existing Projects into Workspace Select Root Directory as/home/kicad-source-mirror-master/eclipse-kicadWait for the indexing to complete (this will take some time)select debug configuration (at the top near the red square)Right click on project root select Build Targets go to the bottom and select Install. First time, edit and set make to C:\msys64\usr\bin\make.exe -j then click build.To rebuild select the project root and hit F9. Note that it you don't select F9 or Build Targets Install it will not copy the project in the appropriate bin directory.Note that you can access the source files in Eclipse by clicking [Source Directory] in the Eclipse project and you can rebuild by clicking the (*) Build Targets group.I have not yet figured out how to integrate the source, build, and debug functions, however I can use the Eclise standalone debugger (see https://wiki.eclipse.org/CDT/StandaloneDebugger ) to debug pretty much anyexecutable which has been compile with debug info as long as I also have the source files.I will update this with any corrections or if, as, and when, I figure out integrated debugging.

___
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