Advertisement
Guest User

Untitled

a guest
Jul 27th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.16 KB | None | 0 0
  1. /opt/clion-2018.1.2/bin/cmake/bin/cmake --build /home/jakub/MartyCam/build/clion-debug --target MartyCam_exe -- -j 7
  2. Scanning dependencies of target MartyCam_exe
  3. [ 4%] Building CXX object CMakeFiles/MartyCam_exe.dir/martycam.cpp.o
  4. /home/jakub/MartyCam/martycam.cpp: In member function ‘void MartyCam::createCaptureThread(int, cv::Size&, int, const string&, hpx::threads::executors::pool_executor)’:
  5. /home/jakub/MartyCam/martycam.cpp:112:25: error: capture of non-variable ‘MartyCam::captureThread’
  6. hpx::async<>(exec, [captureThread]() { this->captureThread->run(); });
  7. ^
  8. In file included from /home/jakub/MartyCam/martycam.cpp:5:0:
  9. /home/jakub/MartyCam/martycam.h:60:28: note: ‘CaptureThread* MartyCam::captureThread’ declared here
  10. CaptureThread *captureThread;
  11. ^
  12. /home/jakub/MartyCam/martycam.cpp: In lambda function:
  13. /home/jakub/MartyCam/martycam.cpp:112:44: error: ‘this’ was not captured for this lambda function
  14. hpx::async<>(exec, [captureThread]() { this->captureThread->run(); });
  15. ^
  16. /home/jakub/MartyCam/martycam.cpp: In member function ‘void MartyCam::createCaptureThread(int, cv::Size&, int, const string&, hpx::threads::executors::pool_executor)’:
  17. /home/jakub/MartyCam/martycam.cpp:112:73: error: no matching function for call to ‘async(hpx::threads::executors::pool_executor&, MartyCam::createCaptureThread(int, cv::Size&, int, const string&, hpx::threads::executors::pool_executor)::<lambda()>)’
  18. hpx::async<>(exec, [captureThread]() { this->captureThread->run(); });
  19. ^
  20. In file included from /home/jakub/hpx_repo/hpx/async_launch_policy_dispatch.hpp:10:0,
  21. from /home/jakub/hpx_repo/hpx/parallel/executors/parallel_executor.hpp:12,
  22. from /home/jakub/hpx_repo/hpx/lcos/dataflow.hpp:43,
  23. from /home/jakub/hpx_repo/hpx/parallel/executors/execution.hpp:16,
  24. from /home/jakub/hpx_repo/hpx/lcos/local/packaged_continuation.hpp:27,
  25. from /home/jakub/hpx_repo/hpx/lcos/future.hpp:1682,
  26. from /home/jakub/MartyCam/martycam.cpp:2:
  27. /home/jakub/hpx_repo/hpx/lcos/async_fwd.hpp:38:10: note: candidate: template<class Action, class F, class ... Ts> decltype (hpx::detail::async_action_dispatch<Action, typename hpx::util::decay<Us>::type>::call(forward<F>(f), (forward<Ts>)(hpx::async::ts)...)) hpx::async(F&&, Ts&& ...)
  28. auto async(F && f, Ts &&... ts)
  29. ^
  30. /home/jakub/hpx_repo/hpx/lcos/async_fwd.hpp:38:10: note: template argument deduction/substitution failed:
  31. /home/jakub/MartyCam/martycam.cpp:112:73: note: couldn't deduce template parameter ‘Action’
  32. hpx::async<>(exec, [captureThread]() { this->captureThread->run(); });
  33. ^
  34. In file included from /home/jakub/hpx_repo/hpx/async_launch_policy_dispatch.hpp:10:0,
  35. from /home/jakub/hpx_repo/hpx/parallel/executors/parallel_executor.hpp:12,
  36. from /home/jakub/hpx_repo/hpx/lcos/dataflow.hpp:43,
  37. from /home/jakub/hpx_repo/hpx/parallel/executors/execution.hpp:16,
  38. from /home/jakub/hpx_repo/hpx/lcos/local/packaged_continuation.hpp:27,
  39. from /home/jakub/hpx_repo/hpx/lcos/future.hpp:1682,
  40. from /home/jakub/MartyCam/martycam.cpp:2:
  41. /home/jakub/hpx_repo/hpx/lcos/async_fwd.hpp:46:10: note: candidate: template<class F, class ... Ts> decltype (hpx::detail::async_dispatch<typename hpx::util::decay<Action>::type>::call(forward<F>(f), (forward<Ts>)(hpx::async::ts)...)) hpx::async(F&&, Ts&& ...)
  42. auto async(F&& f, Ts&&... ts)
  43. ^
  44. /home/jakub/hpx_repo/hpx/lcos/async_fwd.hpp:46:10: note: template argument deduction/substitution failed:
  45. /home/jakub/hpx_repo/hpx/lcos/async_fwd.hpp: In substitution of ‘template<class F, class ... Ts> decltype (hpx::detail::async_dispatch<typename hpx::util::decay<Action>::type>::call(forward<F>(f), (forward<Ts>)(hpx::async::ts)...)) hpx::async(F&&, Ts&& ...) [with F = hpx::threads::executors::pool_executor&; Ts = {MartyCam::createCaptureThread(int, cv::Size&, int, const string&, hpx::threads::executors::pool_executor)::<lambda()>}]’:
  46. /home/jakub/MartyCam/martycam.cpp:112:73: required from here
  47. /home/jakub/hpx_repo/hpx/lcos/async_fwd.hpp:49:20: error: incomplete type ‘hpx::detail::async_dispatch<hpx::threads::executors::pool_executor, void>’ used in nested name specifier
  48. >::call(std::forward<F>(f), std::forward<Ts>(ts)...)
  49. ^
  50. CMakeFiles/MartyCam_exe.dir/build.make:172: recipe for target 'CMakeFiles/MartyCam_exe.dir/martycam.cpp.o' failed
  51. make[3]: *** [CMakeFiles/MartyCam_exe.dir/martycam.cpp.o] Error 1
  52. CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/MartyCam_exe.dir/all' failed
  53. make[2]: *** [CMakeFiles/MartyCam_exe.dir/all] Error 2
  54. CMakeFiles/Makefile2:79: recipe for target 'CMakeFiles/MartyCam_exe.dir/rule' failed
  55. make[1]: *** [CMakeFiles/MartyCam_exe.dir/rule] Error 2
  56. Makefile:164: recipe for target 'MartyCam_exe' failed
  57. make: *** [MartyCam_exe] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement