slic3r / Slic3r

Open Source toolpath generator for 3D printers
https://slic3r.org/
GNU Affero General Public License v3.0
3.33k stars 1.3k forks source link

MacOS command line not taking all options #4977

Open jim-sokoloff opened 4 years ago

jim-sokoloff commented 4 years ago

I'm trying to automate slic3r via the command line on MacOS Catalina.

Describe the bug Not all command-line options seem to be respected. If I run: shell% /Applications/Slic3r.App/Contents/MacOS/Slic3r --gui --rotate 90 foo.stl

the GUI opens, but the model is not rotated.

To Reproduce Steps to reproduce the behavior:

  1. Open a command shell
  2. Run /Applications/Slic3r.App/Contents/MacOS/Slic3r --gui --rotate 90 foo.stl
  3. See that foo.stl is opened, but not rotated
  4. If you spell the --rotate option wrong, it is noticed and the --help is printed

Possibly related; possibly not: When I instead try to run the Perl program: /Applications/Slic3r.App/Contents/MacOS/slic3r.pl --gui --rotate 90 foo.stl

I initially got: Can't locate local/lib.pm in @INC (you may need to install the local::lib module) (@INC contains: /Applications/Slic3r.app/Contents/MacOS/lib /usr/local/Cellar/perl/5.30.3/lib/perl5/site_perl/5.30.3/darwin-thread-multi-2level /usr/local/Cellar/perl/5.30.3/lib/perl5/site_perl/5.30.3 /usr/local/Cellar/perl/5.30.3/lib/perl5/5.30.3/darwin-thread-multi-2level /usr/local/Cellar/perl/5.30.3/lib/perl5/5.30.3 /usr/local/lib/perl5/site_perl/5.30.3/darwin-thread-multi-2level /usr/local/lib/perl5/site_perl/5.30.3) at ./slic3r.pl line 9. BEGIN failed--compilation aborted at ./slic3r.pl line 9.

So, I went to CPAN and installed App:cpanminus and local::lib and now get: ListUtil.c: loadable library and perl binaries are mismatched (got handshake key 0xd880080, needed 0xc400080)

(I do have a lib.pm file at: /Applications/Slic3r.app/Contents/MacOS/local-lib/lib/perl5/local/lib.pm if that helps).

3D Model and Slic3r Configuration Export N/A - happens on any stl model, any out-of-the-box config in v.1.3.0 and v.1.3.1-dev

Expected behavior I expected the gui to load, with the model rotated 90 degrees. (Note that --duplicate-grid and many other options also fail to work, yet are parsed for correctness.)

Desktop (please complete the following information):

Additional context I don't know whether to chase this using the Slic3r executable (which runs, but doesn't process all the args) or the slic3r.pl file (which doesn't even run), so I'm a little bit at a loss as to how to best proceed.

lordofhyphens commented 4 years ago

You should be using the Slic3r executable (IIRC it's a shell script on MacOS); if you wanted to call the script directly you need to provide all of the parameters.

I don't believe the command line arguments for plating/rotation are used at all with the GUI (that's why we have a GUI).