Freerouting daemon & progress update#313
Conversation
|
For now, We must update the log system to provide more information, and If we can convert .ses to EasyEDA's API format, we can compatible with it. (See #311) (For now, I can't, but maybe I can develop a electron plugin for EasyEDA, and it also can make the same effect) |
|
This is great work, thank you @L1uTongweiNewAccount! Could you include some batch nstructions how to compile the .cpp file? I can see the Makefile, but what tools I need to install for it to work? It would be great if I could build and test it locally. |
|
Just You may need |
|
I could make the C++ compilation work on Ubuntu 👍 Added a README to make it easier for others to use these scripts. Regarding the bugs:
|
|
I added the '-ll' command line argument for the ability to change the file log level. |
|
@andrasfuchs I am very sorry about I did not say clearly that how to use it. I will write a better README and optimize the new freeroutingp with new log level (I will force it in freeroutingd) Now freeroutingd just a launcher. |
|
@andrasfuchs Anyway, It's not enough good for this PR. I will improve it quickly, |
|
Great, and no worries, take your time. Thank you again for your contribution! |
|
@andrasfuchs I built the latest version and use the command line But no change shown. If there is ever no DEBUG message? Or this is a bug? If you can, please provide useable pre-build version for me. |
|
You must use the snapshot version from here: https://github.com/freerouting/freerouting/releases/tag/SNAPSHOT |
Thanks very much! |
|
@andrasfuchs Please run I am sure I have no wrong with my build, also no response from SNAPSHOT version. Here is the output: |
|
I run the following and got debug messages as well: |
|
There might be an issue with the |
|
@andrasfuchs The latest news is I found there is a bug that: I can found debug message in logs/ folder I cannout found debug message in stderr/stdout |
|
@andrasfuchs Maybe I can take over the connection between freerouting and log file. But the easier method is fix the bug and we can get them in stdout |
|
Anyway, I am seeing the log file and believe I am seeing stdout. You may add a option to disable the file log out. |
|
what is |
|
And there is also a problem: You may output progress in INFO information. I cannot infer any progress in DEBUG information. e.g. (Mind |
|
All right, I will move this issue to a new issue. |
This PR will upload a folder named
scriptsto save all scripts.Updated:
freeroutingd(Freerouting Daemon) to automatically make a fake X11 desktop to run headless freerouting.freeroutingp(Freerouting Progress) translate the log of freerouting tostderrstream by pipe.tests/FastTest.dsnSet environment variable
JAVA, you can set the jre what freerouting uses.Set environment variable
ARG_GUIcan enable GUI (for OS like Windows)Now we only can write
{"status": "startRoute"},{"status": "routeProgress"},{"status": "routeResult"},{"status": "startOptimize"}and{"status": "optimizeResult"}.Bugs:
{"status": "routeProgress"}doesn't work in my computer. Because no messageSaving xxx...sent. Please update log system to output real information in routing, like pass number, etc.like: