Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jason Chemin
curves
Commits
4c1f05e1
Commit
4c1f05e1
authored
Aug 07, 2019
by
JasonChmn
Committed by
Pierre Fernbach
Sep 03, 2019
Browse files
Problem binding in python functions using boost::serialization => test python fail
parent
d5170eeb
Changes
2
Hide whitespace changes
Inline
Side-by-side
python/CMakeLists.txt
View file @
4c1f05e1
...
...
@@ -8,6 +8,9 @@ ADD_LIBRARY(${PY_NAME} SHARED ${${PY_NAME}_BINDINGS_SOURCES})
SET_TARGET_PROPERTIES
(
${
PY_NAME
}
PROPERTIES PREFIX
""
)
PKG_CONFIG_USE_DEPENDENCY
(
${
PY_NAME
}
eigenpy
)
TARGET_LINK_LIBRARIES
(
${
PY_NAME
}
${
Boost_SERIALIZATION_LIBRARIES
}
)
TARGET_LINK_BOOST_PYTHON
(
${
PY_NAME
}
)
IF
(
APPLE
)
# We need to change the extension for python bindings
SET_TARGET_PROPERTIES
(
${
PY_NAME
}
PROPERTIES SUFFIX
".so"
)
...
...
python/curves_python.cpp
View file @
4c1f05e1
...
...
@@ -351,7 +351,7 @@ BOOST_PYTHON_MODULE(curves)
.
def
(
"max"
,
&
polynomial_t
::
max
)
.
def
(
"__call__"
,
&
polynomial_t
::
operator
())
.
def
(
"derivate"
,
&
polynomial_t
::
derivate
)
//
.def(
S
erializ
ableVisitor<polynomial_t>()
)
.
def
(
"s
erializ
e"
,
&
polynomial_t
::
saveAsText
)
;
/** END polynomial function**/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment