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

[windows] Fix compile issues when compiling OpenNIDriver #5452

Merged
merged 1 commit into from
Oct 8, 2022

Conversation

SunBlack
Copy link
Contributor

@SunBlack SunBlack commented Oct 5, 2022

Installed OpenNI(1) on my system to get a full build of PCL and got two compile issues:

  • error C2039: 'tokenizer': is not a member of 'boost'
  • error C2679: binary '[': no operator found which takes a right-hand operand of type 'const openni_wrapper::OpenNIDriver::DeviceContext' (or there is no acceptable conversion)

Last issue was introduced by myself in #2845 3 years ago. As no one mentioned it: Maybe we could also deprecate the OpenNI code (at least of version 1)?

@larshg
Copy link
Contributor

larshg commented Oct 6, 2022

Doesn't seem anyone use it, since its not been reported before now. So I don't mind deprecating the OpenNI(1).
It was not that long ago, one tried to get it working with openNI2, if I remember correctly.

Copy link
Member

@mvieth mvieth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
I am not convinced that deprecating OpenNI(1) is a good idea. Since these problems were windows-only, linux and mac users would have never noticed them

@mvieth mvieth added module: io changelog: fix Meta-information for changelog generation labels Oct 8, 2022
@mvieth mvieth changed the title Fix compile issues when compiling OpenNIDriver [windows] Fix compile issues when compiling OpenNIDriver Oct 8, 2022
@mvieth mvieth merged commit 04c62b5 into PointCloudLibrary:master Oct 8, 2022
@SunBlack SunBlack deleted the fix_OpenNIDriver branch October 8, 2022 16:18
@SunBlack
Copy link
Contributor Author

SunBlack commented Oct 8, 2022

@mvieth This issue is not just Windows related ;-)

@mvieth
Copy link
Member

mvieth commented Oct 8, 2022

@mvieth This issue is not just Windows related ;-)

Really? The two lines with strcpy are wrapped in #ifdef _WIN32, same for all boost:tokenizer instances. I have both OpenNI 1 and 2 installed on my Ubuntu, and openni_driver.cpp always compiled successfully

@SunBlack
Copy link
Contributor Author

SunBlack commented Oct 8, 2022

Ops you are right 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: fix Meta-information for changelog generation module: io
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants