freerouting icon indicating copy to clipboard operation
freerouting copied to clipboard

freerouting without graphical interface

Open simonbeylat opened this issue 5 years ago • 6 comments

First of all, thank you for taking the time to report an issue.

To make our work easier, please provide as many details as you can:

  • [ ] What version of freerouting are you using?
  • [ ] On what platform did you run it? Windows, Linux, MacOS? 32-bit or 64-bit?
  • [ ] What type of file are you working with? Can you attach the actual (DSN) file?
  • [x] Did you use any command line arguments?
  • [ ] Can you post a screenshot of the problem?
  • [ ] Can you include the latest, related log entries from the .log file?
  • [ ] Please list the detailed steps to reproduce the problem
  • [ ] What would you expect freerouting to do in this situation?
  • [ ] Is fixing this issue critical for your work?

simonbeylat avatar Dec 24 '20 10:12 simonbeylat

I want to run freerouting on a dokcer container, I only need the autorouter and i run it with commande line. is it possible to run it without using graphical interface ? I'll send it into a computer server without screen

simonbeylat avatar Dec 24 '20 10:12 simonbeylat

I too want to run auto-router in background without open the pop up of auto-routing. Is it possible to run it without using graphical interface ? Your efforts will be highly appreciated.

devinpooja avatar Aug 09 '21 09:08 devinpooja

Unfortunately we don't have the option to run it without the GUI at the moment. It would need great effort to separate the GUI and the business logic. I agree 100% that it would be a great step forward.

It would be a big contribution if someone dived into the source code and made the needed modification as a pull-request.

andrasfuchs avatar Aug 09 '21 12:08 andrasfuchs

I have removed the GUI swing and AWT code, locale logic and have simplified the logging to simply print to stdout.

My colleague has also simplified the build process with a Makefile, allowing gradle to be removed as well.

The end result is a functional command line implementation of Freerouting that can be run headless in automated workflows.

I have endeavored to minimise the required dependencies as well; the freerouting executable jar file now weighs in at around 800k.

We have done this to simplify automated, headless export and import of DSN files from the FOSS PCB editor pcb-rnd, but of course others should find it useful too.

I will follow bugfixes and improvements here and incorporate them as they arise in freerouting_cli

The CLI implementation is available on svn:

svn://svn.repo.hu/freerouting_cli/trunk

see also

http://repo.hu/projects/freerouting_cli/

Cheers,

erichVK5

erichVK5 avatar Aug 17 '21 09:08 erichVK5

Thank you so much for your efforts. It exactly is doing what I wished for.

Your efforts are great. Screenshot from 2021-08-18 12-07-31

devinpooja avatar Aug 18 '21 06:08 devinpooja

I have now merged

  1. recent multithreading enhancements and
  2. early postroute optimisation cessation with incremental improvement below a set threshold

into freerouting-cli

erichVK5 avatar Apr 01 '22 12:04 erichVK5

Hi, I have done some testing using freerouting-cli, and it is very useful, thanks! Looking at erickVK5 comments from April 2022 it seems there have been some updates in 2022. However, the files on http://repo.hu/projects/freerouting_cli/ are still from 2021. Do anybody know if the newer version available somewhere?

FJ-BoardArchitect avatar Feb 16 '23 17:02 FJ-BoardArchitect

I have not merged newer updates beyond the multilthreaded post route optimisations (which can break in some situations it seems - see other github issues for this), but hope to do so in the near future.

Was there anything specifically you wanted merged?

erichVK5 avatar Feb 21 '23 00:02 erichVK5

This issue is stale because it has been inactive for 60 days. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Oct 05 '23 12:10 github-actions[bot]