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

Samples not building against latest Cinder master #21

Open
braitsch opened this issue Aug 11, 2015 · 11 comments
Open

Samples not building against latest Cinder master #21

braitsch opened this issue Aug 11, 2015 · 11 comments

Comments

@braitsch
Copy link

Hello,

I'm having some trouble getting a few of the samples to build. These are the specific errors I'm getting for each. The BodyApp sample however builds fine.

I'll add that I'm just getting my feet wet in Cinder. Any suggestions would be much appreciated.

BasicApp

1>  BasicApp.cpp
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\basicapp\src\basicapp.cpp(71): error C2039: 'viewport' : is not a member of 'cinder::gl'
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\basicapp\src\basicapp.cpp(71): error C3861: 'viewport': identifier not found
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\basicapp\src\basicapp.cpp(72): error C2039: 'clear' : is not a member of 'cinder::gl'
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\basicapp\src\basicapp.cpp(72): error C3861: 'clear': identifier not found
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\basicapp\src\basicapp.cpp(73): error C2039: 'setMatricesWindow' : is not a member of 'cinder::gl'
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\basicapp\src\basicapp.cpp(73): error C3861: 'setMatricesWindow': identifier not found
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\basicapp\src\basicapp.cpp(74): error C2039: 'enableAlphaBlending' : is not a member of 'cinder::gl'
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\basicapp\src\basicapp.cpp(74): error C3861: 'enableAlphaBlending': identifier not found
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\basicapp\src\basicapp.cpp(78): error C2039: 'draw' : is not a member of 'cinder::gl'
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\basicapp\src\basicapp.cpp(78): error C2660: 'BasicApp::draw' : function does not take 3 arguments
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\basicapp\src\basicapp.cpp(82): error C2039: 'draw' : is not a member of 'cinder::gl'
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\basicapp\src\basicapp.cpp(82): error C2660: 'BasicApp::draw' : function does not take 3 arguments
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\basicapp\src\basicapp.cpp(86): error C2039: 'draw' : is not a member of 'cinder::gl'
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\basicapp\src\basicapp.cpp(86): error C2660: 'BasicApp::draw' : function does not take 3 arguments
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\basicapp\src\basicapp.cpp(90): error C2039: 'draw' : is not a member of 'cinder::gl'
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\basicapp\src\basicapp.cpp(90): error C2660: 'BasicApp::draw' : function does not take 3 arguments
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\basicapp\src\basicapp.cpp(98): error C2039: 'enable' : is not a member of 'cinder::gl'
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\basicapp\src\basicapp.cpp(98): error C3861: 'enable': identifier not found

FaceApp

1>  FaceApp.cpp
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\faceapp\src\faceapp.cpp(80): error C2039: 'draw' : is not a member of 'cinder::gl'
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\faceapp\src\faceapp.cpp(80): error C2660: 'FaceApp::draw' : function does not take 3 arguments
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\faceapp\src\faceapp.cpp(114): error C2039: 'draw' : is not a member of 'cinder::gl'
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\faceapp\src\faceapp.cpp(114): error C2660: 'FaceApp::draw' : function does not take 1 arguments
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\faceapp\src\faceapp.cpp(126): error C2039: 'drawStrokedRect' : is not a member of 'cinder::gl'
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\faceapp\src\faceapp.cpp(126): error C3861: 'drawStrokedRect': identifier not found
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\faceapp\src\faceapp.cpp(128): error C2039: 'drawSolidCircle' : is not a member of 'cinder::gl'
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\faceapp\src\faceapp.cpp(128): error C3861: 'drawSolidCircle': identifier not found

PointCloudApp

1>  PointCloudApp.cpp
1>c:\users\braitsch\code\cinder\blocks\cinder-kcb2\samples\pointcloud\src\pointcloudapp.cpp(39): fatal error C1083: Cannot open include file: 'cinder/MayaCamUI.h': No such file or directory
1>  Kinect2.cpp

Cheers,
Stephen

@num3ric
Copy link
Contributor

num3ric commented Aug 12, 2015

GL includes have been restructured. Before they fix it here, you can easily replace all gl includes with a single: #include "cinder/gl/gl.h" (assuming you're using master branch from github).

@braitsch
Copy link
Author

Cool, thanks @num3ric that fixed the BasicApp & FaceApp examples however PointCloudApp is still looking for "MayaCamUI.h". Any idea where that might be? And yes I'm working off the master branch from github.

@num3ric
Copy link
Contributor

num3ric commented Aug 12, 2015

Ah yes, that interface has changed too. You now need CameraPersp and a CameraUi. Ideally, you should rely on the W+K guys for that one cough.

See this example for a basic use case example: https://github.com/cinder/Cinder/blob/81e55e7eb76c7c856633eaed4679aca5ab6531f4/samples/_opengl/VboMesh/src/VboMeshApp.cpp#L34

@braitsch
Copy link
Author

Ok good to know. I'll play around and see if I can get it working. Thanks!

@braitsch
Copy link
Author

Hey Eric, I swapped out MayaCamUI for CameraUI and set it up as shown in the example you provided. All the examples now compile however they all run at around 1-6fps, particularly the PointCloud sample which chugs along at about 1.4fps.

I'm running win10 via bootcamp on a brand new macbook pro.
Do you happen to know is ~1-6fps the expected performance?

@num3ric
Copy link
Contributor

num3ric commented Aug 12, 2015

That's abnormally slow. The SDK samples run fine? Release Mode is usually significantly faster with VC++, have you tried it?

@braitsch
Copy link
Author

Ahh yeah my bad I was running in debug mode. I'm now seeing 45-60fps in release mode. Thanks!

@jayson-valentino
Copy link

Hello, i'm having this errors once i build the basicApp. I replace all gl to a single include. But still got the same problem. I hope somebody can guide me. Thanks in advance!

1   IntelliSense: namespace "cinder" has no member "Channel8uRef"   c:\Users\Jayson\Documents\cinder\blocks\Cinder-KCB2\samples\BasicApp\src\BasicApp.cpp   52  6   BasicApp
2   IntelliSense: namespace "cinder" has no member "Channel16uRef"  c:\Users\Jayson\Documents\cinder\blocks\Cinder-KCB2\samples\BasicApp\src\BasicApp.cpp   53  6   BasicApp
3   IntelliSense: namespace "cinder" has no member "Channel16uRef"  c:\Users\Jayson\Documents\cinder\blocks\Cinder-KCB2\samples\BasicApp\src\BasicApp.cpp   54  6   BasicApp
4   IntelliSense: namespace "cinder" has no member "Surface8uRef"   c:\Users\Jayson\Documents\cinder\blocks\Cinder-KCB2\samples\BasicApp\src\BasicApp.cpp   55  6   BasicApp
5   IntelliSense: namespace "cinder::gl" has no member "viewport"   c:\Users\Jayson\Documents\cinder\blocks\Cinder-KCB2\samples\BasicApp\src\BasicApp.cpp   70  6   BasicApp
6   IntelliSense: incomplete type is not allowed    c:\Users\Jayson\Documents\cinder\blocks\Cinder-KCB2\samples\BasicApp\src\BasicApp.cpp   76  24  BasicApp
7   IntelliSense: pointer to incomplete class type is not allowed   c:\Users\Jayson\Documents\cinder\blocks\Cinder-KCB2\samples\BasicApp\src\BasicApp.cpp   77  18  BasicApp
8   IntelliSense: identifier "vec2" is undefined    c:\Users\Jayson\Documents\cinder\blocks\Cinder-KCB2\samples\BasicApp\src\BasicApp.cpp   77  43  BasicApp
9   IntelliSense: incomplete type is not allowed    c:\Users\Jayson\Documents\cinder\blocks\Cinder-KCB2\samples\BasicApp\src\BasicApp.cpp   80  24  BasicApp
10  IntelliSense: pointer to incomplete class type is not allowed   c:\Users\Jayson\Documents\cinder\blocks\Cinder-KCB2\samples\BasicApp\src\BasicApp.cpp   81  18  BasicApp
11  IntelliSense: incomplete type is not allowed    c:\Users\Jayson\Documents\cinder\blocks\Cinder-KCB2\samples\BasicApp\src\BasicApp.cpp   84  24  BasicApp
12  IntelliSense: pointer to incomplete class type is not allowed   c:\Users\Jayson\Documents\cinder\blocks\Cinder-KCB2\samples\BasicApp\src\BasicApp.cpp   85  18  BasicApp
13  IntelliSense: incomplete type is not allowed    c:\Users\Jayson\Documents\cinder\blocks\Cinder-KCB2\samples\BasicApp\src\BasicApp.cpp   88  24  BasicApp
14  IntelliSense: pointer to incomplete class type is not allowed   c:\Users\Jayson\Documents\cinder\blocks\Cinder-KCB2\samples\BasicApp\src\BasicApp.cpp   89  18  BasicApp
15  IntelliSense: identifier "vec2" is undefined    c:\Users\Jayson\Documents\cinder\blocks\Cinder-KCB2\samples\BasicApp\src\BasicApp.cpp   89  62  BasicApp
16  IntelliSense: identifier "ivec2" is undefined   c:\Users\Jayson\Documents\cinder\blocks\Cinder-KCB2\samples\BasicApp\src\BasicApp.cpp   121 51  BasicApp
17  IntelliSense: explicit type is missing ('int' assumed)  c:\Users\Jayson\Documents\cinder\blocks\Cinder-KCB2\samples\BasicApp\src\BasicApp.cpp   137 1   BasicApp
18  IntelliSense: parameter of abstract class type "BasicApp" is not allowed:
        pure virtual function "cinder::app::App::quit" has no overrider
        pure virtual function "cinder::app::App::getSettings" has no overrider
        pure virtual function "cinder::app::App::getWindow" has no overrider
        pure virtual function "cinder::app::App::getNumWindows" has no overrider
        pure virtual function "cinder::app::App::getWindowIndex" has no overrider
        pure virtual function "cinder::app::App::getFrameRate" has no overrider
        pure virtual function "cinder::app::App::setFrameRate" has no overrider
        pure virtual function "cinder::app::App::getAppPath" has no overrider
        pure virtual function "cinder::app::App::getsWindowsPaintEvents" has no overrider
        pure virtual function "cinder::app::App::launch" has no overrider   c:\Users\Jayson\Documents\cinder\blocks\Cinder-KCB2\samples\BasicApp\src\BasicApp.cpp   137 13  BasicApp
19  IntelliSense: explicit type is missing ('int' assumed)  c:\Users\Jayson\Documents\cinder\blocks\Cinder-KCB2\samples\BasicApp\src\BasicApp.cpp   137 37  BasicApp
20  IntelliSense: expected a ')'    c:\Users\Jayson\Documents\cinder\blocks\Cinder-KCB2\samples\BasicApp\src\BasicApp.cpp   138 1   BasicApp

@grrrwaaa
Copy link

braitsch's fork fixes the pointcloud sample. Shouldn't this be pulled back here?

@grrrwaaa
Copy link

@jacount looks like you might need to use Cinder from github master rather than the current release version.

@KDevS
Copy link

KDevS commented Feb 22, 2017

I am getting run-time errors with the BasicApp and BodyApp samples with the current release version of Cinder (vs2013, win10, Cinder v0.9). The FaceApp works fine though.

Both of them break in the draw function when they try to create a texture with the Channel16uRef data

gl::TextureRef tex = gl::Texture::create( *Kinect2::channel16To8( mChannelDepth ) );

The while loop in the function in Kinect2.cpp throws the unhandled exception error during iteration:

Channel8uRef channel16To8( const Channel16uRef& channel, uint8_t bytes )
{
	Channel8uRef channel8;
	if ( channel ) {
		channel8				= Channel8u::create( channel->getWidth(), channel->getHeight() );
		Channel16u::Iter iter16	= channel->getIter();
		Channel8u::Iter iter8	= channel8->getIter();
		while ( iter8.line() && iter16.line() ) {
			while ( iter8.pixel() && iter16.pixel() ) {
				**iter8.v()				= static_cast<uint8_t>( iter16.v() >> bytes );**
			}
		}
	}
	return channel8;
}

Both iter16 and iter8 give the "error reading characters of string" error

iter16	{mInc=0 '\0' mRowInc=-842150655 mLinePtr=0xe55562d1 <Error reading characters of string.> ...}	cinder::ChannelT<unsigned short>::Iter
iter8 	{mInc=0 '\0' mLinePtr=0xcdcdcd01 <Error reading characters of string.> mPtr=0xe9266099 <Error reading characters of string.> ...}	cinder::ChannelT<unsigned char>::Iter

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

5 participants