rbsheth / open3dgc Goto Github PK
View Code? Open in Web Editor NEWOpen 3D Graphics Compression (from https://github.com/amd/rest3d/tree/master/server/o3dgc)
Open 3D Graphics Compression (from https://github.com/amd/rest3d/tree/master/server/o3dgc)
When building with:
mkdir build
cd build
cmake ../src
make
the build of the test application falls with the following, the issue is the signature of IVec3Cmp operator()
needs to be const, as in
bool operator()(const Vec3<unsigned long> a,const Vec3<unsigned long> b) const
In instantiation of ‘static const _Key& std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_S_key(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type) [with _Key = o3dgc::Vec3; _Val = std::pair<const o3dgc::Vec3, long unsigned int>; _KeyOfValue = std::_Select1st<std::pair<const o3dgc::Vec3, long unsigned int> >; _Compare = IVec3Cmp; _Alloc = std::allocator<std::pair<const o3dgc::Vec3, long unsigned int> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type = const std::_Rb_tree_node<std::pair<const o3dgc::Vec3, long unsigned int> >*]’:
/usr/include/c++/11/bits/stl_tree.h:2435:62: required from ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple<const o3dgc::Vec3&>, std::tuple<>}; _Key = o3dgc::Vec3; _Val = std::pair<const o3dgc::Vec3, long unsigned int>; _KeyOfValue = std::_Select1st<std::pair<const o3dgc::Vec3, long unsigned int> >; _Compare = IVec3Cmp; _Alloc = std::allocator<std::pair<const o3dgc::Vec3, long unsigned int> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree<o3dgc::Vec3, std::pair<const o3dgc::Vec3, long unsigned int>, std::_Select1st<std::pair<const o3dgc::Vec3, long unsigned int> >, IVec3Cmp, std::allocator<std::pair<const o3dgc::Vec3, long unsigned int> > >::iterator; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator = std::_Rb_tree<o3dgc::Vec3, std::pair<const o3dgc::Vec3, long unsigned int>, std::_Select1st<std::pair<const o3dgc::Vec3, long unsigned int> >, IVec3Cmp, std::allocator<std::pair<const o3dgc::Vec3, long unsigned int> > >::const_iterator]’
/usr/include/c++/11/bits/stl_map.h:501:37: required from ‘std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = o3dgc::Vec3; _Tp = long unsigned int; _Compare = IVec3Cmp; _Alloc = std::allocator<std::pair<const o3dgc::Vec3, long unsigned int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = long unsigned int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = o3dgc::Vec3]’
/home/elk/repos/Open3DGC/src/test/src/main.cpp:849:40: required from here
/usr/include/c++/11/bits/stl_tree.h:770:15: error: static assertion failed: comparison object must be invocable as const
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.