Skip to content
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

Slic3r not opening when executing stl file #3803

Closed
diegoolavarria opened this issue Mar 24, 2017 · 13 comments
Closed

Slic3r not opening when executing stl file #3803

diegoolavarria opened this issue Mar 24, 2017 · 13 comments

Comments

@diegoolavarria
Copy link

Version

Prusa Version

Operating system type + version

Windows 8.1

Behavior

When I asociated .stl files into executing Slic3r, is expected to open Slicer with the .stl file already loaded, but it creates a .gcode output file without opening the software. Is it a common problem?

@xoan
Copy link
Member

xoan commented Mar 24, 2017

This issue tracker is for upstream Slic3r version. You must report it in the Prusa's fork: https://github.com/prusa3d/Slic3r

@lordofhyphens
Copy link
Member

Closing. If you can reproduce with current build from http://dl.slic3r.org/dev I will reopen.

This is, however, probably normal behavior. If we don't do that then programs like repetierhost will break (and all of the command line interface).

@lordofhyphens
Copy link
Member

lordofhyphens commented Mar 24, 2017

As best I remember, the prusa3d fork uses 2 shell execs, one with a command line window and one without. While we could adjust shell.cpp to build two copies one that forces --gui and one that doesn't (slic3r-gui.exe and slic3r.exe), I'm sure someone else would get confused.

Reclosing until @diegoolavarria provides a test case with upstream slic3r.

@diegoolavarria
Copy link
Author

Ok I created an executable of the source code provided here, and tested by executing the .stl file into the slic3r.exe. It opened a command prompt window (which it happens when you execute a .exe created with perl), showing the process of creating a .gcode file.

cmd

The final result is a .gcode file with the presets.

@lordofhyphens lordofhyphens reopened this Mar 27, 2017
@alranel
Copy link
Member

alranel commented Mar 27, 2017

How did you create the executable?

@diegoolavarria
Copy link
Author

pp -x -o slic3r.exe slic3r.pl

@alranel
Copy link
Member

alranel commented Mar 27, 2017

Then it's normal.
See the contents of the package/win directory for how to properly package Slic3r. Otherwise just get a fresh prebuilt one at http://dl.slic3r.org/dev

@alranel alranel closed this as completed Mar 27, 2017
@diegoolavarria
Copy link
Author

Yes, I've tried with different versions and releases, so I also figured out it's a normal setting. Although, I'm trying to configure the code so when I double click a .stl file, it opens Slic3r showing the model instead of automatically create a .gcode file.

@lordofhyphens
Copy link
Member

lordofhyphens commented Mar 27, 2017

@diegoolavarria I have a modified version of the exes being produced for upstream, it's not quite done yet. There will be a slic3r.exe and slic3r-console.exe. slic3r.exe, when I'm done, should always load the GUI.

@lordofhyphens lordofhyphens reopened this Mar 27, 2017
@diegoolavarria
Copy link
Author

@lordofhyphens slic3r.exe by itself always opens the GUI. The problem is when executing a .stl file asociated with slic3r.exe

@xoan
Copy link
Member

xoan commented Mar 27, 2017

Don't know if it has something to do, but in GNU/Linux, --gui option should be passed to slic3r.pl when a file.stl is provided in order to launch it instead of process it in the command line.

% slic3r file.stl       # this process file.stl in the command line
% slic3r --gui file.stl # this opens slic3r and load file.stl

IMO, this should be the intended behavior.

@lordofhyphens
Copy link
Member

lordofhyphens commented Mar 27, 2017 via email

@lordofhyphens
Copy link
Member

lordofhyphens commented Mar 27, 2017 via email

lordofhyphens added a commit that referenced this issue Mar 28, 2017
force --gui for shell during compilation if -DFORCE_GUI is set for compile wrapper. Fixes #3803
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants