slic3r / Slic3r

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

error while get building slic3r.sln #5124

Open danialhedaiat opened 2 years ago

danialhedaiat commented 2 years ago

Describe the bug Hi , I got error while I tried to get build from slic3r.sln in visual studio 2017

this is my error log

1>C:\Slic3r\xs\src\libslic3r\GCodeSender.cpp(532): error C2039: 'serial_port_service': is not a member of 'boost::asio'
1>C:\dev\boost_1_67_0\boost/asio/impl/write_at.hpp(36): note: see declaration of 'boost::asio'
1>C:\Slic3r\xs\src\libslic3r\GCodeSender.cpp(532): error C3083: 'serial_port_service': the symbol to the left of a '::' must be a type
1>C:\Slic3r\xs\src\libslic3r\GCodeSender.cpp(532): error C2039: 'native_handle_type': is not a member of 'boost::asio'
1>C:\dev\boost_1_67_0\boost/asio/impl/write_at.hpp(36): note: see declaration of 'boost::asio'
1>C:\Slic3r\xs\src\libslic3r\GCodeSender.cpp(532): error C2065: 'native_handle_type': undeclared identifier
1>C:\Slic3r\xs\src\libslic3r\GCodeSender.cpp(532): error C2146: syntax error: missing ';' before identifier 'handle'
1>C:\Slic3r\xs\src\libslic3r\GCodeSender.cpp(532): error C2065: 'handle': undeclared identifier
1>C:\Slic3r\xs\src\libslic3r\GCodeSender.cpp(534): error C2065: 'handle': undeclared identifier
1>C:\Slic3r\xs\src\libslic3r\GCodeSender.cpp(536): error C2065: 'handle': undeclared identifier
1>Done building project "libslic3r.vcxproj" -- FAILED.
2>------ Build started: Project: slic3r, Configuration: Debug x64 ------
2>cl : Command line warning D9025: overriding '/W3' with '/w'
2>cl : Command line warning D9002: ignoring unknown option '-ftemplate-backtrace-limit=0'
2>slic3r.cpp
2>C:\dev\boost_1_67_0\boost/asio/detail/socket_types.hpp(24): fatal error C1189: #error:  WinSock.h has already been included
2>Done building project "slic3r.vcxproj" -- FAILED.
3>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug x64 ------
3>Project not selected to build for this solution configuration 
========== Build: 0 succeeded, 2 failed, 10 up-to-date, 1 skipped ==========

I will be appreciated , for any help

pinojojo commented 2 years ago

I have the same problem, when I use boost 1.63, there is no longer these asio errors, but there will be other problems, trying to compile slic3r with VS is really difficult, all kinds of inexplicable errors, when you use a method to solve some errors, and then you have to use another method to solve the newly emerged problems