matlab crush at mexfile execution

1 view (last 30 days)
palimer
palimer on 20 Feb 2014
Hello all, I am new to Matlab Answers, if it is not the place to ask this question, let me know.
I am using MatlabR2013a with Ubuntu 12.04 with g++-4.4 for the compiler. I have built a mex function (see the c++ code in here , it has the mex command to compile the mex file and the CMakeList.txt to complie the cpp example) in order to be able to visualize pointclouds in the same way that using scatter3(x,y,z,size,z) but with pcl which is much faster and allows me to visualize much more number of points. The mex function also save the point cloud in a file (pcl has implemented this function).
The problem is that if I run the c++ example (outside matlab) loading the cloud that the mex file has built (and saved in a file) works perfectly. However, when visualizing it from the mex file, within matlab, it crashes (the crash log is in the atached file ). Does anybody have a hint on what the problem might be?
Thank you! Cheers!
Albert
ps: to build the c++ project enter the build directory and execute cmake .. and then make. For running the executable, in the same folder run ./pcl_scatter.

Answers (0)

Categories

Find more on MATLAB Compiler SDK in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!