strawlab / python-pcl

Python bindings to the pointcloud library (pcl)
http://strawlab.github.com/python-pcl/
Other
2.01k stars 701 forks source link

Unrecognized command line #86

Open chenyuan920911 opened 8 years ago

chenyuan920911 commented 8 years ago

Hi, I am having issues installing python-pcl. I have pcl=1.8, cython-0.23.4, numpy=1.10.2, I am currently running an ubuntu 15.10. I have installed successfully on 14.04. But now I am running into problems like:

c++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/pcl/_pcl.o build/temp.linux-x86_64-2.7/pcl/minipcl.o -L/usr/local/lib -lpcl_registration -lpcl_segmentation -lpcl_features -lpcl_2d -lpcl_io -lOpenNI -lpcl_filters -lpcl_sample_consensus -lpcl_ml -lpcl_surface -lpcl_search -lpcl_kdtree -lflann_cpp -lpcl_octree -lpcl_common -o /home/ychen/Repos/python-pcl/pcl/_pcl.so c++: error: unrecognized command line option ‘-fstack-protector-strong’ c++: error: unrecognized command line option ‘-fstack-protector-strong’ error: command 'c++' failed with exit status 1 Makefile:5: recipe for target 'pcl/_pcl.so' failed make: *\ [pcl/_pcl.so] Error 1

I actually manually changed '-fstack-protector-strong' to '-fstack-protector-all', then it works. BUT, I ran into the issue error when import pcl #50 https://github.com/strawlab/python-pcl/issues/50

nzjrs commented 8 years ago

whats the GCC version?

chenyuan920911 commented 8 years ago

It's 5.10.X, it's definitely not 4.8.X.