-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't install kicad-diff on windows #1
Comments
Note I ran it on Linux using the same system and it seems fine |
Hey, @jorlee99 I never ran it on Window. But it looks like some users want this too. Plotkicadsch is an external tool. Did you check this page? https://github.com/jnavila/plotkicadsch#windows My suggestion is to use the Windows Linux Subsystem (WLS) to try it first. |
What are the commands you are using to install opam/plotgitsch? |
The command I ran was |
Yea so the windows version I am trying to install it through opam which is how I ended up here. As for copying the binaries, I can't see to find the directory for them to just "copy them over". |
Check this answer from the Author of the |
I think this worked thanks for the help there! I posted my other error within that thread so hopefully that will get figured out. It seems I'm also getting errors on the KiCad-Diff plugin as well. It seems simpler but I am not sure? So I'm using my bash console to change the path using the following command Thanks for your help! |
launch kicad in a nother terminal. |
Ok I've made some progress in the mean time. I've gotten up to here on the windows machine. As for reference I am using the sample project from plotgitsch. I get the following on my webpage As you can see nothing is output for the schematic even though it should. As for the PCB layout it seems to take some place holder img file? I am not sure. Inspecting the console output itself I get the following errors: I have tested this on my linux OS of the project and it seems like it works fine? The schematic works just fine I have yet to test the PCB layout of the project. Any ideas? One thing to note is that when it outputs |
Delete the kidiff folder or use the -r flag when executing kdiff and test one more time. |
Unfortunately there was no change after removing to folder. Yes you are correct there are no layout changes, but it seems as though it can't find the file itself and uses some placeholder image?
|
run it with the flag -V then it will show each command it is running |
Sure
This is the output of the terminal |
Hm, did you install python dependencies? Install these 2 python packages and try one more time.
|
So I just installed those packages:
and unfortunately no luck same issue. |
Run this and share the output please
|
Your board is inside a folder called schematic, is this right? |
I changed the directory to inside schematic and ran the following |
Yes this happens because you have to pass 2 valid git revisions where you know the boards differs. You don You can also explore kidiff with |
I removed a component and added a new commit so totaling to 6 commits now:
And when doing your command of comparing two commits It seems like it's trying the use the commit as the file name currently? I'm not sure. |
Please, do this
|
I'm sorry I am not understanding. Are you telling me to just play around with the command? It seems like it is running but the assets themselves aren't working as it doesn't know how to pull the svgs perhaps? Maybe I am understanding this wrong please correct me if I am wrong. |
cool, let me see the main.html to check if the file references are correct. |
My apologies. Here are their respective kdiff files (one from windows the other from linux). Both seem ok? As I am running the kdiff command on the board I get the following as an example Apologies again. |
Yeah these scripts have to be tweaked a little bit. |
Looking a bit more into it, I have tried the KiCad-Diff kidiff command in bash on windows and as stated above it returns |
I am am running this just fine on Windows now. |
Then kdiff is generating layout diffs, but it cannot load the page at the end. I have to update this to be a server instead like Kicad-Diff is. To solve this, just load the Kicad-diff right after running kdiff. Like this
Then a page will load, and then you have to replace the
|
Hey, @jorlee99 I pushed a change where it uses a webserver to launch the page at the end. |
TLDR; Webpage launches but I am still encountering problems Hi @leoheck, that's amazing that it's working on windows that means there is hope. Yea so your webserver seems to be working? For me it produces the following webpage. So the webpage launches and that is great but i think the kdiff and kidiff commands are still broken for me somehow. Knowing that it works for you I must be missing something. To start all over following your readme and unfortunately I will go painstakingly in depth so bear with me. Next, using the installed ubuntu 18.04 LTS version, I ran all your dependency commands in your read me and all of those installed just fine. Now we start encountering the real problems. So opam did not let me create a new compiler and the list of compilers only goes up to 4.07.0 with trunk versions of the 4.08.0. I used the compiler 4.07.0 when trying all the upcoming commands so that might be the source of the issue. When running your script So I can't get plotkicadsch installed. Moving on, I ran so obviously with kdiff because plotkicadsch didnt get install it doesn't have plotgitsch. Any ideas how to progress from here? Thanks for your help so far though we seem close! @leoheck |
However, on Linux and it launches just fine. On a side note it seems the zoom while scrolling or panning is no longer working on the PCB layout nor does view types? I'm not sure if you're encountering the same problem |
Yeap, this webserver still has an issue loading the page. I will check how to improve this. |
The webserver seems to running fine on linux so obviously it's a windows thing. But it seems to work with you by chance what ubuntu version are you running for your WSL. |
I have an update. I have it fully working on a windows machine now. The key thing I was missing was that you can NOT just do opam init on first installation. After some digging it turns out that WSL does not support sandboxing otherwise known as the bwrap command as referenced here a quick workaround is doing the following but do read the warnings concerning the matter as well. After doing that and following your other steps it works fine. Thanks so much! @leoheck
as for the webpage issue you are correct sometimes it loads sometimes it doesn't but opening the file from the file explorer seems to work. |
Good, thanks for this finding. I am going to test to update the README.md. |
Hey @jorlee99 could you test the last version of the code to see if it improve page loading for you? |
Hi @leoheck. Running the kdiff command I get the following webpage I can access the directories and it leads me there eventually if I click the web folder. |
What is the command line you are using? |
I improve this code a little bit. Please, check if it is better now. |
Cool, it looks like the nested project is not working anymore. I will try to address that today since I have repos with a nested projects |
I can start creating projects within projects if you would like me to test nested projects as well. |
Cool, thanks. I think plotgitsh is not prepared for this yet. However, I pushed a workaround here. Do you want to test? You can test like this:
|
Hey, I am going to close this. |
On my WSL2 installation, `/proc/version` prints out `Linux version 5.4.72-microsoft-standard-WSL2 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) leoheck#1 SMP Wed Oct 28 23:40:43 UTC 2020`, so i made grep case-insensitive, to be able to correctly identify my machine being a WSL machine
I am trying to install the external dependencies on a windows machine but when I go through the steps of installing kicad-diff I get the following.
After running the command
opam install plotkicadsch
`[ERROR] The compilation of plotkicadsch failed at
"C:\OCaml64\home\Stanley\.opam\4.09.1+mingw64c\bin\dune.exe
build -p plotkicadsch -j 5".
=== ERROR while compiling plotkicadsch.0.8.0 ==
===============================#
context 2.0.8 | win32/x86_64 | ocaml-variants.4.09.1+min
gw64c | pinned(file://C:/Users/Stanley/Desktop/ELEC)
path ~/.opam/4.09.1+mingw64c/.opam-switch/build/plotk
icadsch.0.8.0
command C:\OCaml64\home\Stanley.opam\4.09.1+mingw64c\bi
n\dune.exe build -p plotkicadsch -j 5
exit-code 1
env-file ~/.opam/log/plotkicadsch-21024-42bb52.env
output-file ~/.opam/log/plotkicadsch-21024-42bb52.out
output
File "plotkicadsch/plotkicadsch/src/dune", line 7, characters 6-1
4:
7 | kicadsch
^^^^^^^^
Error: Library "kicadsch" not found.
Hint: try:
dune external-lib-deps --missing -p plotkicadsch -j 5 @install`
And running the command suggested by the hint I get
$ dune external-lib-deps --missing -p plotkicadsch -j 5 @install Error: I don't know about package plotkicadsch (passed through -p)
I am not very sure how to get this running on windows
The text was updated successfully, but these errors were encountered: