paper-cranes-ltd / big2-stack Goto Github PK
View Code? Open in Web Editor NEWThis is a middleware repository that eases up the work with BGFX, GLFW, IMGUI and GLM.
Home Page: https://paper-cranes-ltd.github.io/big2-stack/
License: The Unlicense
This is a middleware repository that eases up the work with BGFX, GLFW, IMGUI and GLM.
Home Page: https://paper-cranes-ltd.github.io/big2-stack/
License: The Unlicense
error: no match for call to ‘(big2::GlfwEventQueue::SortEventsByWindow()::<lambda(TRef, TRef)>) (const big2::GlfwEvent&, big2::GlfwEvent&)’
Ubuntu22.04
gcc 11.4.0
Build failure against main, v0.0.9, v0.0.8
[ 93%] Building CXX object big2/CMakeFiles/BIG2.dir/src/event_queue.cpp.o
In file included from /usr/include/c++/11/bits/stl_algobase.h:71,
from /usr/include/c++/11/array:40,
from /home/dkords/dev/repos/big2-stack/build/_deps/microsoft-gsl-src/include/gsl/util:22,
from /home/dkords/dev/repos/big2-stack/build/_deps/microsoft-gsl-src/include/gsl/span:22,
from /home/dkords/dev/repos/big2-stack/build/_deps/microsoft-gsl-src/include/gsl/algorithm:21,
from /home/dkords/dev/repos/big2-stack/build/_deps/microsoft-gsl-src/include/gsl/gsl:20,
from /home/dkords/dev/repos/big2-stack/big2/include/big2/event_queue.h:9,
from /home/dkords/dev/repos/big2-stack/big2/src/event_queue.cpp:5:
/usr/include/c++/11/bits/predefined_ops.h: In instantiation of ‘constexpr bool __gnu_cxx::__ops::_Val_comp_iter<_Compare>::operator()(_Value&, _Iterator) [with _Value = const big2::GlfwEvent; _Iterator = __gnu_cxx::__normal_iterator<big2::GlfwEvent*, std::vector<big2::GlfwEvent> >; _Compare = big2::GlfwEventQueue::SortEventsByWindow()::<lambda(TRef, TRef)>]’:
/usr/include/c++/11/bits/stl_algo.h:2041:14: required from ‘constexpr _ForwardIterator std::__upper_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator<big2::GlfwEvent*, std::vector<big2::GlfwEvent> >; _Tp = big2::GlfwEvent; _Compare = __gnu_cxx::__ops::_Val_comp_iter<big2::GlfwEventQueue::SortEventsByWindow()::<lambda(TRef, TRef)> >]’
/usr/include/c++/11/bits/stl_algo.h:2108:32: required from ‘constexpr _FIter std::upper_bound(_FIter, _FIter, const _Tp&, _Compare) [with _FIter = __gnu_cxx::__normal_iterator<big2::GlfwEvent*, std::vector<big2::GlfwEvent> >; _Tp = big2::GlfwEvent; _Compare = big2::GlfwEventQueue::SortEventsByWindow()::<lambda(TRef, TRef)>]’
/usr/include/c++/11/pstl/parallel_backend_tbb.h:1014:40: required from ‘__pstl::__tbb_backend::__task* __pstl::__tbb_backend::__merge_func<_RandomAccessIterator1, _RandomAccessIterator2, _Compare, _Cleanup, _LeafMerge>::split_merging(__pstl::__tbb_backend::__task*) [with _RandomAccessIterator1 = __gnu_cxx::__normal_iterator<big2::GlfwEvent*, std::vector<big2::GlfwEvent> >; _RandomAccessIterator2 = big2::GlfwEvent*; _Compare = big2::GlfwEventQueue::SortEventsByWindow()::<lambda(TRef, TRef)>; _Cleanup = __pstl::__utils::__serial_destroy; _LeafMerge = __pstl::__utils::__serial_move_merge]’
/usr/include/c++/11/pstl/parallel_backend_tbb.h:923:20: required from ‘__pstl::__tbb_backend::__task* __pstl::__tbb_backend::__merge_func<_RandomAccessIterator1, _RandomAccessIterator2, _Compare, _Cleanup, _LeafMerge>::merge_ranges(__pstl::__tbb_backend::__task*) [with _RandomAccessIterator1 = __gnu_cxx::__normal_iterator<big2::GlfwEvent*, std::vector<big2::GlfwEvent> >; _RandomAccessIterator2 = big2::GlfwEvent*; _Compare = big2::GlfwEventQueue::SortEventsByWindow()::<lambda(TRef, TRef)>; _Cleanup = __pstl::__utils::__serial_destroy; _LeafMerge = __pstl::__utils::__serial_move_merge]’
/usr/include/c++/11/pstl/parallel_backend_tbb.h:1053:16: required from ‘__pstl::__tbb_backend::__task* __pstl::__tbb_backend::__merge_func<_RandomAccessIterator1, _RandomAccessIterator2, _Compare, _Cleanup, _LeafMerge>::operator()(__pstl::__tbb_backend::__task*) [with _RandomAccessIterator1 = __gnu_cxx::__normal_iterator<big2::GlfwEvent*, std::vector<big2::GlfwEvent> >; _RandomAccessIterator2 = big2::GlfwEvent*; _Compare = big2::GlfwEventQueue::SortEventsByWindow()::<lambda(TRef, TRef)>; _Cleanup = __pstl::__utils::__serial_destroy; _LeafMerge = __pstl::__utils::__serial_move_merge]’
/usr/include/c++/11/pstl/parallel_backend_tbb.h:620:33: required from ‘__pstl::__tbb_backend::__task* __pstl::__tbb_backend::__func_task<_Func>::execute(tbb::detail::d1::execution_data&) [with _Func = __pstl::__tbb_backend::__merge_func<__gnu_cxx::__normal_iterator<big2::GlfwEvent*, std::vector<big2::GlfwEvent> >, big2::GlfwEvent*, big2::GlfwEventQueue::SortEventsByWindow()::<lambda(TRef, TRef)>, __pstl::__utils::__serial_destroy, __pstl::__utils::__serial_move_merge>]’
/usr/include/c++/11/pstl/parallel_backend_tbb.h:616:5: required from here
/usr/include/c++/11/bits/predefined_ops.h:240:30: error: no match for call to ‘(big2::GlfwEventQueue::SortEventsByWindow()::<lambda(TRef, TRef)>) (const big2::GlfwEvent&, big2::GlfwEvent&)’
240 | { return bool(_M_comp(__val, *__it)); }
| ~~~~~~~^~~~~~~~~~~~~~
https://github.com/Paper-Cranes-Ltd/big2-stack/blob/main/docs/getting-started.md
BGFX is arguably one of the more complex to configure if you don't take defaults. And bgfx is like serving coffee or tea. Many things may need to be customized depending on the situation. I like the idea of something like big2 or bigg that provides more batteries and decisions for things to help getting started.
I am expecting to find:
in 03_multiple_windows.cpp, the following code blocks cause bgfx error as "BX_TRACE("Initializing headless mode, resolution of non-existing backbuffer can't be larger than 0x0!");"
bgfx::Init init_object;
big2::Validate(bgfx::init(init_object), "BGFX couldn't be initialized");
The patched version of bgfx_compile_shader_to_header
does not work properly when there are multiple shaders of the same type (e.g. fs_pass1.sc
, fs_pass2.sc
, etc). The resulting contents of ARGS_OUT_FILES_VAR
will only contain paths for one input shader, rather than all of them.
This is due to the following trampling the previous contents of ARGS_OUT_FILES_VAR
here:
big2-stack/patches/bgfx-cmake.patch
Lines 80 to 82 in a2d01c4
To fix this, I changed this in my version of this patch to the following:
+ if(DEFINED ARGS_OUT_FILES_VAR)
+ list(APPEND ${ARGS_OUT_FILES_VAR} ${OUTPUTS})
+ set(${ARGS_OUT_FILES_VAR} ${${ARGS_OUT_FILES_VAR}} PARENT_SCOPE)
+ endif()
– Dylan
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.