ptersburg_34
Uzman
- Katılım
- 12 Ekim 2024
- Mesajlar
- 33
- Beğeniler
- 8
Linux CachyOS kullanıyorum. PC'de TBS6903 Tv kartı var, Neumodvb kurmaya çalışıyorum hata veriyor. Bunu nasıl düzeltebilirim?
Hatanın olduğu yazılım bu.
PYBIND11_NAMESPACE_END(detail)
// pytype -> C++ type
template <typename T, detail::enable_if_t<!detail::is_pyobject<T>::value, int> = 0>
T cast(const handle &handle) {
using namespace detail;
static_assert(!cast_is_temporary_value_reference<T>::value,
"Unable to cast type to reference: value is local to type caster");
return cast_op<T>(load_type<T>(handle));
[ 48%] Building CXX object src/neumodb/schema/CMakeFiles/pyschemadb.dir/schemadb_pybind.cc.o
[ 48%] Building CXX object src/neumodb/schema/CMakeFiles/pyschemadb.dir/schema_pybind.cc.o
In file included from /home/star/neumodvb/build/src/neumodb/schema/schema_pybind.cc:21:
In file included from /home/star/neumodvb/pybind11/include/pybind11/operators.h:12:
In file included from /home/star/neumodvb/pybind11/include/pybind11/pybind11.h:13:
In file included from /home/star/neumodvb/pybind11/include/pybind11/detail/class.h:12:
In file included from /home/star/neumodvb/pybind11/include/pybind11/detail/../attr.h:14:
/home/star/neumodvb/pybind11/include/pybind11/detail/../cast.h:1038:19: error: static assertion failed due to requirement '!integral_constant<bool, true>::value': Unable to cast type to reference: value is local to type caster
1038 | static_assert(!cast_is_temporary_value_reference<T>::value,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/star/neumodvb/pybind11/include/pybind11/detail/../cast.h:1070:22: note: in instantiation of function template specialization 'pybind11::cast<unsigned char &, 0>' requested here
1070 | return pybind11::cast<T>(*this);
| ^
/home/star/neumodvb/build/src/neumodb/schema/schema_pybind.cc:484:31: note: in instantiation of function template specialization 'pybind11::handle::cast<unsigned char &>' requested here
484 | auto pv = p.cast<uint8_t &>();
| ^
1 error generated.
make[2]: *** [src/neumodb/schema/CMakeFiles/pyschemadb.dir/build.make:140: src/neumodb/schema/CMakeFiles/pyschemadb.dir/schema_pybind.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1759: src/neumodb/schema/CMakeFiles/pyschemadb.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Dosya bu
Hani yardımcı oluyarlardı.
Kod:
[ 48%] Building CXX object src/neumodb/schema/CMakeFiles/pyschemadb.dir/schemadb_pybind.cc.o
Hatanın olduğu yazılım bu.
PYBIND11_NAMESPACE_END(detail)
// pytype -> C++ type
template <typename T, detail::enable_if_t<!detail::is_pyobject<T>::value, int> = 0>
T cast(const handle &handle) {
using namespace detail;
static_assert(!cast_is_temporary_value_reference<T>::value,
"Unable to cast type to reference: value is local to type caster");
return cast_op<T>(load_type<T>(handle));
[ 48%] Building CXX object src/neumodb/schema/CMakeFiles/pyschemadb.dir/schemadb_pybind.cc.o
[ 48%] Building CXX object src/neumodb/schema/CMakeFiles/pyschemadb.dir/schema_pybind.cc.o
In file included from /home/star/neumodvb/build/src/neumodb/schema/schema_pybind.cc:21:
In file included from /home/star/neumodvb/pybind11/include/pybind11/operators.h:12:
In file included from /home/star/neumodvb/pybind11/include/pybind11/pybind11.h:13:
In file included from /home/star/neumodvb/pybind11/include/pybind11/detail/class.h:12:
In file included from /home/star/neumodvb/pybind11/include/pybind11/detail/../attr.h:14:
/home/star/neumodvb/pybind11/include/pybind11/detail/../cast.h:1038:19: error: static assertion failed due to requirement '!integral_constant<bool, true>::value': Unable to cast type to reference: value is local to type caster
1038 | static_assert(!cast_is_temporary_value_reference<T>::value,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/star/neumodvb/pybind11/include/pybind11/detail/../cast.h:1070:22: note: in instantiation of function template specialization 'pybind11::cast<unsigned char &, 0>' requested here
1070 | return pybind11::cast<T>(*this);
| ^
/home/star/neumodvb/build/src/neumodb/schema/schema_pybind.cc:484:31: note: in instantiation of function template specialization 'pybind11::handle::cast<unsigned char &>' requested here
484 | auto pv = p.cast<uint8_t &>();
| ^
1 error generated.
make[2]: *** [src/neumodb/schema/CMakeFiles/pyschemadb.dir/build.make:140: src/neumodb/schema/CMakeFiles/pyschemadb.dir/schema_pybind.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1759: src/neumodb/schema/CMakeFiles/pyschemadb.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Dosya bu
Hani yardımcı oluyarlardı.
Linux CachyOS kullanıyorum. PC'de TBS6903 Tv kartı var, Neumodvb kurmaya çalışıyorum hata veriyor. Bunu nasıl düzeltebilirim?
Kod:[ 48%] Building CXX object src/neumodb/schema/CMakeFiles/pyschemadb.dir/schemadb_pybind.cc.o
Hatanın olduğu yazılım bu.
PYBIND11_NAMESPACE_END(detail)
// pytype -> C++ type
template <typename T, detail::enable_if_t<!detail::is_pyobject<T>::value, int> = 0>
T cast(const handle &handle) {
using namespace detail;
static_assert(!cast_is_temporary_value_reference<T>::value,
"Unable to cast type to reference: value is local to type caster");
return cast_op<T>(load_type<T>(handle));
[ 48%] Building CXX object src/neumodb/schema/CMakeFiles/pyschemadb.dir/schemadb_pybind.cc.o
[ 48%] Building CXX object src/neumodb/schema/CMakeFiles/pyschemadb.dir/schema_pybind.cc.o
In file included from /home/star/neumodvb/build/src/neumodb/schema/schema_pybind.cc:21:
In file included from /home/star/neumodvb/pybind11/include/pybind11/operators.h:12:
In file included from /home/star/neumodvb/pybind11/include/pybind11/pybind11.h:13:
In file included from /home/star/neumodvb/pybind11/include/pybind11/detail/class.h:12:
In file included from /home/star/neumodvb/pybind11/include/pybind11/detail/../attr.h:14:
/home/star/neumodvb/pybind11/include/pybind11/detail/../cast.h:1038:19: error: static assertion failed due to requirement '!integral_constant<bool, true>::value': Unable to cast type to reference: value is local to type caster
1038 | static_assert(!cast_is_temporary_value_reference<T>::value,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/star/neumodvb/pybind11/include/pybind11/detail/../cast.h:1070:22: note: in instantiation of function template specialization 'pybind11::cast<unsigned char &, 0>' requested here
1070 | return pybind11::cast<T>(*this);
| ^
/home/star/neumodvb/build/src/neumodb/schema/schema_pybind.cc:484:31: note: in instantiation of function template specialization 'pybind11::handle::cast<unsigned char &>' requested here
484 | auto pv = p.cast<uint8_t &>();
| ^
1 error generated.
make[2]: *** [src/neumodb/schema/CMakeFiles/pyschemadb.dir/build.make:140: src/neumodb/schema/CMakeFiles/pyschemadb.dir/schema_pybind.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1759: src/neumodb/schema/CMakeFiles/pyschemadb.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Dosya bu
Son düzenleme: