Author Topic: Building KiCAD for Windows  (Read 39815 times)

0 Members and 1 Guest are viewing this topic.

Offline djsbTopic starter

  • Frequent Contributor
  • **
  • Posts: 891
  • Country: gb
Building KiCAD for Windows
« on: August 13, 2011, 10:32:10 am »
To build the latest snapshot of KiCAD follow these instructions

http://tech.groups.yahoo.com/group/kicad-users/message/10163

You can get CMake from here:
http://www.cmake.org/files/v2.8/cmake-2.8.5-win32-x86.exe

You can get Bazaar from here:
http://launchpad.net/bzr/2.3/2.3.4/+download/bzr-2.3.4-1-setup.exe

> 2/ Same question for GCC.

The script I made will download and install a local copy of GCC for
you which will build KiCad. Basic instructions for use are:

Install Bazaar and CMake from the links above. Make sure to select
"Yes" if asked to add either one to the Windows path so that you can
run both tools from the command line.

Start a command prompt (Usually Start -> All Programs -> Accessories
-> Command Prompt). Use cd (Change Directory) to navigate to the
folder where you wish to have the kicad-winbuilder directory and use
Bazaar to get the script:

bzr branch lp:kicad-winbuilder

After the script has been fetched, enter the directory containing the script:

cd kicad-winbuilder

Then use cmake to run the script:
cmake -P KiCadWinbuilder.cmake

answer the question to whoami with your name and email address.

It should build KiCad and you should end up with a sub-directory
called bin which contains the latest executables.

Happy building.

David.

P.S Here is the Launchpad site for the Kicad-Winbuilder script

https://launchpad.net/kicad-winbuilder


« Last Edit: February 04, 2012, 06:52:15 pm by djsb »
David
Hertfordshire,UK
University Electronics Technician, London PIC,CCS C,Arduino,Kicad, Altium Designer,LPKF S103,S62 Operator, Electronics instructor. Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime. Credited Kicad French to English translator.
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: Building KiCAD for Windows
« Reply #1 on: August 13, 2011, 01:12:44 pm »
David,

This is a really great post. Thank you.

I have been giving Kicad a go  using the standard release build.

You have inspired me to start using the latest snapshots instead.

Is there a Kicad changelog or similar anywhere? The News-Changelog link at http://www.lis.inpg.fr/realise_au_lis/kicad/ seems to be permanently busted.

Richard
 

Offline djsbTopic starter

  • Frequent Contributor
  • **
  • Posts: 891
  • Country: gb
Re: Building KiCAD for Windows
« Reply #2 on: August 13, 2011, 01:51:13 pm »
You can view all the changes on the Launchpad page here

http://bazaar.launchpad.net/~kicad-testing-committers/kicad/testing/changes/3067?start_revid=3067

I'm not sure if you have to register on the site first. As a member I have access anyway so I don't know. Give it a try.
Post your experiences here. Thanks.

David.
David
Hertfordshire,UK
University Electronics Technician, London PIC,CCS C,Arduino,Kicad, Altium Designer,LPKF S103,S62 Operator, Electronics instructor. Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime. Credited Kicad French to English translator.
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: Building KiCAD for Windows
« Reply #3 on: August 13, 2011, 02:31:19 pm »
The link works without any login.

It is very good.

I just noticed that a calculator for track current capacity and electrical spacing has been added - part of the DRC I guess. The changelog even shows the reference PDFs used as the basis of these rules.

I am definitely going into the Kicad building business.
 

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #4 on: May 16, 2012, 07:39:46 am »
Very nice! How about if I need 1 or 2 earlier revisions than latest?
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: Building KiCAD for Windows
« Reply #5 on: May 16, 2012, 12:37:36 pm »
I had started posting all the daily builds I generate for myself, but there are others probably doing a better job, so I stopped.  One site with a number of builds is

http://kicad.picaxe.cz/

A couple of times I have had to backtrack to an earlier build when new bugs appeared in the latest build. It is definitely a risk, but you get advantages like a properly working PAN using the middle button.

Richard.
 

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #6 on: May 16, 2012, 04:37:51 pm »
I found that modifying line #489 of KiCadWinbuilder.cmake to "COMMAND bzr revert -r 3558" instead of "COMMAND bzr up" lets you build the revision you want, in this case revision 3558!

The compiled binaries still have in the window title the latest revision number instead of the earlier one you chose, but what you get built in fact is the revision you chose!

This is necessary because sometimes latest rev doesnt even build, or has a crappy bug.
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: Building KiCAD for Windows
« Reply #7 on: May 24, 2012, 12:03:26 pm »
I couldn't build recently.

I had to get the build script again with

Quote
bzr branch lp:kicad-winbuilder

The new script built OK.

Richard.
 

Offline exodia

  • Contributor
  • Posts: 40
Re: Building KiCAD for Windows
« Reply #8 on: June 27, 2012, 05:57:01 pm »
Cannot build version 3632 of kicad for windows using win builder script. ANyone having similar issues? Is there any repository for daily build on windows?
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: Building KiCAD for Windows
« Reply #9 on: July 01, 2012, 02:54:47 am »
Cannot build version 3632 of kicad for windows using win builder script. Anyone having similar issues? Is there any repository for daily build on windows?
Just tried building version 3634 and it worked fine (Win 7 64 bit).

Did you delete your old build script and get a new one?

bzr branch lp:kicad-winbuilder

You could just delete all old KiCad build files and start from scratch.

Richard.
 

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #10 on: August 31, 2012, 07:25:19 pm »
Hello, I got this error:



In the logs:

mingw32-make: *** No rule to make target '....libgcc_libmswuwx', needed by 'setup_h'.  Stop.

Any Idea?
« Last Edit: August 31, 2012, 07:47:17 pm by carloscuev »
 

Offline djsbTopic starter

  • Frequent Contributor
  • **
  • Posts: 891
  • Country: gb
Re: Building KiCAD for Windows
« Reply #11 on: August 31, 2012, 09:11:16 pm »
Try deleting the winbuilder script and then re-fetch it using the original instructions. This should work.
David
Hertfordshire,UK
University Electronics Technician, London PIC,CCS C,Arduino,Kicad, Altium Designer,LPKF S103,S62 Operator, Electronics instructor. Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime. Credited Kicad French to English translator.
 

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #12 on: August 31, 2012, 11:07:32 pm »
Nope, same error... Looks it's happening since I sent windows to sleep while compiling, then on wake up I interrupted the compiling process thinking it might end up badly compiled, and restarted compilation...
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: Building KiCAD for Windows
« Reply #13 on: September 01, 2012, 07:43:57 am »
Nope, same error... Looks it's happening since I sent windows to sleep while compiling, then on wake up I interrupted the compiling process thinking it might end up badly compiled, and restarted compilation...
I am running the script now on my WIndows PC without any problem - I am building Revision 3705.

When you got the new script, did you delete all the other folders in the kicad-winbuilder folder, so that the script file can rebuild the development environment from scratch? At one point, I had the script failing to build new revisions, but deleting everything solved the problem.

Richard
 

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #14 on: September 03, 2012, 07:20:12 am »
I'm still unable to compile, have tried deleteing everything and reinstalling cmake, now trying inside a virtual machine, let's see how it goes.
« Last Edit: September 03, 2012, 07:31:02 am by carloscuev »
 

Offline djsbTopic starter

  • Frequent Contributor
  • **
  • Posts: 891
  • Country: gb
Re: Building KiCAD for Windows
« Reply #15 on: September 03, 2012, 07:54:51 am »
Join this yahoo group

http://tech.groups.yahoo.com/group/kicad-users/

and explain the problem. A developer should be able to help you.
David
Hertfordshire,UK
University Electronics Technician, London PIC,CCS C,Arduino,Kicad, Altium Designer,LPKF S103,S62 Operator, Electronics instructor. Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime. Credited Kicad French to English translator.
 

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #16 on: September 03, 2012, 12:19:57 pm »
I compiled wxWidgets in a virtual machine, copied the compiled files to my standard windows installation and now I'm able to compile new Kicad builds, I don't know why I can't compile wxWidgets in my standard windows
 

Offline hairykiwi

  • Contributor
  • Posts: 21
  • Country: gb
Re: Building KiCAD for Windows
« Reply #17 on: October 21, 2012, 03:52:44 pm »
David, first off - many thanks for the build script!

I've just successfully* built the KiCad binaries for WinXP, but only after experiencing the problems identical to the screenshot previously posted:
...



...

