You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then there are some warnings related to deprecations:
warning: slvs@0.6.0: In file included from /tmp/rust_slvs/solvespace/src/util.cpp:7:
warning: slvs@0.6.0: /tmp/rust_slvs/solvespace/src/solvespace.h:182:28: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
warning: slvs@0.6.0: 182 | class utf8_iterator : std::iterator<std::forward_iterator_tag, char32_t> {
warning: slvs@0.6.0: | ^~~~~~~~
warning: slvs@0.6.0: In file included from /usr/include/c++/14/bits/stl_algobase.h:65,
warning: slvs@0.6.0: from /usr/include/c++/14/bits/hashtable_policy.h:36,
warning: slvs@0.6.0: from /usr/include/c++/14/bits/hashtable.h:35,
warning: slvs@0.6.0: from /usr/include/c++/14/bits/unordered_map.h:33,
warning: slvs@0.6.0: from /usr/include/c++/14/unordered_map:41,
warning: slvs@0.6.0: from /usr/include/c++/14/functional:63,
warning: slvs@0.6.0: from /tmp/rust_slvs/solvespace/src/resource.h:10,
warning: slvs@0.6.0: from /tmp/rust_slvs/solvespace/src/solvespace.h:10:
warning: slvs@0.6.0: /usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here
warning: slvs@0.6.0: 127 | struct _GLIBCXX17_DEPRECATED iterator
warning: slvs@0.6.0: | ^~~~~~~~
warning: slvs@0.6.0: In file included from /tmp/rust_slvs/solvespace/src/entity.cpp:8:
warning: slvs@0.6.0: /tmp/rust_slvs/solvespace/src/solvespace.h:182:28: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
warning: slvs@0.6.0: 182 | class utf8_iterator : std::iterator<std::forward_iterator_tag, char32_t> {
warning: slvs@0.6.0: | ^~~~~~~~
warning: slvs@0.6.0: In file included from /usr/include/c++/14/bits/stl_algobase.h:65,
warning: slvs@0.6.0: from /usr/include/c++/14/bits/hashtable_policy.h:36,
warning: slvs@0.6.0: from /usr/include/c++/14/bits/hashtable.h:35,
warning: slvs@0.6.0: from /usr/include/c++/14/bits/unordered_map.h:33,
warning: slvs@0.6.0: from /usr/include/c++/14/unordered_map:41,
warning: slvs@0.6.0: from /usr/include/c++/14/functional:63,
warning: slvs@0.6.0: from /tmp/rust_slvs/solvespace/src/resource.h:10,
warning: slvs@0.6.0: from /tmp/rust_slvs/solvespace/src/solvespace.h:10:
warning: slvs@0.6.0: /usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here
warning: slvs@0.6.0: 127 | struct _GLIBCXX17_DEPRECATED iterator
warning: slvs@0.6.0: | ^~~~~~~~
...
but then fails with many errors like:
error[E0432]: unresolved imports `crate::bindings::Slvs_hEntity`, `crate::bindings::Slvs_hGroup`
--> src/constraint/angle.rs:5:16
|
5 | bindings::{Slvs_hEntity, Slvs_hGroup, SLVS_C_ANGLE},
| ^^^^^^^^^^^^ ^^^^^^^^^^^ no `Slvs_hGroup` in `bindings`
| |
| no `Slvs_hEntity` in `bindings`
error[E0432]: unresolved imports `crate::bindings::Slvs_hEntity`, `crate::bindings::Slvs_hGroup`
--> src/constraint/arc_arc_difference.rs:5:16
|
5 | bindings::{Slvs_hEntity, Slvs_hGroup, SLVS_C_ARC_ARC_DIFFERENCE},
| ^^^^^^^^^^^^ ^^^^^^^^^^^ no `Slvs_hGroup` in `bindings`
| |
| no `Slvs_hEntity` in `bindings`
error[E0432]: unresolved imports `crate::bindings::Slvs_hEntity`, `crate::bindings::Slvs_hGroup`
--> src/constraint/arc_arc_len_ratio.rs:5:16
|
5 | bindings::{Slvs_hEntity, Slvs_hGroup, SLVS_C_ARC_ARC_LEN_RATIO},
| ^^^^^^^^^^^^ ^^^^^^^^^^^ no `Slvs_hGroup` in `bindings`
| |
| no `Slvs_hEntity` in `bindings`
...
It would appear that bindgen is not correctly generating all the definition required from solvespace.h. It only includes the constant values:
When I build with the following:
cargo initially proceeds as expected:
then there are some warnings related to deprecations:
but then fails with many errors like:
It would appear that bindgen is not correctly generating all the definition required from
solvespace.h
. It only includes the constant values:Any suggestions?
The text was updated successfully, but these errors were encountered: