mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-13 14:58:58 +08:00
bugfix macos10 build
using 10.13 as min sdk
This commit is contained in:
parent
15a65af75d
commit
2c287a1186
4
.github/workflows/ccpp_mac.yml
vendored
4
.github/workflows/ccpp_mac.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
||||
run: mkdir deps/build
|
||||
- name: cmake deps
|
||||
working-directory: ./deps/build
|
||||
run: cmake .. -DCMAKE_OSX_DEPLOYMENT_TARGET="10.14"
|
||||
run: cmake .. -DCMAKE_OSX_DEPLOYMENT_TARGET="10.13"
|
||||
- name: make deps
|
||||
working-directory: ./deps/build
|
||||
run: make
|
||||
@ -29,7 +29,7 @@ jobs:
|
||||
run: mkdir build
|
||||
- name: cmake
|
||||
working-directory: ./build
|
||||
run: cmake .. -DCMAKE_PREFIX_PATH="$PWD/../deps/build/destdir/usr/local" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.14" -DSLIC3R_STATIC=1
|
||||
run: cmake .. -DCMAKE_PREFIX_PATH="$PWD/../deps/build/destdir/usr/local" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.13" -DSLIC3R_STATIC=1
|
||||
- name: make slic3r
|
||||
working-directory: ./build
|
||||
run: make slic3r
|
||||
|
@ -23,7 +23,10 @@
|
||||
#include <wx/settings.h>
|
||||
#include <wx/filedlg.h>
|
||||
|
||||
#include <boost/algorithm/string/split.hpp>
|
||||
#include <boost/algorithm/string/predicate.hpp>
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include "wxExtensions.hpp"
|
||||
#include <wx/wupdlock.h>
|
||||
|
||||
@ -1035,8 +1038,8 @@ bool Tab::create_pages(std::string setting_type_name)
|
||||
{
|
||||
std::cout << "create settings " << setting_type_name << "\n";
|
||||
//search for the file
|
||||
const auto ui_layout_file = (boost::filesystem::path(resources_dir()) / "ui_layout" / setting_type_name).make_preferred();
|
||||
if (!boost::filesystem::exists(ui_layout_file)) return false;
|
||||
const boost::filesystem::path ui_layout_file = (boost::filesystem::path(resources_dir()) / "ui_layout" / setting_type_name).make_preferred();
|
||||
if (! boost::filesystem::exists(ui_layout_file)) return false;
|
||||
|
||||
Slic3r::GUI::PageShp current_page;
|
||||
ConfigOptionsGroupShp current_group;
|
||||
|
Loading…
x
Reference in New Issue
Block a user