Giter Site home page Giter Site logo

provide binaries about plotkicadsch HOT 24 CLOSED

jnavila avatar jnavila commented on June 6, 2024
provide binaries

from plotkicadsch.

Comments (24)

gbip avatar gbip commented on June 6, 2024 1

Could you include linux binaries ? I'd like to integrate your tool with a github bot which runs on linux.

from plotkicadsch.

gbip avatar gbip commented on June 6, 2024 1

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.

leoheck avatar leoheck commented on June 6, 2024

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.

jnavila avatar jnavila commented on June 6, 2024

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.

leoheck avatar leoheck commented on June 6, 2024

Git should be on PATH. It should be the same as running it in Linux. Isn't it?

from plotkicadsch.

jnavila avatar jnavila commented on June 6, 2024

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.

jnavila avatar jnavila commented on June 6, 2024

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.

leoheck avatar leoheck commented on June 6, 2024

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.

jnavila avatar jnavila commented on June 6, 2024

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.

leoheck avatar leoheck commented on June 6, 2024

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.

jnavila avatar jnavila commented on June 6, 2024

In fact, Windows provides a resolver: start; so launching start chrome works, and that's just how I've done it.

from plotkicadsch.

leoheck avatar leoheck commented on June 6, 2024

Hm that is Interesting.

from plotkicadsch.

jnavila avatar jnavila commented on June 6, 2024

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.

leoheck avatar leoheck commented on June 6, 2024

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.

jnavila avatar jnavila commented on June 6, 2024

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.

jnavila avatar jnavila commented on June 6, 2024

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.

leoheck avatar leoheck commented on June 6, 2024

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.

jnavila avatar jnavila commented on June 6, 2024

Yeah, that would be better; the good news is that you managed to reproduce a working setup. Thanks for that.

from plotkicadsch.

jnavila avatar jnavila commented on June 6, 2024

Windows binaries are available here for each tag:
https://github.com/jnavila/plotkicadsch/releases

Next tag should be v0.4.0

from plotkicadsch.

jnavila avatar jnavila commented on June 6, 2024

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.

follower avatar follower commented on June 6, 2024

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.

follower avatar follower commented on June 6, 2024

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.

follower avatar follower commented on June 6, 2024

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.

jnavila avatar jnavila commented on June 6, 2024

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.