The short answer is, even though I did as instructed:
Quote
Install Bazaar and CMake from the links above. Make sure to select
"Yes" if asked to add either one to the Windows path so that you can
run both tools from the command line.
the mingw\bin folder location was missing from my PATH variable. i.e. I needed to add "D:\my_kicad_dev_build_directory\kicad-winbuilder\mingw\bin" to the PATH variable. It also might have been complicated by PATH also referencing another mingw install I have - WinAVR.

After picking through the script to try to understand what it was doing, I found these URL's helpful or interesting:

EDIT:
*binaries built, but when run, all report "xxxxxxxx.exe has encountered a problem and needs to close"
This is the typical error summary:
AppName: eeschema.exe    AppVer: 0.0.0.0    ModName: libstdc++-6.dll
ModVer: 0.0.0.0    Offset: 00041788


EDIT 2:
exe problem solved - binaries need to be executed from the ..\kicad-winbuilder\bin folder - not moved/copied to any previously unpacked windows KiCad distribution. This is probably obvious to an experienced source builder, but not to a novice like me.

- Hamish
« Last Edit: October 21, 2012, 09:17:12 pm by hairykiwi »
 

Offline djsbTopic starter

  • Frequent Contributor
  • **
  • Posts: 891
  • Country: gb
Re: Building KiCAD for Windows
« Reply #18 on: October 21, 2012, 09:19:14 pm »
Delete your kicad-winbuilder directory and start afresh. That seems to work for me. If not post a message on the yahoo group mentioned earlier. I did not write the script. The developer who did write it might be able to solve the problem as he sometimes reads the yahoo group posts.
Other wise visit the kicad-winbuilder launchpad site.






PS. I'm compiling all my Kicad snapshots on Linux Mint now (see my other post on this) as it's a simpler process and more reliable.
David
Hertfordshire,UK
University Electronics Technician, London PIC,CCS C,Arduino,Kicad, Altium Designer,LPKF S103,S62 Operator, Electronics instructor. Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime. Credited Kicad French to English translator.
 

Offline hairykiwi

  • Contributor
  • Posts: 21
  • Country: gb
Re: Building KiCAD for Windows
« Reply #19 on: October 21, 2012, 09:32:19 pm »
Thanks for clarifying David,

Before putting the mingw/bin directory in the PATH, (which did do the trick for me - UPDATE: see reply from Brian in my latest post, below) I tried deleting and rebuilding as you suggested earlier, but just as someone else also experienced, that resulted in an identical error being thrown.

I will post as you suggested.

Thanks for the hint about Linux Mint too - I'll have a play.

Cheers,
Hamish

« Last Edit: November 14, 2012, 06:30:58 pm by hairykiwi »
 

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #20 on: November 14, 2012, 05:32:00 pm »
Is it just me or current rev 3800 doesn't compliles using kicadwinbuilder script?

I've attached error logs.
 

Offline poptones

  • Frequent Contributor
  • **
  • Posts: 709
  • Country: 00
Re: Building KiCAD for Windows
« Reply #21 on: November 14, 2012, 05:45:11 pm »
There isn't an exe file you can just download? I thought you used windows because it was easy :) If you have to compile it anyway, why not run a VM? That's what I do for my windows crap.
 

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #22 on: November 14, 2012, 06:07:33 pm »
There isn't an exe file you can just download? I thought you used windows because it was easy :) If you have to compile it anyway, why not run a VM? That's what I do for my windows crap.

I use windows for other reasons.
I always like using the top unstable revision of kicad, compile the newest every time I'll use it (yeah, some might think is dumb as a unstable rev might screw up my files) but I'll always have the option to use the old stable ones for easy-peasy download as you say. I just like working at the edge :)
 

Offline hairykiwi

  • Contributor
  • Posts: 21
  • Country: gb
Re: Building KiCAD for Windows
« Reply #23 on: November 14, 2012, 06:42:24 pm »
In my initial post, I incorrectly determined the cause of my build problem being due to mingw/bin directory NOT being in the PATH variable.

The script's author, Brian Sidebotham kindly corrected me via KiCad yahoo groupmail, so I've copied it below in the hope it helps someone else.

Brian wrote:
Hi Hamish,

It did not build because you had WinAVR in your path. This is a known bug with the script. It is best for me to create my own PATH export. The only reason I don't is because I cannot easily locate your Bazaar install and I can't download and extract a local Bazaar install easily (They haven't rolled a ZIP of the binaries for a long time, only MSI installers are made available for Windows)

Adding MinGW to your path is not needed as the script will download the latest MinGW installer and install MinGW locally to build KiCad anyway.

Thanks for using the script, and for your feedback. I might add a test for WinAVR and present a configuration error message so that people know it is a conflict.

Or I might do a download that already includes MinGW, cmake and Bazaar locally so the dependencies to build KiCad essentially become zero!
 

Offline poptones

  • Frequent Contributor
  • **
  • Posts: 709
  • Country: 00
Re: Building KiCAD for Windows
« Reply #24 on: November 14, 2012, 06:55:16 pm »
I really don't get kicad. This is sort of off topic. I'm just wondering how on earth you even learn to use that program. I find it's nuts. I learned on PADS back on windows 98 and kicad made that look easy.

Honestly the easiest layout software I've found is one of those "free" packages you get from a PC board maker. "PCB artist" they call it. Even the autorouter is easy (although I wouldn't use it for much since it works like an autorouter and runs traces all over the place). I normally try to use open source software whenever possible, but I just can't seem to get kicad.
 

Offline hairykiwi

  • Contributor
  • Posts: 21
  • Country: gb
Re: Building KiCAD for Windows
« Reply #25 on: November 14, 2012, 07:08:17 pm »
Which tutorials did you try? The Teho labs one got me going well enough. The yahoo groupmail is also very active and full of helpful people - including the developers sometimes. I can't compare KiCad with much as I didn't want to get bogged down with proprietary formats - so I persevered with learning KiCad. It is quirky, but seems quite powerful. The FreeRouter it links with can autoroute - but also good for dragging components around while maintaining netclass rules.
 

Offline ElektroQuark

  • Supporter
  • ****
  • Posts: 1244
  • Country: es
    • ElektroQuark
Re: Building KiCAD for Windows
« Reply #26 on: November 14, 2012, 08:20:30 pm »
Is it just me or current rev 3800 doesn't compliles using kicadwinbuilder script?

I've attached error logs.

Solved on rev 3801

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #27 on: March 11, 2013, 08:07:59 pm »
I've been posting daily builds here: http://escalalibre.com/edwt/ as well as Walter's libraries (http://smisioto.no-ip.org/elettronica/kicad/kicad-en.htm) in a single 7zip file and some random tools I've made for myself, but feel free to use them. Any comments please send me PM. Hope they're useful for you guys.
 

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #28 on: June 05, 2013, 07:47:37 am »
The Kicad-WinBuilder script has been updated, since some months it comes in a handy zip file with a bat file, just double click and everything starts. I guess the only other thing needed is cmake, but I'm not sure. Now, building you own testing versions is easier than ever ;)

https://launchpad.net/kicad-winbuilder
 

Offline ElektroQuark

  • Supporter
  • ****
  • Posts: 1244
  • Country: es
    • ElektroQuark
Re: Building KiCAD for Windows
« Reply #29 on: June 05, 2013, 08:29:52 am »
... as well as Walter's libraries (http://smisioto.no-ip.org/elettronica/kicad/kicad-en.htm) ...

Hi Carlos:

Do you update them regularly?
Thank you.

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #30 on: June 05, 2013, 08:37:21 am »
Yes I do, In less than 2 days there's a new release, or Walter posts new libraries I upload a new package
 

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #31 on: November 09, 2013, 08:32:04 am »
Latest testing build Rev.4448 with scripting, footprint library table and CERN's contributions is available at http://escalalibre.com/edwt/kicad_testingBinaries/ not sure if scripting works correctly as I don't know how to use it and/or test it.
 

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #32 on: November 09, 2013, 11:50:37 am »
its a bad sign ;)

 :-DD Why you say so?

I must admit sometimes it takes me more days to update them :P but as he made them available via github, my packages are nearly useless ;)
 

Offline Icchan

  • Regular Contributor
  • *
  • Posts: 88
  • Country: fi
Re: Building KiCAD for Windows
« Reply #33 on: February 21, 2014, 01:19:38 am »
I wonder why it's even a requirement to build it for windows yourself? One big wrinkle in otherwise ok package... hopefully it's not there because people are lazy to make it more accessible?
« Last Edit: February 22, 2014, 01:14:37 am by Icchan »
 

Offline HackedFridgeMagnet

  • Super Contributor
  • ***
  • Posts: 2028
  • Country: au
