Giter Site home page Giter Site logo

Unable to install on jetson-tx2 about pcl.py HOT 6 CLOSED

cmpute avatar cmpute commented on August 23, 2024
Unable to install on jetson-tx2

from pcl.py.

Comments (6)

cmpute avatar cmpute commented on August 23, 2024

Have you ever installed PCL (the C++ library) on the machine? Unfortunately PyPCL now is not standalone library, it depends on the C++ version of PCL

from pcl.py.

Kildebo avatar Kildebo commented on August 23, 2024

Hi,
I get the same error even with PCL installed. Does it need to be referenced somehow?
Do you have any advice?
Thanks in advance

from pcl.py.

cmpute avatar cmpute commented on August 23, 2024

Hi,
I get the same error even with PCL installed. Does it need to be referenced somehow?
Do you have any advice?
Thanks in advance

You mean error showing that cannot find PCLConfig.cmake? I guess this is due to that the path for PCL is not setup correctly. Did you install pcl using apt?

from pcl.py.

bfouts-kindred avatar bfouts-kindred commented on August 23, 2024

I was eventually able to get this installed using PCL1.8

I had to patch PyPCL to respect my header location:
rev 1dd6acc

index 72d91a8..b71a1b7 100644
--- a/pypcl_build.py
+++ b/pypcl_build.py
@@ -16,7 +16,7 @@ ffibuilder.cdef(pypcl_header_source)
 #       To compile on another platform they need to be changed.
 def pcl_header():
     for version in ["1.7", "1.8"]:
-        pcl_header = "/usr/include/pcl-{}".format(version)
+        pcl_header = "/usr/local/include/pcl-{}".format(version)
         if os.path.exists(pcl_header):
             return pcl_header
     raise Exception("No valid PCL header found")

I also had to patch python-pcl at rev: d8b1fea

index cba5eb3..085a6e2 100644
--- a/setup.py
+++ b/setup.py
@@ -146,7 +146,7 @@ if platform.system() == "Windows":
             break
     else:
         # Try to find PCL. XXX we should only do this when trying to build or install.
-        PCL_SUPPORTED = ["-1.8", "-1.7", "-1.6", ""]    # in order of preference
+        PCL_SUPPORTED = ["-1.7", "-1.6", ""]    # in order of preference

         for pcl_version in PCL_SUPPORTED:
             if subprocess.call(['.\\pkg-config\\pkg-config.exe', 'pcl_common%s' % pcl_version]) == 0:
@@ -550,6 +550,7 @@ else:
     # "-I/usr/include/openni"
     # /usr/include/ni
     ext_args['include_dirs'].append('/usr/include/ni')
+    ext_args['include_dirs'].append('/usr/local/include/vtk-7.1')
     # ext_args['library_dirs'].append()
     # ext_args['libraries'].append()

@@ -614,22 +615,22 @@ else:

     if pcl_version == '-1.6':
         module = [Extension("pcl._pcl", ["pcl/_pcl.pyx", "pcl/minipcl.cpp", "pcl/ProjectInliers.cpp"], language="c++", **ext_args),
-                  # Extension("pcl.pcl_visualization", ["pcl/pcl_visualization.pyx"], language="c++", **ext_args),
+                  Extension("pcl.pcl_visualization", ["pcl/pcl_visualization.pyx"], language="c++", **ext_args),
                   # Extension("pcl.pcl_grabber", ["pcl/pcl_grabber.pyx", "pcl/grabber_callback.cpp"], language="c++", **ext_args),
                   # debug
                   # gdb_debug=True,
                   ]
     elif pcl_version == '-1.7':
         module = [Extension("pcl._pcl", ["pcl/_pcl_172.pyx", "pcl/minipcl.cpp", "pcl/ProjectInliers.cpp"], language="c++", **ext_args),
-                  # Extension("pcl.pcl_visualization", ["pcl/pcl_visualization.pyx"], language="c++", **ext_args),
+                  Extension("pcl.pcl_visualization", ["pcl/pcl_visualization.pyx"], language="c++", **ext_args),
                   # Extension("pcl.pcl_grabber", ["pcl/pcl_grabber.pyx", "pcl/grabber_callback.cpp"], language="c++", **ext_args),
                   # debug
                   # gdb_debug=True,
:q
uu                   ]
     elif pcl_version == '-1.8':
         module = [Extension("pcl._pcl", ["pcl/_pcl_180.pyx", "pcl/minipcl.cpp", "pcl/ProjectInliers.cpp"], language="c++", **ext_args),
-                  # Extension("pcl.pcl_visualization", ["pcl/pcl_visualization.pyx"], language="c++", **ext_args),
-                  # Extension("pcl.pcl_grabber", ["pcl/pcl_grabber.pyx", "pcl/grabber_callback.cpp"], language="c++", **ext_args),
+                  Extension("pcl.pcl_visualization", ["pcl/pcl_visualization.pyx"], language="c++", **ext_args),
+                  #Extension("pcl.pcl_grabber", ["pcl/pcl_grabber.pyx", "pcl/grabber_callback.cpp"], language="c++", **ext_args),
                   # debug
                   # gdb_debug=True,
                   ]

from pcl.py.

cmpute avatar cmpute commented on August 23, 2024

@bfouts-kindred I didn't find the corresponding codes in my source. Where does pypcl_build.py come from? Currently the location of PCL is determined by CMake modules, so as long as your PCL installation is able to be discovered by CMake, then it should be fine to build

from pcl.py.

cmpute avatar cmpute commented on August 23, 2024

The old version of pypcl has been deprecated, so this issue is going to be closed.

from pcl.py.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.