Skip to content

Instantly share code, notes, and snippets.

@angrystar170
Created June 18, 2022 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angrystar170/c85bcaead9e42dde61872ce6fad63488 to your computer and use it in GitHub Desktop.
Save angrystar170/c85bcaead9e42dde61872ce6fad63488 to your computer and use it in GitHub Desktop.
errors when building bomi-git
errors when building bomi-git:
===
player/mpv_property.hpp:299:64: error: invalid conversion from ‘void (*)(const char*&)’ to ‘void (*)(const char*&)’ [-fpermissive]
299 | MpvGetScopedData(): MpvScopedData<T>(mpv_trait<T>::get_free) { }
| ^
| |
| void (*)(const char*&)
player/mpv_property.hpp:291:25: note: initializing argument 1 of ‘MpvScopedData<T>::MpvScopedData(void (*)(type&)) [with T = detail::MpvString<detail::Local8Bit>; type = const char*]’
291 | MpvScopedData(void(*free)(type&)): m_data(), m_free(free) { }
| ~~~~~~^~~~~~~~~~~~
player/mpv_property.hpp: In instantiation of ‘MpvGetScopedData<T>::MpvGetScopedData() [with T = detail::MpvString<detail::Utf8>]’:
player/mpv.hpp:145:25: required from ‘bool Mpv::get(const char*, T&) const [with T = detail::MpvString<detail::Utf8>]’
player/mpv.hpp:50:62: required from ‘T Mpv::get(const char*) const [with T = detail::MpvString<detail::Utf8>]’
player/playengine_p.cpp:204:38: required from here
player/mpv_property.hpp:299:64: error: invalid conversion from ‘void (*)(const char*&)’ to ‘void (*)(const char*&)’ [-fpermissive]
299 | MpvGetScopedData(): MpvScopedData<T>(mpv_trait<T>::get_free) { }
| ^
| |
| void (*)(const char*&)
player/mpv_property.hpp:291:25: note: initializing argument 1 of ‘MpvScopedData<T>::MpvScopedData(void (*)(type&)) [with T = detail::MpvString<detail::Utf8>; type = const char*]’
291 | MpvScopedData(void(*free)(type&)): m_data(), m_free(free) { }
| ~~~~~~^~~~~~~~~~~~
player/mpv_property.hpp: In instantiation of ‘MpvGetScopedData<T>::MpvGetScopedData() [with T = bool]’:
player/mpv.hpp:145:25: required from ‘bool Mpv::get(const char*, T&) const [with T = bool]’
player/mpv.hpp:50:62: required from ‘T Mpv::get(const char*) const [with T = bool]’
player/playengine_p.cpp:232:31: required from here
player/mpv_property.hpp:299:64: error: invalid conversion from ‘void (*)(mpv_trait<bool, detail::Arithmetic>::mpv_type&)’ {aka ‘void (*)(int&)’} to ‘void (*)(MpvScopedData<bool>::type&)’ {aka ‘void (*)(int&)’} [-fpermissive]
299 | MpvGetScopedData(): MpvScopedData<T>(mpv_trait<T>::get_free) { }
| ^
| |
| void (*)(mpv_trait<bool, detail::Arithmetic>::mpv_type&) {aka void (*)(int&)}
player/mpv_property.hpp:291:25: note: initializing argument 1 of ‘MpvScopedData<T>::MpvScopedData(void (*)(type&)) [with T = bool; type = int]’
291 | MpvScopedData(void(*free)(type&)): m_data(), m_free(free) { }
| ~~~~~~^~~~~~~~~~~~
player/mpv_property.hpp: In instantiation of ‘MpvGetScopedData<T>::MpvGetScopedData() [with T = int]’:
player/mpv.hpp:145:25: required from ‘bool Mpv::get(const char*, T&) const [with T = int]’
player/mpv.hpp:50:62: required from ‘T Mpv::get(const char*) const [with T = int]’
player/playengine_p.cpp:480:71: required from here
player/mpv_property.hpp:299:64: error: invalid conversion from ‘void (*)(mpv_trait<int, detail::Arithmetic>::mpv_type&)’ {aka ‘void (*)(long long int&)’} to ‘void (*)(MpvScopedData<int>::type&)’ {aka ‘void (*)(long long int&)’} [-fpermissive]
299 | MpvGetScopedData(): MpvScopedData<T>(mpv_trait<T>::get_free) { }
| ^
| |
| void (*)(mpv_trait<int, detail::Arithmetic>::mpv_type&) {aka void (*)(long long int&)}
player/mpv_property.hpp:291:25: note: initializing argument 1 of ‘MpvScopedData<T>::MpvScopedData(void (*)(type&)) [with T = int; type = long long int]’
291 | MpvScopedData(void(*free)(type&)): m_data(), m_free(free) { }
| ~~~~~~^~~~~~~~~~~~
player/mpv_property.hpp: In instantiation of ‘MpvGetScopedData<T>::MpvGetScopedData() [with T = double]’:
player/mpv.hpp:145:25: required from ‘bool Mpv::get(const char*, T&) const [with T = double]’
player/mpv.hpp:50:62: required from ‘T Mpv::get(const char*) const [with T = double]’
player/playengine_p.cpp:503:41: required from here
player/mpv_property.hpp:299:64: error: invalid conversion from ‘void (*)(mpv_trait<double, detail::Arithmetic>::mpv_type&)’ {aka ‘void (*)(double&)’} to ‘void (*)(MpvScopedData<double>::type&)’ {aka ‘void (*)(double&)’} [-fpermissive]
299 | MpvGetScopedData(): MpvScopedData<T>(mpv_trait<T>::get_free) { }
| ^
| |
| void (*)(mpv_trait<double, detail::Arithmetic>::mpv_type&) {aka void (*)(double&)}
player/mpv_property.hpp:291:25: note: initializing argument 1 of ‘MpvScopedData<T>::MpvScopedData(void (*)(type&)) [with T = double; type = double]’
291 | MpvScopedData(void(*free)(type&)): m_data(), m_free(free) { }
| ~~~~~~^~~~~~~~~~~~
player/mpv_property.hpp: In instantiation of ‘MpvGetScopedData<T>::MpvGetScopedData() [with T = detail::MpvString<detail::Latin1>]’:
player/mpv.hpp:145:25: required from ‘bool Mpv::get(const char*, T&) const [with T = detail::MpvString<detail::Latin1>]’
player/mpv.hpp:50:62: required from ‘T Mpv::get(const char*) const [with T = detail::MpvString<detail::Latin1>]’
player/mpv.hpp:226:48: required from ‘int Mpv::observe(const char*, Set) [with Set = PlayEngine::Data::observe()::<lambda(MpvLatin1&&)>]’
player/playengine_p.cpp:623:16: required from here
player/mpv_property.hpp:299:64: error: invalid conversion from ‘void (*)(const char*&)’ to ‘void (*)(const char*&)’ [-fpermissive]
299 | MpvGetScopedData(): MpvScopedData<T>(mpv_trait<T>::get_free) { }
| ^
| |
| void (*)(const char*&)
player/mpv_property.hpp:291:25: note: initializing argument 1 of ‘MpvScopedData<T>::MpvScopedData(void (*)(type&)) [with T = detail::MpvString<detail::Latin1>; type = const char*]’
291 | MpvScopedData(void(*free)(type&)): m_data(), m_free(free) { }
| ~~~~~~^~~~~~~~~~~~
make[2]: *** [Makefile.Release:5187: release/player/playengine_p.o] error 1
player/mainwindow_m.cpp: In lambda function:
player/mainwindow_m.cpp:402:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
402 | if (e.mrl().isLocalFile()) {
| ^~
player/mainwindow_m.cpp:406:13: note: here
406 | case QuickSnapshotSave::Ask:
| ^~~~
make[2]: exit '/home/angry/.cache/yay/bomi-git/src/bomi/src/bomi'
make[1]: *** [Makefile:42: release] error 2
make[1]: exit '/home/angry/.cache/yay/bomi-git/src/bomi/src/bomi'
make: *** [Makefile:40: build/build/bomi/bomi] error 2
==> ERROR: fatal accident in build().
doing well...
-> Error during build: bomi-git
====
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment