48 Commits

Author SHA1 Message Date
Joseph Lenox
202a90ff90 Math evaluation in gcode (#4157)
* Prototype gcode infix math, very basic.

* Adding exprtk math parser library, header only.
@ArashPartow
https://github.com/ArashPartow/exprtk@4e1315a87dcc99a1ccad21fae1def0c2d4913c0f

* Now evaluating strings with exprtk, only support no variables in input
strings.

* Moved executable code to cpp file, stubbed out xsp and let the testing begin...

* Added conditional gcode parser into export path, added tests.

* Added one more test to ensure that {if0} only removes up to newlines.

* Test failure to parse

* Add some compiler flags to compile out stuff from exprtk

* Fix debug messages to be more specific, don't use deleted stringstream = method.

* Trade expression speed for apparently around 50MB of object size.

* Removed an extra trim that was breaking existing tests.

* fix test

Fixes #3390
2017-10-20 21:40:05 -05:00
timor
81b6f9e261 Update required ParseXS and XSpp versions 2017-09-04 01:21:59 +02:00
Joseph Lenox
2bedc5c9df Link to libstdc++ statically. (#4016)
* Link to libstdc++ statically.

* use a linker flag instead.

* Update Build.PL

* Link to static paths on Travis only.

* Fix SFTP to abort of SFTP errors.

* Create sftp.sh

* always set -static-libstdc++ now in ldflags

also removed gcc 4.6 workaround

* remove buggy gcc check for 4.7, it is no longer supported

* Remove -lstdc++

Static linking is done on Travis for linux.

* Filter -lstdc++ on linux, static c++
2017-06-09 08:05:21 -05:00
Alessandro Ranellucci
5a1e8e0f65 Fix some compilation warnings 2017-05-24 13:21:13 +02:00
Alessandro Ranellucci
f24fc2c675 One more fix for BOOST_DIR 2017-04-21 15:42:36 +02:00
Alessandro Ranellucci
5fc5bf06db Smarter BOOST_DIR 2017-03-25 14:09:05 +01:00
Alessandro Ranellucci
0c4e16589b Prevent ExtUtils::CppGuess from linking to libstdc++ on OS X 2017-03-20 18:53:25 +01:00
Alessandro Ranellucci
cdf48ade25 Fix a typo in the BOOST_* environment variables and clarify the error message. Also, support GCC 4.6.x. 2017-03-16 11:10:57 +01:00
Alessandro Ranellucci
efd9b4c187 ExtUtils::CppGuess considers clang like GCC (+ two minor fixes/additions) 2017-03-06 17:09:09 +01:00
Alessandro Ranellucci
1edbf9c0a6 Couple improvements to the two Build.PL files 2017-03-06 16:33:54 +01:00
Alessandro Ranellucci
abe22fa406 Fix compilation on recent OSX versions 2017-03-05 02:42:15 +01:00
Joseph Lenox
85e4e16578 Permit boost libraries to not have the version # in their name 2017-03-04 16:38:00 -08:00
Alessandro Ranellucci
dd22a28160 C++11 compilation for OSX 10.8 2017-03-02 13:17:48 +01:00
Joseph Lenox
3c4f93cf24 Cpp11 (#3731)
* Enabled c++11 support (required for IO::AMF), extended Travis build to build with g++ 4.9
* ifdef guard in poly2tri/util to avoid redefinition warning
* cache local-lib
2017-03-02 00:46:20 -06:00
Alessandro Ranellucci
8326f75af8 Ported AMF parsing/writing to C++ (by @bubnikv) 2017-03-01 21:29:29 +01:00
Alessandro Ranellucci
103ec05774 Ported infill to XS/C++. Credits and many thanks go to @bubnikv for this work 2016-11-24 15:32:32 +01:00
Alessandro Ranellucci
893fc2343f Fixed regression in Build.PL after recent merged changes 2016-11-22 22:29:47 +01:00
bubnikv
ea77f66629 Updated xs/Build.PL to support Visual Studio compiler suite.
Updated xs/Build.PL to understand BOOST_LIBRARY_PATH and
BOOST_INCLUDE_PATH environment variables. This way one may easily
switch between various boost builds.

Some minor tweeks were done to make Slic3r compile with
Visual Studio 2013.
2016-08-21 22:39:48 -05:00
Alessandro Ranellucci
5cfaea8a7f Ported --info to C++ 2016-07-09 10:31:52 +02:00
Alessandro Ranellucci
a54edf8fbc Support static linking of the Boost libs 2016-04-11 22:14:12 +02:00
Alessandro Ranellucci
562efc1677 Typo 2015-12-18 13:49:22 +01:00
Alessandro Ranellucci
b8f0391934 Fix compilation with GCC 2015-12-18 13:40:57 +01:00
Alessandro Ranellucci
4913e90e10 Remove any Perl related code from libslic3r 2015-12-08 00:39:54 +01:00
Alessandro Ranellucci
e2b203ba8d Disable screensaver while projecting (untested on Windows) 2015-12-04 21:25:45 +01:00
Alessandro Ranellucci
39924ee89c More small fixes for compilation on Linux 2015-11-19 17:02:01 +01:00
Alessandro Ranellucci
1378562e63 Further improvements for compilation (Ubuntu) 2015-11-19 15:30:27 +01:00
Alessandro Ranellucci
21a5d6e137 Several fixes to GCodeSender, including compilation on older OS X and DTR reset 2015-11-19 13:17:52 +01:00
Alessandro Ranellucci
ca48501f91 Remove Boost from distribution and fix some more things for Windows compilation 2015-11-06 11:34:37 +01:00
Alessandro Ranellucci
e7d2be842d Improve Boost path detection 2015-11-06 11:03:45 +01:00
Alessandro Ranellucci
97bf69ba7f Fix compilation on Windows 2015-11-06 10:43:11 +01:00
Alessandro Ranellucci
2e9a0f5590 Added more search paths for Boost on Win32 2015-11-05 11:02:12 +01:00
Alessandro Ranellucci
d2172b4383 Merge branch 'master' into sender 2015-03-06 22:15:43 +01:00
Kent Fredric
df5c2a6f11 Remove redundant dep on ExtUtils::Typemap
Typemap (Singluar) version 1.00 is essentially identical to Typemaps (Plural)
 Typemap is literally a dumb subclass of TypeMaps, and so this
 dependency simply gives an extra installation requirement that does
 nothing.
2015-02-14 06:44:22 +13:00
Alessandro Ranellucci
11dd67ab34 Initial work for G-code sender and more intensive usage of Boost 2014-11-26 22:30:25 +01:00
Alessandro Ranellucci
6010297465 All std::string variables are now supposed to be UTF-8 encoded. We now embed the std::string typemaps in order to do this. #2282 2014-11-22 22:20:28 +01:00
Alessandro Ranellucci
67bf99633e Fix compilation under 5.20 (untested). #2109 2014-06-25 14:57:06 +02:00
Alessandro Ranellucci
a02a7f1a0f Apply workaround for buggy GCC 4.7.2 #1965 2014-05-10 17:03:05 +02:00
Alessandro Ranellucci
7ba08c90cf Refactoring to Model API for making it stricter and safer 2014-05-09 14:24:35 +02:00
Alessandro Ranellucci
d4e97d17d5 Use -O1 with GCC 4.7.0-4.7.2. #1965 2014-04-28 19:24:19 +02:00
Alessandro Ranellucci
6201aacf88 New coverage detection for bridges. Includes implementation of ExPolygon::get_trapezoids() 2014-04-24 13:44:39 +02:00
Kamil Kwolek
c20489ee40 fix XS build on Windows #1433 #1681 2014-02-01 11:53:45 +01:00
Alessandro Ranellucci
6e22a82e7d Conditional compilation to exclude all Perl/XS stuff from C++ code 2013-09-13 14:48:40 +02:00
Alessandro Ranellucci
5adb187dd2 More porting work 2013-09-07 21:08:53 +02:00
Alessandro Ranellucci
346c17d483 Some initial work for porting slice() 2013-09-07 14:06:09 +02:00
Alessandro Ranellucci
f8ac3aa68f Fix compilation on Windows 2013-08-26 20:56:36 +02:00
Alessandro Ranellucci
b6005327d6 Downgrade Clipper to 5.1.5 2013-08-26 15:57:54 +02:00
Alessandro Ranellucci
f62896a77a Require some recent versions 2013-06-23 20:05:20 +02:00
Alessandro Ranellucci
9d27b5e4a7 New XS framework for C and C++ code 2013-06-22 17:16:45 +02:00