Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cinder 0.8.6 #16

Open
zaherj opened this issue May 11, 2015 · 4 comments
Open

Cinder 0.8.6 #16

zaherj opened this issue May 11, 2015 · 4 comments

Comments

@zaherj
Copy link

zaherj commented May 11, 2015

Hi Guys,

I am trying to compile the project using Cinder 0.8.6 but I am getting lots of errors of datatypes not included in Cinder and being used in KinectV2.h

For example the file "cinder/gl/VboMesh.h" doesn't exist in Cinder.

The types Channel16uRef, Surface8uRef ..etc don't exist in Cinder

Any help would be really appropriated

Thanks

@vijtad
Copy link

vijtad commented Jun 13, 2015

I am getting same error.

Were you able to solve this.

Thanks

@wouterverweirder
Copy link

Had the same issue. You need to use Cinder from the master branch, not the precompiled 0.8.6 (which is almost a year old).

@vijtad
Copy link

vijtad commented Jun 14, 2015

Thank you.

I am able to progress further using master branch and compiling it as x64.

Now I am getting the following errors

1>------ Build started: Project: CinderProject, Configuration: Debug x64 ------
1>cl : Command line warning D9030: '/Gm' is incompatible with multiprocessing; ignoring /MP switch
1> CinderProjectApp.cpp
1>..\src\CinderProjectApp.cpp(22): error C2039: 'draw' : is not a member of 'cinder::gl'
1>..\src\CinderProjectApp.cpp(22): error C2660: 'CinderProjectApp::draw' : function does not take 3 arguments
1>..\src\CinderProjectApp.cpp(36): error C2039: 'RendererGl' : is not a member of 'cinder::app'
1>..\src\CinderProjectApp.cpp(36): error C2061: syntax error : identifier 'RendererGl'
1> Kinect2.cpp
1>..\blocks\Cinder-KCB2\src\Kinect2.cpp(999): warning C4267: 'argument' : conversion from 'size_t' to 'UINT', possible loss of data
1>..\blocks\Cinder-KCB2\src\Kinect2.cpp(1023): warning C4267: 'argument' : conversion from 'size_t' to 'UINT', possible loss of data
1>..\blocks\Cinder-KCB2\src\Kinect2.cpp(1053): warning C4267: 'argument' : conversion from 'size_t' to 'UINT', possible loss of data
1>..\blocks\Cinder-KCB2\src\Kinect2.cpp(1067): warning C4267: 'argument' : conversion from 'size_t' to 'UINT', possible loss of data
1>..\blocks\Cinder-KCB2\src\Kinect2.cpp(1116): warning C4267: 'argument' : conversion from 'size_t' to 'UINT', possible loss of data
1>..\blocks\Cinder-KCB2\src\Kinect2.cpp(1137): warning C4267: 'argument' : conversion from 'size_t' to 'UINT', possible loss of data
1>..\blocks\Cinder-KCB2\src\Kinect2.cpp(1756): error C2039: 'appendVertices' : is not a member of 'cinder::TriMesh'
1> C:\Users\vijay\Documents\GitHub\Cinder\include\cinder/TriMesh.h(42) : see declaration of 'cinder::TriMesh'
1> C:\Users\vijay\Documents\GitHub\Cinder\include\cinder/TriMesh.h(42) : see declaration of 'cinder::TriMesh'
1>..\blocks\Cinder-KCB2\src\Kinect2.cpp(1756): error C2039: '__this' : is not a member of 'cinder::TriMesh'
1> C:\Users\vijay\Documents\GitHub\Cinder\include\cinder/TriMesh.h(42) : see declaration of 'cinder::TriMesh'
1> Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I changed cinderblock.xml as follows :-

    <sourcePattern>src/*.cpp</sourcePattern>
    <headerPattern>src/*.h</headerPattern>
    <includePath>src</includePath>
    <includePath>lib</includePath>
    <includePath absolute="true">$(KINECTSDK20_DIR)/inc</includePath>

    <platform os="msw">
        <platform config="debug">
            <staticLibrary>lib/x64/KCBv2.lib</staticLibrary>
            <staticLibrary absolute="true">$(KINECTSDK20_DIR)/lib/x64/kinect20.lib</staticLibrary>
            <staticLibrary absolute="true">$(KINECTSDK20_DIR)/lib/x64/Kinect20.Face.lib</staticLibrary>
            <buildCopy>lib/x64/KCBv2.dll</buildCopy>
            <buildCopy absolute="true">$(KINECTSDK20_DIR)Redist\Face\x64\Kinect20.Face.dll</buildCopy>
        </platform>
        <platform config="release">
            <staticLibrary>lib/x64/KCBv2.lib</staticLibrary>
            <staticLibrary absolute="true">$(KINECTSDK20_DIR)/lib/x64/kinect20.lib</staticLibrary>
            <staticLibrary absolute="true">$(KINECTSDK20_DIR)/lib/x64/Kinect20.Face.lib</staticLibrary>
            <buildCopy>lib/x64/KCBv2.dll</buildCopy>
            <buildCopy absolute="true">$(KINECTSDK20_DIR)Redist\Face\x64\Kinect20.Face.dll</buildCopy>
        </platform>
    </platform>
</block>
<template>templates/Basic KCB2/template.xml</template>

@vijtad
Copy link

vijtad commented Jun 14, 2015

I was able to compile successfully after doing following changes to code generated by ToolBox

  1. kinect2.cpp
    Replace
    face.mMesh->appendVertices( &iter->mFaceModelVertices[ 0 ], sFaceModelVertexCount );

    with

    face.mMesh->appendPositions( &iter->mFaceModelVertices[ 0 ], sFaceModelVertexCount );

    as appendVertices is removed and replaced with appendPositions.

  2. CinderProjectApp.cpp
    Add

    #include "cinder/gl/Draw.h"

at the top, to resolve the error on following line

ci::gl::draw( tex, tex->getBounds(), getWindowBounds() );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants