Skip to content

Commit b293cc4

Browse files
fredroyjnbrunet
andauthored
[All] Follow sofa master branch (#108)
* Follow sofa master branch * change ci url * Some more fixes Signed-off-by: Jean-Nicolas Brunet <[email protected]> * again follow master, with missing includes Co-authored-by: Jean-Nicolas Brunet <[email protected]>
1 parent 0bb5c39 commit b293cc4

File tree

21 files changed

+52
-24
lines changed

21 files changed

+52
-24
lines changed

.github/workflows/macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Download SOFA nightly build
3131
run: |
3232
curl --output sofa.zip -L \
33-
https://ci.inria.fr/sofa-ci-dev/job/nightly-generate-binaries-v20.12/lastSuccessfulBuild/CI_SCOPE=binaries_minimal/artifact/MacOS/*zip*/MacOS.zip
33+
https://ci.inria.fr/sofa-ci-dev/job/nightly-generate-binaries/lastSuccessfulBuild/CI_SCOPE=binaries_minimal/artifact/MacOS/*zip*/MacOS.zip
3434
3535
- name: Install SOFA nightly build
3636
run: |
@@ -108,7 +108,7 @@ jobs:
108108
- name: Download SOFA nightly build
109109
run: |
110110
curl --output sofa.zip -L \
111-
https://ci.inria.fr/sofa-ci-dev/job/nightly-generate-binaries-v20.12/lastSuccessfulBuild/CI_SCOPE=binaries_minimal/artifact/MacOS/*zip*/MacOS.zip
111+
https://ci.inria.fr/sofa-ci-dev/job/nightly-generate-binaries/lastSuccessfulBuild/CI_SCOPE=binaries_minimal/artifact/MacOS/*zip*/MacOS.zip
112112
113113
- name: Install SOFA nightly build
114114
run: |

.github/workflows/ubuntu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Download SOFA nightly build
4646
run: |
4747
curl --output sofa.zip -L \
48-
https://ci.inria.fr/sofa-ci-dev/job/nightly-generate-binaries-v20.12/lastSuccessfulBuild/CI_SCOPE=binaries_minimal/artifact/Linux/*zip*/Linux.zip
48+
https://ci.inria.fr/sofa-ci-dev/job/nightly-generate-binaries/lastSuccessfulBuild/CI_SCOPE=binaries_minimal/artifact/Linux/*zip*/Linux.zip
4949
5050
- name: Install SOFA nightly build
5151
run: |
@@ -123,7 +123,7 @@ jobs:
123123
- name: Download SOFA nightly build
124124
run: |
125125
curl --output sofa.zip -L \
126-
https://ci.inria.fr/sofa-ci-dev/job/nightly-generate-binaries-v20.12/lastSuccessfulBuild/CI_SCOPE=binaries_minimal/artifact/Linux/*zip*/Linux.zip
126+
https://ci.inria.fr/sofa-ci-dev/job/nightly-generate-binaries/lastSuccessfulBuild/CI_SCOPE=binaries_minimal/artifact/Linux/*zip*/Linux.zip
127127
128128
- name: Install SOFA nightly build
129129
run: |

Plugin/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ endif(SP3_BUILD_TEST)
3636

3737
find_package(pybind11 CONFIG REQUIRED)
3838
find_package(SofaFramework REQUIRED)
39-
find_package(SofaSimulation REQUIRED)
39+
find_package(SofaSimulationGraph REQUIRED)
4040

4141
add_library(${PROJECT_NAME} SHARED ${HEADER_FILES} ${SOURCE_FILES})
4242
add_library(SofaPython3::${PROJECT_NAME} ALIAS ${PROJECT_NAME})

Plugin/PluginConfig.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
find_package(pybind11 CONFIG REQUIRED)
66
find_package(SofaFramework REQUIRED)
7-
find_package(SofaSimulation REQUIRED)
7+
find_package(SofaSimulationGraph REQUIRED)
88

99
# If we are importing this config file and the target is not yet there this is indicating that
1010
# target is an imported one. So we include it

Plugin/src/SofaPython3/PythonEnvironment.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#include <vector>
2424
#include <string>
25-
25+
#include <sofa/helper/logging/FileInfo.h>
2626

2727
/// Fixes compile errors:
2828
/// removing all slots macros is necessary if embedded in a Qt project

Plugin/src/SofaPython3/SceneLoaderPY3.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ using sofa::simulation::graph::DAGNode;
3333
#include <pybind11/embed.h>
3434
namespace py = pybind11;
3535

36-
using namespace sofa::core::objectmodel;
36+
#include <sofa/helper/system/SetDirectory.h>
3737
using sofa::helper::system::SetDirectory;
3838

39+
using namespace sofa::core::objectmodel;
40+
3941
MSG_REGISTER_CLASS(sofapython3::SceneLoaderPY3, "SofaPython3::SceneLoader")
4042

4143
PYBIND11_DECLARE_HOLDER_TYPE(Base, sofa::core::sptr<Base>, true)

bindings/BindingsConfig.cmake.in

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,14 @@ find_package(SofaDeformable REQUIRED)
1818
# Required by the bindings Sofa.Components, Sofa.Core, Sofa.Helper, Sofa.Simulation, Sofa.Types, SofaGui
1919
find_package(SofaFramework REQUIRED)
2020

21-
# Required by the bindings Sofa.Core, Sofa.Simulation, SofaRuntime
22-
find_package(SofaSimulation REQUIRED)
21+
# Required by the bindings Sofa.Simulation, SofaRuntime
22+
find_package(SofaSimulationGraph REQUIRED)
23+
24+
# Required by the bindings SofaRuntime
25+
find_package(SofaSimulationCommon REQUIRED)
2326

2427
# Required by the bindings SofaGui
28+
find_package(Sofa.GL QUIET)
2529
find_package(SofaGui REQUIRED)
2630

2731
# Required by the bindings Sofa.Core

bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_BaseObject.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
// Imports for getCategories
3030
#include <sofa/core/objectmodel/ContextObject.h>
3131
#include <sofa/core/visual/VisualModel.h>
32+
#include <sofa/core/BaseMapping.h>
3233
#include <sofa/core/BehaviorModel.h>
3334
#include <sofa/core/CollisionModel.h>
3435
#include <sofa/core/behavior/BaseMechanicalState.h>

bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_ForceField.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <sofa/core/behavior/MechanicalState.h>
2929
#include <sofa/core/behavior/ForceField.h>
3030
#include <sofa/core/MechanicalParams.h>
31+
#include <sofa/core/behavior/MultiMatrixAccessor.h>
3132

3233
#include <SofaPython3/PythonEnvironment.h>
3334
using sofapython3::PythonEnvironment;

bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_PythonScriptEvent.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <SofaPython3/Sofa/Core/Binding_PythonScriptEvent.h>
2222
#include <SofaPython3/PythonFactory.h>
2323
#include <sofa/core/objectmodel/Event.h>
24+
#include <sofa/simulation/Node.h>
2425

2526
/// Makes an alias for the pybind11 namespace to increase readability.
2627
namespace py { using namespace pybind11; }
@@ -30,7 +31,7 @@ using namespace pybind11::literals;
3031

3132
SOFA_EVENT_CPP(PythonScriptEvent)
3233

33-
PythonScriptEvent::PythonScriptEvent(sofa::simulation::Node::SPtr sender, const char* eventName, py::object userData)
34+
PythonScriptEvent::PythonScriptEvent(sofa::core::sptr<sofa::simulation::Node> sender, const char* eventName, py::object userData)
3435
: sofa::core::objectmodel::ScriptEvent(sender,eventName)
3536
, m_userData(userData){}
3637

0 commit comments

Comments
 (0)