Re: Building KiCAD for Windows
« Reply #34 on: April 01, 2014, 05:03:00 am »
Quote
I wonder why it's even a requirement to build it for windows yourself? One big wrinkle in otherwise ok package... hopefully it's not there because people are lazy to make it more accessible?

I dont think it's because they are lazy, it's probably the Linux/Geda origin of the project.

I must admit I can't get Bazaar to work properly with my Subversion so I don't build either.

But if you look up the thread a bit.
Latest testing build Rev.4448 with scripting, footprint library table and CERN's contributions is available at http://escalalibre.com/edwt/kicad_testingBinaries/ not sure if scripting works correctly as I don't know how to use it and/or test it.

That link has all the windows binaries and I think you can just drop them in and run them. Well it works for me anyway.




« Last Edit: April 02, 2014, 01:23:04 am by HackedFridgeMagnet »
 

Offline HackedFridgeMagnet

  • Super Contributor
  • ***
  • Posts: 2028
  • Country: au
Re: Building KiCAD for Windows
« Reply #35 on: April 02, 2014, 01:27:42 am »
^ I will take that back

PCBNew doesn't work with the library table. I can't figure out why.

From what I can gather the library table is held in the users home directory. Except I haven't got this file, if I create it, it isn't used anyway.

I will go back to the last stable build for while.



 

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #36 on: April 02, 2014, 04:26:25 am »
Did you filled the lib table correctly? Here an example:


To be able to use those environment variables you may set them up on a bat file, which will be the new (temporary) way you run kicad:
« Last Edit: April 02, 2014, 06:00:04 am by carloscuev »
 

Offline HackedFridgeMagnet

  • Super Contributor
  • ***
  • Posts: 2028
  • Country: au
Re: Building KiCAD for Windows
« Reply #37 on: April 02, 2014, 05:44:44 am »
Thanks for the help.

I can get the PCB library Tables as demonstrated but I cannot find the file(s). I would like to directly edit them. They are supposed to be in my "home" directory which in windows should be under \Users\, but I cannot find them.

Anyway they must be somewhere as the information remains after restarting Kicad.

I am using Windows 8.1 but for some reason I have no %HOME% Environment Variable, maybe this is a problem.

Anyway I will try loading the new pretties from github and see what happens.

Anyway different versions of Kicad seem to be playing happily together.


 

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #38 on: April 02, 2014, 06:04:31 am »
The file is here: C:\Users\<name>\AppData\Roaming\kicad\fp-lib-table and it's filled like this:
 

Offline HackedFridgeMagnet

  • Super Contributor
  • ***
  • Posts: 2028
  • Country: au
Re: Building KiCAD for Windows
« Reply #39 on: April 02, 2014, 06:15:45 am »
Excellent, it is there. Roaming, why wouldn't put it there???. Surprised that the indexed search didn't find it.


So anyway I downloaded a .pretty file and placed it on a PCB all good.


I am not sure whether to work live with Libraries or to manually update local copies of them.
I saw some scripts written to do this, when I get the chance I will try it out.

Thanks for the input.
 

Offline jancumps

  • Supporter
  • ****
  • Posts: 1272
  • Country: be
  • New Low
Re: Building KiCAD for Windows
« Reply #40 on: April 02, 2014, 07:09:57 am »
i'll check if the same steps will solve my broken KICad on Linux. As soon as I switched to source builds the library thingy stopped working :)
 

Offline Rigby

  • Super Contributor
  • ***
  • Posts: 1476
  • Country: us
  • Learning, very new at this. Righteous Asshole, too
Re: Building KiCAD for Windows
« Reply #41 on: April 04, 2014, 02:28:25 pm »
I tried building with kicad-winbuilder last night and it failed.

I've attached the stderr.log; can anyone make heads or tails of this?

edit: nevermind.  answered in this thread: https://www.eevblog.com/forum/open-source-kicad-geda/problem-building-kicad-for-windows/
« Last Edit: April 04, 2014, 02:30:23 pm by Rigby »
 

Offline firewalker

  • Super Contributor
  • ***
  • Posts: 2450
  • Country: gr
Re: Building KiCAD for Windows
« Reply #42 on: April 10, 2014, 11:05:17 am »
Today (10-04-2014) I successfully built KiCad r4793 using Winbuilder on Windows 7.

Alexander.
Become a realist, stay a dreamer.

 

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #43 on: April 10, 2014, 03:42:40 pm »
To anyone building Kicad rev 4793 you will get this error when running cvpcb, eeschema, pcbnew, gerbview, pcbcalculator or pl_editor:



You need to manually copy:

"kicad-winbuilder-3.3\build\Release\cvpcb\_cvpcb.kiface"
"kicad-winbuilder-3.3\build\Release\eeschema\_eeschema.kiface"
"kicad-winbuilder-3.3\build\Release\gerbview\_gerbview.kiface"
"kicad-winbuilder-3.3\build\Release\pcb_calculator\_pcb_calculator.kiface"
"kicad-winbuilder-3.3\build\Release\pcbnew\_pcbnew.kiface"
"kicad-winbuilder-3.3\build\Release\pagelayout_editor\_pl_editor.kiface"

to your "kicad-winbuilder-3.3\kicad\bin\" folder

EDIT: cvpcb and pcbnew still fail to run  :palm:
« Last Edit: April 10, 2014, 03:52:53 pm by carloscuev »
 

Offline firewalker

  • Super Contributor
  • ***
  • Posts: 2450
  • Country: gr
Re: Building KiCAD for Windows
« Reply #44 on: April 10, 2014, 05:13:44 pm »
Can you check if  _pcbnew.pyd exists?

Alexander.
Become a realist, stay a dreamer.

 

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #45 on: April 10, 2014, 05:17:04 pm »
Yes, it's there.
 

Offline firewalker

  • Super Contributor
  • ***
  • Posts: 2450
  • Country: gr
Re: Building KiCAD for Windows
« Reply #46 on: April 10, 2014, 05:29:45 pm »
The process completed successfully? No errors at all?

Alexander.
Become a realist, stay a dreamer.

 

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #47 on: April 10, 2014, 05:46:39 pm »
No errors, I'll try to rebuild from scratch.
 

Offline firewalker

  • Super Contributor
  • ***
  • Posts: 2450
  • Country: gr
Re: Building KiCAD for Windows
« Reply #48 on: April 10, 2014, 06:53:55 pm »
After manually copying *.kiface files everything seems fine for me.



Alexander.
Become a realist, stay a dreamer.

 

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #49 on: April 10, 2014, 10:31:10 pm »
Nope, built from scratch and the problem persists
 

Offline HackedFridgeMagnet

  • Super Contributor
  • ***
  • Posts: 2028
  • Country: au
Re: Building KiCAD for Windows
« Reply #50 on: April 10, 2014, 10:42:22 pm »
When I build this it feels like I am bitcoin mining.
Will I find one?  :)
 

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #51 on: April 10, 2014, 10:44:13 pm »
When I build this it feels like I am bitcoin mining.
Will I find one?  :)

 :-DD
 

Offline HackedFridgeMagnet

  • Super Contributor
  • ***
  • Posts: 2028
  • Country: au
Re: Building KiCAD for Windows
« Reply #52 on: April 11, 2014, 12:41:43 am »
Built ok, but where do I get these Kiface files?
Any info on what they are do?
I can see something in the commit log. But it doesn't make much sense to me.

http://bazaar.launchpad.net/~kicad-product-committers/kicad/product/revision/4757
Quote
    Committer: Dick Hollenbeck
    Date: 2014-03-20 06:47:30 UTC
    mfrom: (4658.1.2 kiway-merge)
    Revision ID: dick@softplc.com-20140320064730-vj8xkej8lgn29et0

*   KIWAY Milestone A): Make major modules into DLL/DSOs.

!   The initial testing of this commit should be done using a Debug build so that
    all the wxASSERT()s are enabled.  Also, be sure and keep enabled the
    USE_KIWAY_DLLs option.  The tree won't likely build without it.  Turning it
    off is senseless anyways.  If you want stable code, go back to a prior version,
    the one tagged with "stable".

*   Relocate all functionality out of the wxApp derivative into more finely
    targeted purposes:
    a) DLL/DSO specific
    b) PROJECT specific
    c) EXE or process specific
    d) configuration file specific data
    e) configuration file manipulations functions.

    All of this functionality was blended into an extremely large wxApp derivative
    and that was incompatible with the desire to support multiple concurrently
    loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
    An amazing amount of organization come from simply sorting each bit of
    functionality into the proper box.

*   Switch to wxConfigBase from wxConfig everywhere except instantiation.
*   Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
    PGM_SINGLE_TOP,
*   Remove "Return" prefix on many function names.
*   Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
*   Fix building boost for use in a DSO on linux.
*   Remove some of the assumptions in the CMakeLists.txt files that windows had
    to be the host platform when building windows binaries.
*   Reduce the number of wxStrings being constructed at program load time via
    static construction.
*   Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
    these functions are useful even when the wxConfigBase comes from another
    source, as is the case in the KICAD_MANAGER_FRAME.
*   Move the setting of the KIPRJMOD environment variable into class PROJECT,
    so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
*   Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
    its child wxFrames and wxDialogs now have a Kiway() member function which
    returns a KIWAY& that that window tree branch is in support of.  This is like
    wxWindows DNA in that child windows get this member with proper value at time
    of construction.
*   Anticipate some of the needs for milestones B) and C) and make code
    adjustments now in an effort to reduce work in those milestones.
*   No testing has been done for python scripting, since milestone C) has that
    being largely reworked and re-thought-out.
 

Offline carloscuev

  • Regular Contributor
  • *
  • Posts: 122
  • Country: mx
    • Spanish Freescale Developers Forum
Re: Building KiCAD for Windows
« Reply #53 on: April 11, 2014, 01:09:36 am »
You can find them here:
"kicad-winbuilder-3.3\build\Release\cvpcb\_cvpcb.kiface"
"kicad-winbuilder-3.3\build\Release\eeschema\_eeschema.kiface"
"kicad-winbuilder-3.3\build\Release\gerbview\_gerbview.kiface"
"kicad-winbuilder-3.3\build\Release\pcb_calculator\_pcb_calculator.kiface"
"kicad-winbuilder-3.3\build\Release\pcbnew\_pcbnew.kiface"
"kicad-winbuilder-3.3\build\Release\pagelayout_editor\_pl_editor.kiface"

Reading that revision description you posted I'll enable USE_KIWAY_DLLS option and rebuild, wish me luck!

No concrete idea about what they are for :(
« Last Edit: April 11, 2014, 01:12:30 am by carloscuev »
 

Offline HackedFridgeMagnet

  • Super Contributor
  • ***
  • Posts: 2028
  • Country: au
Re: Building KiCAD for Windows
« Reply #54 on: April 11, 2014, 01:48:15 am »
After I manually copied the .kiface files eeschema and pcbnew both ran, I could place components. So looking good.

Although Kicad.exe crashed so still bugs on this build.

from About:

Application: kicad
Version: (2014-04-10 BZR 4796)-product Release build
wxWidgets: Version 3.0.0 (debug,wchar_t,compiler with C++ ABI 1002,GCC 4.8.1,wx containers,compatible with 2.8)
Platform: Windows NT 6.2 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Boost version: 1.54.0
         USE_WX_GRAPHICS_CONTEXT=OFF
         USE_WX_OVERLAY=OFF
         KICAD_SCRIPTING=ON
         KICAD_SCRIPTING_MODULES=ON
         KICAD_SCRIPTING_WXPYTHON=ON
         USE_FP_LIB_TABLE=HARD_CODED_ON
         BUILD_GITHUB_PLUGIN=ON


 

Offline firewalker

  • Super Contributor
  • ***
  • Posts: 2450
  • Country: gr
Re: Building KiCAD for Windows
« Reply #55 on: April 11, 2014, 06:28:14 am »
Carlos, how do you packet you binary? E.g. in bin.4740 I don't see any bat files for settings paths etc.

Alexander.
Become a realist, stay a dreamer.

 

Offline firewalker

  • Super Contributor
  • ***
  • Posts: 2450
  • Country: gr
Re: Building KiCAD for Windows
« Reply #56 on: April 11, 2014, 06:31:29 am »
I also will try a statically linked binary (scripting disabled).

Alexander.
Become a realist, stay a dreamer.

 

Offline firewalker

  • Super Contributor
  • ***
  • Posts: 2450
  • Country: gr
Re: Building KiCAD for Windows
« Reply #57 on: April 11, 2014, 11:16:33 am »
Nope, built from scratch and the problem persists

You should copy all the dlls found on "mingw32\bin" folder to you bin directory. I tried you build and had the same error. After copying the dlls, everything seems fine.

Alexander.
Become a realist, stay a dreamer.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf