Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Compiling issue #80

Open
Markthenuke opened this issue Dec 1, 2015 · 5 comments
Open

Compiling issue #80

Markthenuke opened this issue Dec 1, 2015 · 5 comments

Comments

@Markthenuke
Copy link

I tried running the setup.py. I kept getting the following error:

pcl/_pcl.cpp:3831:49: error: ‘>>’ should be ‘> >’ within a nested template argument list
sp_assign<pcl::PointCloud>(__pyx_v_self->thisptr_shared, __pyx_t_1);

I ran the command: sudo python setup.py install

@julienr
Copy link

julienr commented Dec 11, 2015

I believe this is because your compiler isn't running in C++11 mode. You can fix it with something like :

CPPFLAGS="-std=c++11" make

PierrickKoch added a commit to PierrickKoch/python-pcl that referenced this issue Feb 4, 2016
fix strawlab#80

when calling `python setup.py install --user`
on Ubuntu 14.04 [gcc 4.8.4 / cython 0.20.1post0]:

pcl/_pcl.cpp: In function ‘int __pyx_pf_3pcl_4_pcl_10PointCloud___cinit__(__pyx_obj_3pcl_4_pcl_PointCloud*, PyObject*)’:
pcl/_pcl.cpp:3831:49: error: ‘>>’ should be ‘> >’ within a nested template argument list
   sp_assign<pcl::PointCloud<struct pcl::PointXYZ>>(__pyx_v_self->thisptr_shared, __pyx_t_1);
                                                 ^
@Markthenuke
Copy link
Author

Thanks that allowed me to make the SO file, however when I run setup install I do not know how I could use CPPFLAGS="-std=c++11" make to finish the install.

@julienr
Copy link

julienr commented Feb 17, 2016

I think you can modify setup.py to add :

ext_args['extra_compile_args'].append('-std=c++11') 

just before the call to setup

@hesamrabetitum
Copy link

I recently had the same issue, should this be a permanent change?

@Sirokujira
Copy link
Collaborator

When corresponding to pcl 1.9,
Since you need C ++ 11 series compiler switch, you need to add settings.
(PointCloudLibrary/pcl#1638)

However, since 1.6 is currently included in the corresponding item, setting it to C ++ 11 is a little hesitant.
(Because there are modules other than PCL)

As a current situation, I'd like to have only necessary people rewrite setup.py.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants