in ubuntu 16.04 build own project using Cmake/PCL/VTK/Qt
Some project built success in Win7/10 but failed in ubunt 16.04
the project can be compiled and run, but crashed with:
segmentation fault
Thread 1 "pcd_viewer" received signal SIGSEGV, Segmentation fault.
__mempcpy_sse2 () at ../sysdeps/x86_64/memcpy.S:201
201 ../sysdeps/x86_64/memcpy.S: No such file or directory.
I found one bug today
char *filename;
sprintf(filename, "/home/bbox_%s.txt ", filename);
it should be:
char filename[200];
sprintf(filename, "/home/bbox_%s.txt ", filename);
it's work. The bug seems caused by using char* without initialization.
There are still some bugs like that, and I will find them later.