heremaps / pptk

The Point Processing Toolkit (pptk) is a Python package for visualizing and processing 2-d/3-d point clouds.
https://heremaps.github.io/pptk
MIT License
610 stars 112 forks source link

oneAPI tbb 2021.6.0 compatibility issue... #58

Open jiapei-nexera opened 2 years ago

jiapei-nexera commented 2 years ago
In file included from ......pptk/pptk/kdtree/src/kdtree.h:254,
                 from ......pptk/pptk/kdtree/kdtree_wrapper.cpp:3:
......pptk/pptk/kdtree/src/kdtree-impl.h:631:36: error: expected class-name before ‘{’ token
  631 | class BuildTask : public tbb::task {
      |                                    ^
......pptk/pptk/kdtree/src/kdtree-impl.h:650:8: error: ‘task’ in namespace ‘tbb’ does not name a type
  650 |   tbb::task* execute() {
      |        ^~~~
In file included from /opt/intel/oneapi/tbb/latest/include/tbb/task.h:17,
                 from ......pptk/pptk/kdtree/src/kdtree-impl.h:18,
                 from ......pptk/pptk/kdtree/src/kdtree.h:254,
                 from ......pptk/pptk/kdtree/kdtree_wrapper.cpp:3:
/opt/intel/oneapi/tbb/latest/include/tbb/../oneapi/tbb/task.h:26:11: note: ‘tbb::v1::task’ declared here
   26 | namespace task {
      |           ^~~~
In file included from ......pptk/pptk/kdtree/src/kdtree.h:254,
                 from ......pptk/pptk/kdtree/kdtree_wrapper.cpp:3:
......pptk/pptk/kdtree/src/kdtree-impl.h: In function ‘void pointkd::impl::BuildTree(pointkd::Node<T>*&, pointkd::Box<T, dim>&, std::vector<_Tp>&, std::vector<int>&, std::vector<int>&, const T*, int, const pointkd::BuildParams&)’:
......pptk/pptk/kdtree/src/kdtree-impl.h:792:26: error: ‘allocate_root’ is not a member of ‘tbb::v1::task’
  792 |         *new (tbb::task::allocate_root())
      |                          ^~~~~~~~~~~~~
......pptk/pptk/kdtree/src/kdtree-impl.h:795:16: error: ‘spawn_root_and_wait’ is not a member of ‘tbb::v1::task’
  795 |     tbb::task::spawn_root_and_wait(root_task);
      |                ^~~~~~~~~~~~~~~~~~~
In file included from ......pptk/pptk/processing/estimate_normals/../../kdtree/src/kdtree.h:254,
                 from ......pptk/pptk/processing/estimate_normals/estimate_normals.cpp:9:
......pptk/pptk/processing/estimate_normals/../../kdtree/src/kdtree-impl.h:631:36: error: expected class-name before ‘{’ token
  631 | class BuildTask : public tbb::task {
      |                                    ^
......pptk/pptk/processing/estimate_normals/../../kdtree/src/kdtree-impl.h:650:8: error: ‘task’ in namespace ‘tbb’ does not name a type
  650 |   tbb::task* execute() {
      |        ^~~~
In file included from /opt/intel/oneapi/tbb/latest/include/tbb/task.h:17,
                 from ......pptk/pptk/processing/estimate_normals/../../kdtree/src/kdtree-impl.h:18,
                 from ......pptk/pptk/processing/estimate_normals/../../kdtree/src/kdtree.h:254,
                 from ......pptk/pptk/processing/estimate_normals/estimate_normals.cpp:9:
/opt/intel/oneapi/tbb/latest/include/tbb/../oneapi/tbb/task.h:26:11: note: ‘tbb::v1::task’ declared here
   26 | namespace task {
      |           ^~~~
In file included from ......pptk/pptk/processing/estimate_normals/../../kdtree/src/kdtree.h:254,
                 from ......pptk/pptk/processing/estimate_normals/estimate_normals.cpp:9:
......pptk/pptk/processing/estimate_normals/../../kdtree/src/kdtree-impl.h: In function ‘void pointkd::impl::BuildTree(pointkd::Node<T>*&, pointkd::Box<T, dim>&, std::vector<_Tp>&, std::vector<int>&, std::vector<int>&, const T*, int, const pointkd::BuildParams&)’:
......pptk/pptk/processing/estimate_normals/../../kdtree/src/kdtree-impl.h:792:26: error: ‘allocate_root’ is not a member of ‘tbb::v1::task’
  792 |         *new (tbb::task::allocate_root())
      |                          ^~~~~~~~~~~~~
......pptk/pptk/processing/estimate_normals/../../kdtree/src/kdtree-impl.h:795:16: error: ‘spawn_root_and_wait’ is not a member of ‘tbb::v1::task’
  795 |     tbb::task::spawn_root_and_wait(root_task);
      |                ^~~~~~~~~~~~~~~~~~~
......pptk/pptk/processing/estimate_normals/estimate_normals.cpp: In function ‘void estimate_normals(std::vector<_Tp>*, std::vector<_Tp>*, std::vector<int>*, const std::vector<_Tp>&, std::size_t, T, const std::vector<int>*, int, bool, int)’:
......pptk/pptk/processing/estimate_normals/estimate_normals.cpp:51:8: error: ‘task_scheduler_init’ is not a member of ‘tbb’
   51 |   tbb::task_scheduler_init(1);  // use just 1 thread for k-d tree queries