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

problem with running on WSL #37

Closed
akcent96 opened this issue Jan 29, 2021 · 4 comments
Closed

problem with running on WSL #37

akcent96 opened this issue Jan 29, 2021 · 4 comments

Comments

@akcent96
Copy link

I'm trying to run non-linear Slic3r on WSL Ubuntu 20.04 LTS on Windows 10
I'm going straight forward with readme, and it does not work
while running build.pl everything goes forward, bu i keep getting that message every few minutes:

/usr/include/boost/predef/detail/endian_compat.h:11:161: note: #pragma message: The use of BOOST_*_ENDIAN and BOOST_BYTE_ORDER is deprecated. Please include <boost/predef/other/endian.h> and use BOOST_ENDIAN_*_BYTE instead11 | RDER is deprecated. Please include <boost/predef/other/endian.h> and use BOOST_ENDIAN_*_BYTE instead")| ^

some of tests fails, and I get summary:

Test Summary Report-------------------t/gcode.t (Wstat: 1536 Tests: 27 Failed: 6)Failed tests: 5-7, 9-10, 23Non-zero exit status: 6t/layers.t (Wstat: 1024 Tests: 9 Failed: 6)Failed tests: 3-4, 6-9Non-zero exit status: 4Parse errors: Bad plan. You planned 5 tests but ran 9.t/shells.t (Wstat: 768 Tests: 24 Failed: 3)Failed tests: 14, 16, 18Non-zero exit status: 3t/skirt_brim.t (Wstat: 256 Tests: 8 Failed: 1)Failed test: 2Non-zero exit status: 1Files=35, Tests=594, 134 wallclock secs ( 0.24 usr 0.14 sys + 135.00 cusr 2.33 csys = 137.71 CPU)Result: FAILSome tests failed. Please report the failure to the author!

same with build.pl --GUI

and when i try to run slic3r.pl i get:
Unable to init server: Could not connect: Connection refused 22:22:19: Error: Unable to initialize GTK+, is DISPLAY set properly? Failed to initialize wxWidgets at /home/akcent96/Slic3r/lib/Slic3r/GUI.pm line 7. Compilation failed in require at /home/akcent96/Slic3r/lib/Slic3r/GUI.pm line 7. BEGIN failed--compilation aborted at /home/akcent96/Slic3r/lib/Slic3r/GUI.pm line 7. Compilation failed in require at (eval 85) line 1.

tried all commands both with and without sudo, it does not help
I use VcXsrv for windows, Xming does not work either

No idea what to do next

@magic-happenz
Copy link

magic-happenz commented Feb 17, 2021

Have similar issues. The errors acutally start with:

WARNING: the following files are missing in your kit:
        src/libslic3r/Zip/ZipArchive.cpp
        src/libslic3r/Zip/ZipArchive.hpp
Please inform the author.

So here I am informing you :).

@Zip-o-mat
Copy link
Owner

Sorry I don't know why this version of slic3r does not work on WSL Ubuntu. Native Ubuntu works.

Regarding the test report: I know these tests fail, just ignore them.

I will take a look on the ZipArchive.hpp...

Zip-o-mat pushed a commit that referenced this issue Feb 19, 2021
Zip-o-mat pushed a commit that referenced this issue Feb 19, 2021
@Zip-o-mat
Copy link
Owner

Ok I just fixed the boost issue and the ZipArchive issue. Please test if this works now

@magic-happenz
Copy link

Great thanks, I actually just got it running on 18.04. I just ignored the errors and it works! Haven't tried on 20.04 but it probably works as well. Thanks for the quick reply.

Zip-o-mat pushed a commit that referenced this issue Jun 25, 2021
Zip-o-mat pushed a commit that referenced this issue Oct 14, 2021
AdelinoGP pushed a commit to AdelinoGP/Slic3r that referenced this issue Feb 22, 2024
AdelinoGP pushed a commit to AdelinoGP/Slic3r that referenced this issue Feb 26, 2024
AdelinoGP pushed a commit to AdelinoGP/Slic3r that referenced this issue Feb 26, 2024
AdelinoGP pushed a commit to AdelinoGP/Slic3r that referenced this issue Mar 7, 2024
added nonplanar layers, the definition of those and the projetion to the top most layer of these nonplanar surfaces.

Merged Point3 implementation from platsch here

added simple support of nonplanar extrusions

Added projection of the non infill extrusion paths

Modified GCode generation for nonplanar layers

Optimized Point in triangle test

Fixed bug in triangle generation for 3D display

Added contour following for freeform surfaces

Added nonplanar printable layers for free form surfaces

added additional debug output

added additional debug output

getting nonplanar projection to work

getting nonplanar projection to work

added different nonplanar surfaces to get more than one nonplanar surface in one object

removed TriangleMesh changes

added multiple nonplanar surfaces in a single object

added multiple nonplanar surfaces in a single object

changed structure of nonplanar surfaces and linked them to the actual layer. Top surfaces are back where the slope is greater than max_angle

added max height option

added config options for nonplanar slicing

fixed segfault for objects with thin extrusions

fixed segfault again

removed areas smaller than 20mm2

fixed gcode generation

added collision detection for nonplanar surfaces

removed bottom layer from nonplanar projection

fixed typo and added extrusion angle compensation

corrected movement on new objects and removed timing prints

removed collisions with size < 1.0mm²

removed debug svg output

added debug output why surfaces are unprintable

Builds correctly in 18.04 with tweak

example gcode file, meant for previews

Calculate the triangle surface using floats

Changing mark_neighbor_surfaces() to not be recursive.

merged master back into nonplanar and try to make old build system running again

added files to MANIFEST

fixed some build issues, tests currently fail

add aditional parameter for maximum printed angle

Better Collision detection

fixed issue with boost on 20.04

added config option for minimal surface area of nonplanar surfaces

Update PrintObject.cpp

disable checks when not nessesarry and added hints to disable collision checks to tooltips

Fixed issue with wrongly projected surfaces

rewritten move nonplanar_surfaces_up

removed svg output and fixed

rewritten the collision checking to get a faster and more reliable check.

switched for variable from i to k

3D support in distance_to to fix broken Douglas-Peucker algorithm in nonplanar gcode export

Fix incorrect type conversion of several ExPolygons to Polygons in projection and collision checking of nonplanar layers, leading to excessiv false collisions in some geometries

Fixed issue with the detection of the correct triangle for endpoints

Added ZipArchive correctly to the CMake Files. Don't know if this was really an issue.
See Zip-o-mat#37

Fixed issues with deprecated BOOST_*_ENDIAN
See Zip-o-mat#37 & Zip-o-mat#38

XMake boost::Placeholders::_1 visible

Fixes slic3r#4967

Do not undefine __STRICT_ANSI__

The `__STRICT_ANSI__` macro is defined by the compiler and it's undefined to undefine or redefine it.

Using `-U__STRICT_ANSI__ -std=c++11` is just silly. If you don't want strict mode, don't ask for strict mode. Certainly don't ask for strict mode and then undefined the macro that is defined by strict mode.

The correct solution is `-std=gnu++11` which doesn't define the macro in the first place.

Stop defining _GLIBCXX_USE_C99 (slic3r#4981)

This is an internal macro defined by libstdc++ to record the result of
configure checks done when GCC was built.  Defining (or undefining or
redefining) the macro yourself results in undefined behaviour.

If the system's C library doesn't expose support for C99 or 'long long'
then telling libstdc++ that it does isn't going to work. It will just
mean libstdc++ tries to use features that don't actually exist in the C
library.

In any case, systems that don't support C99 are probably not relevant to
anybody nowadays.

Fixes slic3r#4975

fix-cmake-boost-1-70+ (slic3r#4980)

Use boost/nowide/cstdlib.hpp instead of boost/nowide/cenv.hpp

Patch build to work on Boost 1.73 and older versions as well.

Changed Message to prevent messages/issues

removed merge conflict

Fixed issue with layer heights >1
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

3 participants