GithubHelp home page GithubHelp logo

Comments (7)

febret avatar febret commented on June 8, 2024

Thanks for the report. The user color function is not used anywhere so I removed it in the two referenced commits (not tested). This should do the trick.

from omicron.

MohitShridhar avatar MohitShridhar commented on June 8, 2024

Wow! That was quick! Thanks.

But the build still fails later on. OpenNIService seems to rely on 'Colors':

..../omicron/src/omicron/omicron/OpenNIService.cpp:756:17: error: use of undeclared identifier
      'nColors'; did you mean 'nColorID'?
                                        nColorID = nColors;
                                                   ^~~~~~~
                                                   nColorID
..../omicron/src/omicron/omicron/OpenNIService.cpp:753:14: note: 'nColorID' declared here
                                XnUInt32 nColorID = label % nColors;
                                         ^
..../omicron/src/omicron/omicron/OpenNIService.cpp:763:35: error: use of undeclared identifier 'Colors'
                                        pDestImage[0] = nHistValue * Colors[nColorID][0];
                                                                     ^
..../omicron/src/omicron/omicron/OpenNIService.cpp:764:35: error: use of undeclared identifier 'Colors'
                                        pDestImage[1] = nHistValue * Colors[nColorID][1];
                                                                     ^
..../omicron/src/omicron/omicron/OpenNIService.cpp:765:35: error: use of undeclared identifier 'Colors'
                                        pDestImage[2] = nHistValue * Colors[nColorID][2];
                                                                     ^
7 errors generated.
make[2]: *** [src/omicron/CMakeFiles/omicron.dir/omicron/OpenNIService.cpp.o] Error 1
make[1]: *** [src/omicron/CMakeFiles/omicron.dir/all] Error 2
make: *** [all] Error 2

from omicron.

febret avatar febret commented on June 8, 2024

mh that's what happens when I commit stuff without testing build. I re-added the floating point color array used in that function. Test again, it should work.

from omicron.

MohitShridhar avatar MohitShridhar commented on June 8, 2024

Still has a couple of errors :bowtie::

..../omicron/src/omicron/omicron/OpenNIService.cpp:243:22: error: use of overloaded operator '[]' is
      ambiguous (with operand types 'Setting' (aka 'libconfig::Setting') and 'char [50]')
                                Setting& st = srt[buffer];

..../omicron/src/omicron/omicron/OpenNIService.cpp:252:22: error: use of overloaded operator '[]' is
      ambiguous (with operand types 'Setting' (aka 'libconfig::Setting') and 'char [50]')
                                Setting& st = srt[buffer];

2 errors generated.
make[2]: *** [src/omicron/CMakeFiles/omicron.dir/omicron/OpenNIService.cpp.o] Error 1
make[1]: *** [src/omicron/CMakeFiles/omicron.dir/all] Error 2
make: *** [all] Error 2

from omicron.

febret avatar febret commented on June 8, 2024

try now

from omicron.

MohitShridhar avatar MohitShridhar commented on June 8, 2024

Awesome! It builds without errors. Thanks a lot!
Will experiment with OpenNI soon.

from omicron.

febret avatar febret commented on June 8, 2024

glad it worked! Let me know if you have any further issues.

from omicron.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.