call tensor::Init occurs link error
- Dominant language
- C++
- Stars
- 14k
- Forks
- 2.6k
- Avg merge
- 5d 18h
- Merged PRs (30d)
- 6
Description
### Checklist
- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).
### Describe the issue
code is following:
open3d::core::Tensor camloc;
Eigen::Vector3f pn( 0.0, 0.0, 0.005 );
camloc.SetItem(core::Tensor::Init({ pn(0), pn(1), pn(2) }));
camloc.To(open3d::core::Device("CUDA:0"));
it occurs link error:
error LNK2019: unresolved external symbol "public: static unsigned int const * const fmt::v6::internal::basic_data::zero_or_powers_of_10_32" (?zero_or_powers_of_10_32@?$basic_data@X@internal@v6@fmt@@2QBIB),The symbol is referenced in function "public: class std::back_insert_iterator > __cdecl fmt::v6::internal::arg_formatter_base,struct fmt::v6::internal::error_handler>::operator()(int)" (??$?RH$0A@@?$arg_formatter_base@V?$buffer_range@D@internal@v6@fmt@@Uerror_handler@234@@internal@v6@fmt@@QEAA?AV?$back_insert_iterator@V?$buffer@D@internal@v6@fmt@@@std@@H@Z)
error LNK2019: unresolved external symbol "public: static unsigned __int64 const * const fmt::v6::internal::basic_data::zero_or_powers_of_10_64" (?zero_or_powers_of_10_64@?$basic_data@X@internal@v6@fmt@@2QB_KB),The symbol is referenced in function "public: class std::back_insert_iterator > __cdecl fmt::v6::internal::arg_formatter_base,struct fmt::v6::internal::error_handler>::operator()<__int64,0>(__int64)" (??$?R_J$0A@@?$arg_formatter_base@V?$buffer_range@D@internal@v6@fmt@@Uerror_handler@234@@internal@v6@fmt@@QEAA?AV?$back_insert_iterator@V?$buffer@D@internal@v6@fmt@@@std@@_J@Z)
error LNK2019: unresolved external symbol "public: static char const * const fmt::v6::internal::basic_data::digits" (?digits@?$basic_data@X@internal@v6@fmt@@2QBDB),The symbol is referenced in function "class stdext::checked_array_iterator __cdecl fmt::v6::internal::format_decimal,class >(class stdext::checked_array_iterator,unsigned int,int,class )" (??$format_decimal@DIV?$checked_array_iterator@PEAD@stdext@@V@@@internal@v6@fmt@@YA?AV?$checked_array_iterator@PEAD@stdext@@V34@IHV@@@Z)
error LNK2019: unresolved external symbol "public: static char const * const fmt::v6::internal::basic_data::hex_digits" (?hex_digits@?$basic_data@X@internal@v6@fmt@@2QBDB),The symbol is referenced in function "public: void __cdecl fmt::v6::internal::basic_writer >::pointer_writer::operator() &>(class stdext::checked_array_iterator &)const " (??$?RAEAV?$checked_array_iterator@PEAD@stdext@@@?$pointer_writer@_K@?$basic_writer@V?$buffer_range@D@internal@v6@fmt@@@internal@v6@fmt@@QEBAXAEAV?$checked_array_iterator@PEAD@stdext@@@Z)
### Steps to reproduce the bug
```python
code is following:
open3d::core::Tensor camloc;
Eigen::Vector3f pn( 0.0, 0.0, 0.005 );
camloc.SetItem(core::Tensor::Init({ pn(0), pn(1), pn(2) }));
camloc.To(open3d::core::Device("CUDA:0"));
build this code occurs link error:
error LNK2019: unresolved external symbol "public: static unsigned int const * const fmt::v6::internal::basic_data::zero_or_powers_of_10_32" (?zero_or_powers_of_10_32@?$basic_data@X@internal@v6@fmt@@2QBIB),The symbol is referenced in function "public: class std::back_insert_iterator > __cdecl fmt::v6::internal::arg_formatter_base,struct fmt::v6::internal::error_handler>::operator()(int)" (??$?RH$0A@@?$arg_formatter_base@V?$buffer_range@D@internal@v6@fmt@@Uerror_handler@234@@internal@v6@fmt@@QEAA?AV?$back_insert_iterator@V?$buffer@D@internal@v6@fmt@@@std@@H@Z)
error LNK2019: unresolved external symbol "public: static unsigned __int64 const * const fmt::v6::internal::basic_data::zero_or_powers_of_10_64" (?zero_or_powers_of_10_64@?$basic_data@X@internal@v6@fmt@@2QB_KB),The symbol is referenced in function "public: class std::back_insert_iterator > __cdecl fmt::v6::internal::arg_formatter_base,struct fmt::v6::internal::error_handler>::operator()<__int64,0>(__int64)" (??$?R_J$0A@@?$arg_formatter_base@V?$buffer_range@D@internal@v6@fmt@@Uerror_handler@234@@internal@v6@fmt@@QEAA?AV?$back_insert_iterator@V?$buffer@D@internal@v6@fmt@@@std@@_J@Z)
error LNK2019: unresolved external symbol "public: static char const * const fmt::v6::internal::basic_data::digits" (?digits@?$basic_data@X@internal@v6@fmt@@2QBDB),The symbol is referenced in function "class stdext::checked_array_iterator __cdecl fmt::v6::internal::format_decimal,class >(class stdext::checked_array_iterator,unsigned int,int,class )" (??$format_decimal@DIV?$checked_array_iterator@PEAD@stdext@@V@@@internal@v6@fmt@@YA?AV?$checked_array_iterator@PEAD@stdext@@V34@IHV@@@Z)
error LNK2019: unresolved external symbol "public: static char const * const fmt::v6::internal::basic_data::hex_digits" (?hex_digits@?$basic_data@X@internal@v6@fmt@@2QBDB),The symbol is referenced in function "public: void __cdecl fmt::v6::internal::basic_writer >::pointer_writer::operator() &>(class stdext::checked_array_iterator &)const " (??$?RAEAV?$checked_array_iterator@PEAD@stdext@@@?$pointer_writer@_K@?$basic_writer@V?$buffer_range@D@internal@v6@fmt@@@internal@v6@fmt@@QEBAXAEAV?$checked_array_iterator@PEAD@stdext@@@Z)
```
### Error message
error LNK2019: unresolved external symbol "public: static unsigned int const * const fmt::v6::internal::basic_data::zero_or_powers_of_10_32" (?zero_or_powers_of_10_32@?$basic_data@X@internal@v6@fmt@@2QBIB),The symbol is referenced in function "public: class std::back_insert_iterator > __cdecl fmt::v6::internal::arg_formatter_base,struct fmt::v6::internal::error_handler>::operator()(int)" (??$?RH$0A@@?$arg_formatter_base@V?$buffer_range@D@internal@v6@fmt@@Uerror_handler@234@@internal@v6@fmt@@QEAA?AV?$back_insert_iterator@V?$buffer@D@internal@v6@fmt@@@std@@H@Z)
error LNK2019: unresolved external symbol "public: static unsigned __int64 const * const fmt::v6::internal::basic_data::zero_or_powers_of_10_64" (?zero_or_powers_of_10_64@?$basic_data@X@internal@v6@fmt@@2QB_KB),The symbol is referenced in function "public: class std::back_insert_iterator > __cdecl fmt::v6::internal::arg_formatter_base,struct fmt::v6::internal::error_handler>::operator()<__int64,0>(__int64)" (??$?R_J$0A@@?$arg_formatter_base@V?$buffer_range@D@internal@v6@fmt@@Uerror_handler@234@@internal@v6@fmt@@QEAA?AV?$back_insert_iterator@V?$buffer@D@internal@v6@fmt@@@std@@_J@Z)
error LNK2019: unresolved external symbol "public: static char const * const fmt::v6::internal::basic_data::digits" (?digits@?$basic_data@X@internal@v6@fmt@@2QBDB),The symbol is referenced in function "class stdext::checked_array_iterator __cdecl fmt::v6::internal::format_decimal,class >(class stdext::checked_array_iterator,unsigned int,int,class )" (??$format_decimal@DIV?$checked_array_iterator@PEAD@stdext@@V@@@internal@v6@fmt@@YA?AV?$checked_array_iterator@PEAD@stdext@@V34@IHV@@@Z)
error LNK2019: unresolved external symbol "public: static char const * const fmt::v6::internal::basic_data::hex_digits" (?hex_digits@?$basic_data@X@internal@v6@fmt@@2QBDB),The symbol is referenced in function "public: void __cdecl fmt::v6::internal::basic_writer >::pointer_writer::operator() &>(class stdext::checked_array_iterator &)const " (??$?RAEAV?$checked_array_iterator@PEAD@stdext@@@?$pointer_writer@_K@?$basic_writer@V?$buffer_range@D@internal@v6@fmt@@@internal@v6@fmt@@QEBAXAEAV?$checked_array_iterator@PEAD@stdext@@@Z)
### Expected behavior
_No response_
### Open3D, Python and System information
```markdown
- Operating system:Windows 10 64-bit
- Python version: Python 3.10
- Open3D version: output from python:0.17.0
- System architecture: x86
- Is this a remote workstation?: no
- How did you install Open3D?:build from source
- Compiler version (if built from source): cmake 3.24
```
### Additional information
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.