Comments (24)
Could you include linux binaries ? I'd like to integrate your tool with a github bot which runs on linux.
from plotkicadsch.
I think that expecting Kicad users to be expert in ocaml build system is requiring too much : installing opam is not that simple for everyone and the build process might fail because of issues unrelated to your project...
from plotkicadsch.
Did you already try to install it on windows? My colleges are tied to windows =|
So, if you already tried let me know, maybe we can work together on that.
I will give a look on 0install too.
from plotkicadsch.
I started making some tests. The binaries compile, but I haven't found yet the way to run git as a subprocess for now. But it's not lost yet.
from plotkicadsch.
Git should be on PATH. It should be the same as running it in Linux. Isn't it?
from plotkicadsch.
I tried, even in git bash, but couldn't make it work. You can test the binary output in case I overlooked anything:
https://ci.appveyor.com/api/projects/jnavila/plotkicadsch/artifacts/opam/4.06.0+mingw64c/bin/plotgitsch.exe
from plotkicadsch.
The latest binary available for downloads is working, provided that there is a libgmp-1.0.dll
in the same directory as plotgitsch.exe
. At least, it worked on a simple example project.
If you have installed git for windows with git-bash, you can find the dll in the installed packages.
Let me know if it works.
from plotkicadsch.
It looks promising, but couldn't launch a program to visualize the images.
I was trying a full path to chrome.exe
Is it right?
.\plotgitsch.exe -i "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" HEAD~2 HEAD
internal diff and show with C:\Program Files (x86)\Google\Chrome\Application\chrome.exe between Git rev HEAD~10 and Git rev HEAD
The system cannot find the file C:\Program.
The system cannot find the file C:\Program.
The system cannot find the file C:\Program.
The system cannot find the file C:\Program.
The system cannot find the file C:\Program.
Exception ("Kicadsch__Kicadlib.MakePainter(P).Component_Not_Found(\"MyLib:U.FL-R-SMT-1(10)\")")
Errored with code 1
Errored with code 1
Errored with code 1
Errored with code 1
Errored with code 1
from plotkicadsch.
Normally, you needn't provide the full path. It should work with just -ichrome
. Anyway, I'll check if I can correctly quote the parameters for Windows, but this seems quite obscure.
from plotkicadsch.
Good! It is working as you said with "chrome".
Well, considering on Linux, it should work if the binary is located with the PATH variable. So, when the binary is not located on the PATH variable, its full-path should be given (should work)
Since I couldn't launch the chrome.exe (or chrome) from the command line, I thought to add the whole path there.
from plotkicadsch.
In fact, Windows provides a resolver: start
; so launching start chrome
works, and that's just how I've done it.
from plotkicadsch.
Hm that is Interesting.
from plotkicadsch.
I'm not still sure whether the indirect paths are correctly managed (project as a subdir of git working copy). And some form of packaging is still needed. 👷♂️
from plotkicadsch.
Sure, the packaging is definitely a thing for windows users.
But I couldn't understand why you think indirect paths are correctly managed.
Give me an example, so I can try to recreate it.
from plotkicadsch.
That's the case for your project where the kicad project is a subdir of the main git project. I may have messed up with path separators.
from plotkicadsch.
Another issue is that the files generated for the diffs cannot be removed under windows as long as they are opened in the browser. So the keep option is useless.
from plotkicadsch.
Actually, I was not testing it on a Kicad project inside a git sub dir.
I am testing a kicad project stored on the root of the git.
Maybe it is better to generate the diff files on a temp folder. So the keep flag should just copy them to the project's dir.
from plotkicadsch.
Yeah, that would be better; the good news is that you managed to reproduce a working setup. Thanks for that.
from plotkicadsch.
Windows binaries are available here for each tag:
https://github.com/jnavila/plotkicadsch/releases
Next tag should be v0.4.0
from plotkicadsch.
You can easily compile binaries for your specific linux distribution by following the instructions of the readme. Windows binaries are only provided because compiling on Windows is quite messy.
from plotkicadsch.
As I'm currently waiting for Processing 4/12: [ocaml-base-compiler: make world.opt]
to complete I'll take the time to add my own request for other platform binaries. :) (Primarily Linux in my case.)
Needing to install opam
(which asks questions & wants to modify profile scripts & environment variables) and then wait for it to (I assume) install an entire OCaml compiler & environment is quite a barrier to trying out plotkicadsch
.
Given that OCaml seems capable of producing standalone binaries I'd encourage you to consider producing binaries for Linux & Mac also (as opam
itself does :) ).
Thanks for your work on plotkicadsch, I look forward to trying it out.
from plotkicadsch.
Back again cos I'm waiting for Processing 4/12: [ocaml-base-compiler: make world.opt]
(again!) because apparently the default version installed is now 4.08.1
which didn't work with plotkicadsch
.
With version 4.08.1
the [...] install plotkicadsch
command fails with "dependencies couldn't be met" with a long list.
In addition the command [...] switch 4.06.0
fails and asks if I meant [...] switch create 4.06.0
. Which then triggers another complete compiler + environment install... (On which I'm currently waiting for completion.)
time passes
When I try to install in 4.06.0
switch with ``[...] install plotkicadsch` it starts to install the dependencies and then fails with:
[...snip...]
# Fatal error: exception Out of memory
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build dune 1.11.1
└─
[...snip...]
Which I'm guessing might be related to the fact I'm doing all this in a VM?
Anyway, I think this is probably my limit in trying out plotkicadsch
at this point but hopefully it serves as a data point toward why additional binaries could be helpful.
Thanks for your time.
from plotkicadsch.
Another update as I couldn't leave well enough alone, so... :D
I closed a few browser tabs in the VM and tried re-running the install which proceeded further but then stop due to running out of disk space while building core_kernel
. (Apparently ~3GB free wasn't enough for the install.)
I cleared a little more space and tried the install one last time and it completed. :)
And then I was able to perform a test schematic conversion. :)
from plotkicadsch.
@follower glad you haven't given up. I read you are using a VM. Is your Kicad under a VM? Why not work native on your OS?
from plotkicadsch.
Related Issues (20)
- git is changing to the master branch HOT 13
- plotgitsch command performs checkout to master HOT 2
- Running on Windows HOT 7
- Limit gitplotsch scope in nested projects HOT 20
- Do not fail when a part is missing HOT 14
- Flag for generating/keeping images even if the images do not have changes
- Commit info HOT 6
- Short version of the help and version flags HOT 9
- Intermediate images do not have a transparent background HOT 6
- Exception (Invalid_argument "index out of bounds") HOT 2
- Minor details in the produced image HOT 2
- Internal error when it finds (maybe broken) symlinks HOT 18
- Keeping original files even if they don't have changes HOT 18
- Makefile - Making package
- Diffing local changes does not work when an untracked folder is into the repo HOT 9
- License type HOT 2
- Do you have a. Kicad SCH format to support KICad 6.0 HOT 3
- Plotkicadsh fails with missing components HOT 4
- plotgitsch could return 1 when at least of the commits is using the new `.kicad_sch` format
- Distro-specific issue and possible patch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plotkicadsch.