-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
no member named 'posix_fallocate' in the global namespace #2358
Comments
Hi, this is caused by the recently merged #2325 that uses @de-vri-es that was such a small innocent PR, wasn't it? 😆 |
@taketwo thanx for you reply. it works, i build complete without other issue. |
Great. Please consider sending a PR. |
It seemed that way back then >.< It's POSIX, it should work everywhere :[ I'm not convinced the OS X implementation will actually work correctly on Android. That specific fcntl only shows up in OS X man pages. I would actually expect compile errors on Maybe a third fallback that does a seek+write would make sense. The |
Hm, I found this piece of code, it simply forwards arguments to |
Interesting.. I went for But it seems Android only has the Linux version, not the POSIX version.. Since |
I see. I wonder what would be the best way to approach this. I've never used PCL on Android (and I am actually surprised someone does), so I don't have time/motivation to properly fix this. What if we just add an Android Though to be honest I don't feel very good about this because we'd be leaving a self-inflicted regression in the codebase :( |
For best portability we would have to try several things in order and fall back to the next option when one fails. I think the logical order then would be: one of Quite a hassle, but at least there's a single definition now. I'm also willing to put it into a PR if you agree with that direction. |
Sounds reasonable. But you know way more than me about these things, so ultimately please follow your own judging.
👍 We'll need an Apple and Android person to test that PR. @heartzwh please stay tuned. |
I'll reopen this because the issue is not solved upstream. |
Initial PR at #2363 =] |
hi everyone,
i want to build pcl for android platform.
when i build pcd_grabber.cpp had a issue.
how to fix the error.
thanx.
system and pcl version
[ 22%] Built target pcl_io_ply
[ 22%] Building CXX object io/CMakeFiles/pcl_io.dir/src/pcd_grabber.cpp.o
In file included from /home/sora/Desktop/pcl-for-android-master/build/pcl/io/src/pcd_grabber.cpp:39:
/home/sora/Desktop/pcl-for-android-master/build/pcl/io/include/pcl/io/low_level_io.h:138:16: error:
no member named 'posix_fallocate' in the global namespace
return ::posix_fallocate(fd, 0, len);
~~^
The text was updated successfully, but these errors were encountered: