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

normalEstimation() and triangulate() use incompatible types? #1

Open
atduskgreg opened this issue Jul 6, 2012 · 2 comments
Open

normalEstimation() and triangulate() use incompatible types? #1

atduskgreg opened this issue Jul 6, 2012 · 2 comments

Comments

@atduskgreg
Copy link

Hey,

I can't find a set of PointCloud types that work to use normalEstimation() to prepare for triangulate(). I'm trying to build out an example here that I was planning on contributing that demonstrates the different mesh options:

https://github.com/atduskgreg/of-pcl-example/blob/master/src/testApp.cpp

I've also started a discussion here on the OF forum: http://forum.openframeworks.cc/index.php/topic,5965.new.html

If I can figure this bit out, I'd like to help update ofxPCL to PCL 1.5/1.6 and build out wrappers for some of the new surface reconstruction APIs like poisson.

But I'm just confused about how to use the right PointCloud types to navigate between these functions.

Thanks!

-- Greg

@satoruhiga
Copy link
Owner

Hello Greg,

I fixed the problem.
fc96308

Currently, ofxPCL developing under "develop" branch.
https://github.com/satoruhiga/ofxPCL/tree/develop

but, I think PCL is too heavy to creative coding... it spent super long time in compile...
I do not think actively update ofxPCL

@atduskgreg
Copy link
Author

Hi Satoruhiga,

Thanks for your help! I think I'm close to compiling this off of the develop branch. In fact, the basic empty app (with just #include "ofxPCL.h" added to testApp.h) compiled and linked successfully, but then it crashes on launch with this error:

dyld: Library not loaded: libpcl_common.1.5.dylib
Referenced from: /Users/greg/Downloads/of_0071_osx_release/addons/ofxPCL/example-empty/bin/emptyExampleDebug.app/Contents/MacOS/./../../../data/pcl/libs/libpcl_features.dylib
Reason: image not found
(lldb)

Digging around, I found change_install_name.py in deps/libs/osx. I tried to alter that script to set the right base path for me:

install_name_base = '/Users/greg/Downloads/of_0071_osx_release/addons/ofxPCL/example-empty/bin/emptyExampleDebug.app/Contents/MacOS/./../../../data/pcl/libs/'

and then run it. It ran successfully (so far as I could tell). However that doesn't seem to have any effect on the app, which still crashes with the same error.

It seems like your script is renaming the dylib files to remove the version number but something in one of them wants to refer to a file with the version number in it? I even tried renmaing the dylib file, but then I just got the opposite error (that it was missing libpcl_common.dylib). What am I missing here?

Thanks!

-- Greg

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

2 participants