mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 01:37:53 -06:00
Attempt to fix build on OsX
This commit is contained in:
parent
27b9f85607
commit
277b340481
5 changed files with 4 additions and 11 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
#if ENABLE_GCODE_VIEWER
|
||||||
|
#include "libslic3r/libslic3r.h"
|
||||||
|
#endif // ENABLE_GCODE_VIEWER
|
||||||
#include "wxExtensions.hpp"
|
#include "wxExtensions.hpp"
|
||||||
#if ENABLE_GCODE_VIEWER
|
#if ENABLE_GCODE_VIEWER
|
||||||
#include "libslic3r/GCode.hpp"
|
#include "libslic3r/GCode.hpp"
|
||||||
|
@ -1950,7 +1953,7 @@ std::string TickCodeInfo::get_color_for_tick(TickCode tick, const std::string& c
|
||||||
if (mode == t_mode::SingleExtruder && code == ColorChangeCode && m_use_default_colors)
|
if (mode == t_mode::SingleExtruder && code == ColorChangeCode && m_use_default_colors)
|
||||||
{
|
{
|
||||||
#if ENABLE_GCODE_VIEWER
|
#if ENABLE_GCODE_VIEWER
|
||||||
const std::vector<std::string>& colors = Slic3r::ColorPrintColors::get();
|
const std::vector<std::string>& colors = ColorPrintColors::get();
|
||||||
#else
|
#else
|
||||||
const std::vector<std::string>& colors = GCodePreviewData::ColorPrintColors();
|
const std::vector<std::string>& colors = GCodePreviewData::ColorPrintColors();
|
||||||
#endif // ENABLE_GCODE_VIEWER
|
#endif // ENABLE_GCODE_VIEWER
|
||||||
|
|
|
@ -15,9 +15,7 @@ REGISTER_CLASS(Filler, "Filler");
|
||||||
REGISTER_CLASS(Flow, "Flow");
|
REGISTER_CLASS(Flow, "Flow");
|
||||||
REGISTER_CLASS(CoolingBuffer, "GCode::CoolingBuffer");
|
REGISTER_CLASS(CoolingBuffer, "GCode::CoolingBuffer");
|
||||||
REGISTER_CLASS(GCode, "GCode");
|
REGISTER_CLASS(GCode, "GCode");
|
||||||
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
||||||
//REGISTER_CLASS(GCodePreviewData, "GCode::PreviewData");
|
//REGISTER_CLASS(GCodePreviewData, "GCode::PreviewData");
|
||||||
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
||||||
// REGISTER_CLASS(GCodeSender, "GCode::Sender");
|
// REGISTER_CLASS(GCodeSender, "GCode::Sender");
|
||||||
REGISTER_CLASS(Layer, "Layer");
|
REGISTER_CLASS(Layer, "Layer");
|
||||||
REGISTER_CLASS(SupportLayer, "Layer::Support");
|
REGISTER_CLASS(SupportLayer, "Layer::Support");
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
croak("%s\n", e.what());
|
croak("%s\n", e.what());
|
||||||
}
|
}
|
||||||
%};
|
%};
|
||||||
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
||||||
// void do_export_w_preview(Print *print, const char *path, GCodePreviewData *preview_data)
|
// void do_export_w_preview(Print *print, const char *path, GCodePreviewData *preview_data)
|
||||||
// %code%{
|
// %code%{
|
||||||
// try {
|
// try {
|
||||||
|
@ -35,7 +34,6 @@
|
||||||
// croak("%s\n", e.what());
|
// croak("%s\n", e.what());
|
||||||
// }
|
// }
|
||||||
// %};
|
// %};
|
||||||
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
||||||
|
|
||||||
Ref<Vec2d> origin()
|
Ref<Vec2d> origin()
|
||||||
%code{% RETVAL = &(THIS->origin()); %};
|
%code{% RETVAL = &(THIS->origin()); %};
|
||||||
|
@ -62,7 +60,6 @@
|
||||||
%code{% RETVAL = const_cast<StaticPrintConfig*>(static_cast<const StaticPrintConfig*>(static_cast<const PrintObjectConfig*>(&THIS->config()))); %};
|
%code{% RETVAL = const_cast<StaticPrintConfig*>(static_cast<const StaticPrintConfig*>(static_cast<const PrintObjectConfig*>(&THIS->config()))); %};
|
||||||
};
|
};
|
||||||
|
|
||||||
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
||||||
//%name{Slic3r::GCode::PreviewData} class GCodePreviewData {
|
//%name{Slic3r::GCode::PreviewData} class GCodePreviewData {
|
||||||
// GCodePreviewData();
|
// GCodePreviewData();
|
||||||
// ~GCodePreviewData();
|
// ~GCodePreviewData();
|
||||||
|
@ -86,4 +83,3 @@
|
||||||
// %code%{ THIS->shell.is_visible = visible; %};
|
// %code%{ THIS->shell.is_visible = visible; %};
|
||||||
// void set_extrusion_paths_colors(std::vector<std::string> colors);
|
// void set_extrusion_paths_colors(std::vector<std::string> colors);
|
||||||
//};
|
//};
|
||||||
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
||||||
|
|
|
@ -191,11 +191,9 @@ GCode* O_OBJECT_SLIC3R
|
||||||
Ref<GCode> O_OBJECT_SLIC3R_T
|
Ref<GCode> O_OBJECT_SLIC3R_T
|
||||||
Clone<GCode> O_OBJECT_SLIC3R_T
|
Clone<GCode> O_OBJECT_SLIC3R_T
|
||||||
|
|
||||||
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
||||||
//GCodePreviewData* O_OBJECT_SLIC3R
|
//GCodePreviewData* O_OBJECT_SLIC3R
|
||||||
//Ref<GCodePreviewData> O_OBJECT_SLIC3R_T
|
//Ref<GCodePreviewData> O_OBJECT_SLIC3R_T
|
||||||
//Clone<GCodePreviewData> O_OBJECT_SLIC3R_T
|
//Clone<GCodePreviewData> O_OBJECT_SLIC3R_T
|
||||||
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
||||||
|
|
||||||
MotionPlanner* O_OBJECT_SLIC3R
|
MotionPlanner* O_OBJECT_SLIC3R
|
||||||
Ref<MotionPlanner> O_OBJECT_SLIC3R_T
|
Ref<MotionPlanner> O_OBJECT_SLIC3R_T
|
||||||
|
|
|
@ -155,11 +155,9 @@
|
||||||
%typemap{Ref<GCode>}{simple};
|
%typemap{Ref<GCode>}{simple};
|
||||||
%typemap{Clone<GCode>}{simple};
|
%typemap{Clone<GCode>}{simple};
|
||||||
|
|
||||||
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
||||||
//%typemap{GCodePreviewData*};
|
//%typemap{GCodePreviewData*};
|
||||||
//%typemap{Ref<GCodePreviewData>}{simple};
|
//%typemap{Ref<GCodePreviewData>}{simple};
|
||||||
//%typemap{Clone<GCodePreviewData>}{simple};
|
//%typemap{Clone<GCodePreviewData>}{simple};
|
||||||
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
||||||
|
|
||||||
%typemap{Points};
|
%typemap{Points};
|
||||||
%typemap{Pointfs};
|
%typemap{Pointfs};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue