Open mikeroberts3000 opened 7 years ago
I have confirmed that that this same error persists when building (the latest master on GitHub) python-pcl against PCL 1.8 and 1.7.2. I built PCL 1.8 and 1.7.2 from source, and I get the same error when attempting to build python-pcl. So I think this is an issue with the latest master branch of python-pcl.
It is unknown whether it is the cause or not, May I ask you to raise the version of gcc compiler once? (Since it is possible that libraries may be affected by running OSX gcc default of 4.2)
I ended up finding an astonishing workaround for this issue.
When I run python setup.py install
, the setup script prints out a few gcc and g++ commands (see above). If you can believe it, the workaround for this problem was to take each gcc and g++ command, copy it to the command line, and run it manually. And then to run python setup.py install
again. Running the setup script again will not call gcc or g++, but will copy the relevant files to the Python site-packages folder.
So, the build environment is somehow different when invoking gcc and g++ from setup.py, as opposed to invoking gcc and g++ manually from the command line.
There are several open issues where other people have similar errors (https://github.com/strawlab/python-pcl/issues/63, https://github.com/strawlab/python-pcl/issues/101, https://github.com/strawlab/python-pcl/issues/119), so I don't think this issue is due to a local build configuration problem on my machine.
I have the same issue but the workaround as suggested by mikeroberts3000 does not work for me, the same issue persists. Any new update on this issue or any idea how this can be solved?
system: Mac OS 10.13.1 python: 3.5.2 (anaconda) cython: 0.25.2 pcl: 1.8.1 (current version from python-pcl github)
I made it work. What helped in my case was what was suggested in #50, i.e. to force build python-pcl using libc++ rather then libstdc++ since the pcl itself was built using libc++.
@bednarikjan's comment was useful for me - I commented out the extra compile args in setup.py that referenced c++11
Hello there,
I'm trying to install python-pcl on macOS 10.12.5. I've successfully installed PCL 1.8.1 using Brew with the following command,
brew install pcl
. I can confirm that PCL has been installed successfully, by using the commandbrew info pcl
, which prints the following output:I then apply the fix suggested at https://github.com/strawlab/python-pcl/issues/97, removing "pcl_2d" from the pkgconfig/pcl_features-1.8.pc file installed by Brew.
I then build (the latest master branch on GitHub) python-pcl using
make
, followed bypython setup.py install
. I'm including the full build output frommake
andpython setup.py install
at the bottom of this post in case it's relevant. At this point, I should be able toimport pcl
from within Python. But when I attempt to do this, I get the following error:I'm aware that building the python-pcl bindings to target PCL 1.8.1 is not an officially supported scenario. But it's not possible to get older versions of PCL using Brew. It would be ideal if python-pcl worked out of the box with the default version of PCL available on Brew. For anyone reading this, does anything jump out at you as an easy fix?
Full build output when building python-pcl using
make
:Full build output, building python-pcl using
python setup.py install
.