-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setup.py install 失败 #1
Comments
您好! 首先请先确定您已经安装了 看这个报错,是缺少libproj.so这个库 首先检查一下在
如果没有,尝试
如果还有问题请在issue里更新, 我会及时跟进 |
感谢您的回复,解决完libproj.so这个问题后,出现了/usr/bin/ld: cannot find -lvtkproj4这样的问题 Installed /opt/conda/lib/python3.7/site-packages/segmentation_ext-0.0.1-py3.7-linux-x86_64.egg 但是 在导入模块的时候出现以下问题:
请问是什么原因呢 |
这个是由于编译segmentation ext的时候和运行calibration.py的时候使用了不一致的python环境(即使您这边activate的是同样的环境, 由于conda的某些配置, pybind11找到的也是不一致的环境, 这个问题在python3.x的环境下最有可能发生) 目前这个问题最快的解决办法是切换到python2.7, 在2.7下编译segmentaion_ext并在2.7下运行calibraiton 在python3下的解决办法晚些再恢复您,因为我这边自己的python3都是可以正常运行的,需要找一个环境来复现这个bug |
您好, 找到问题了,这是一个由您本机的环境,PCL,Boost, conda,以及pybind11耦合在一起导致的及其复杂的bug.... 问题的表现就是在python3环境下编译segmentation_ext的时候, 无法找到正确的python解释器版本. 如果您想使用python3的话, 目前一个不太优雅的解决办法:
它会输出一个路径, 类似
比如 然后保存.
编译并安装segmentation_ext插件. 如果仍然使用python2.7, 则不需要做更改. |
感谢感谢,终于调通了 |
Another a little bit hacky solution:
Reference: koide3/fast_gicp#66 (comment) |
很棒的工作!
在本地配置的时候,运行python setup.py install出现以下问题:
-- looking for PCL_COMMON
-- looking for PCL_KDTREE
-- looking for PCL_OCTREE
-- looking for PCL_SEARCH
-- looking for PCL_IO
-- looking for PCL_SAMPLE_CONSENSUS
-- looking for PCL_FILTERS
-- looking for PCL_GEOMETRY
-- looking for PCL_FEATURES
-- looking for PCL_SEGMENTATION
-- looking for PCL_SURFACE
-- looking for PCL_REGISTRATION
-- looking for PCL_RECOGNITION
-- looking for PCL_KEYPOINTS
-- looking for PCL_VISUALIZATION
-- looking for PCL_PEOPLE
-- looking for PCL_OUTOFCORE
-- looking for PCL_TRACKING
-- looking for PCL_APPS
-- Could NOT find PCL_APPS (missing: PCL_APPS_LIBRARY)
-- looking for PCL_MODELER
-- looking for PCL_IN_HAND_SCANNER
-- looking for PCL_POINT_CLOUD_EDITOR
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ACSC/segmentation/build/temp.linux-x86_64-3.7
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libproj.so', needed by '../lib.linux-x86_64-3.7/segmentation_ext.so'. Stop.
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/segmentation_ext.dir/all' failed
make[1]: *** [CMakeFiles/segmentation_ext.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
-- Could NOT find PCL_APPS (missing: PCL_APPS_LIBRARY) 这个具体是啥原因呢
The text was updated successfully, but these errors were encountered: