質問編集履歴

3

誤字修正

2021/01/26 16:36

投稿

Tarrow1199
Tarrow1199

スコア1

test CHANGED
File without changes
test CHANGED
@@ -52,66 +52,4 @@
52
52
 
53
53
 
54
54
 
55
-
56
-
57
- CMake自体は開始されたのですががエラーが出て終了してしまいました.
58
-
59
- JetsonのPyenv環境でのOpenCVビルドに成功した方がいらっしゃいましたら回答をお願いいたします.
60
-
61
- ###エラーコード
62
-
63
- ```ここに言語を入力
64
-
65
- [ 84%] Building CXX object samples/cpp/CMakeFiles/example_cpp_videocapture_gstreamer_pipeline.dir/videocapture_gstreamer_pipeline.cpp.o
66
-
67
- In file included from /home/satolabo/cv2in/build/modules/python_bindings_generator/pyopencv_custom_headers.h:6:0,
68
-
69
- from /home/satolabo/cv2in/opencv-3.4.11/modules/python/src2/cv2.cpp:1854:
70
-
71
- /home/satolabo/cv2in/opencv_contrib-3.4.11/modules/phase_unwrapping/misc/python/pyopencv_phase_unwrapping.hpp:2:13: error: ‘phase_unwrapping’ in namespace ‘cv’ does not name a type
72
-
73
- typedef cv::phase_unwrapping::HistogramPhaseUnwrapping::Params HistogramPhaseUnwrapping_Params;
74
-
75
- ^~~~~~~~~~~~~~~~
76
-
77
- In file included from /home/satolabo/cv2in/build/modules/python_bindings_generator/pyopencv_custom_headers.h:7:0,
78
-
79
- from /home/satolabo/cv2in/opencv-3.4.11/modules/python/src2/cv2.cpp:1854:
80
-
81
- /home/satolabo/cv2in/opencv_contrib-3.4.11/modules/surface_matching/misc/python/pyopencv_ppf_match_3d.hpp:3:40: error: ‘ppf_match_3d’ was not declared in this scope
82
-
83
- template<> struct pyopencvVecConverter<ppf_match_3d::Pose3DPtr >
84
-
85
- ^~~~~~~~~~~~
86
-
87
- /home/satolabo/cv2in/opencv_contrib-3.4.11/modules/surface_matching/misc/python/pyopencv_ppf_match_3d.hpp:3:40: note: suggested alternative: ‘rpmatch’
88
-
89
- template<> struct pyopencvVecConverter<ppf_match_3d::Pose3DPtr >
90
-
91
- ^~~~~~~~~~~~
92
-
93
- rpmatch
94
-
95
- /home/satolabo/cv2in/opencv_contrib-3.4.11/modules/surface_matching/misc/python/pyopencv_ppf_match_3d.hpp:3:64: error: template argument 1 is invalid
96
-
97
- template<> struct pyopencvVecConverter<ppf_match_3d::Pose3DPtr >
98
-
99
- ^
100
-
101
- /home/satolabo/cv2in/opencv_contrib-3.4.11/modules/surface_matching/misc/python/pyopencv_ppf_match_3d.hpp:16:21: error: ‘ppf_match_3d’ was not declared in this scope
102
-
103
- typedef std::vector<ppf_match_3d::Pose3DPtr> vector_Pose3DPtr;
104
-
105
- ^~~~~~~~~~~~
106
-
107
- /home/satolabo/cv2in/opencv_contrib-3.4.11/modules/surface_matching/misc/python/pyopencv_ppf_match_3d.hpp:16:21: note: suggested alternative: ‘rpmatch’
108
-
109
- typedef std::vector<ppf_match_3d::Pose3DPtr> vector_Pose3DPtr;
110
-
111
- ^~~~~~~~~~~~
112
-
113
- rpmatch
114
-
115
-
116
-
117
55
  ```

2

エラー追加

2021/01/26 16:36

投稿

Tarrow1199
Tarrow1199

スコア1

test CHANGED
File without changes
test CHANGED
@@ -57,3 +57,61 @@
57
57
  CMake自体は開始されたのですががエラーが出て終了してしまいました.
58
58
 
59
59
  JetsonのPyenv環境でのOpenCVビルドに成功した方がいらっしゃいましたら回答をお願いいたします.
60
+
61
+ ###エラーコード
62
+
63
+ ```ここに言語を入力
64
+
65
+ [ 84%] Building CXX object samples/cpp/CMakeFiles/example_cpp_videocapture_gstreamer_pipeline.dir/videocapture_gstreamer_pipeline.cpp.o
66
+
67
+ In file included from /home/satolabo/cv2in/build/modules/python_bindings_generator/pyopencv_custom_headers.h:6:0,
68
+
69
+ from /home/satolabo/cv2in/opencv-3.4.11/modules/python/src2/cv2.cpp:1854:
70
+
71
+ /home/satolabo/cv2in/opencv_contrib-3.4.11/modules/phase_unwrapping/misc/python/pyopencv_phase_unwrapping.hpp:2:13: error: ‘phase_unwrapping’ in namespace ‘cv’ does not name a type
72
+
73
+ typedef cv::phase_unwrapping::HistogramPhaseUnwrapping::Params HistogramPhaseUnwrapping_Params;
74
+
75
+ ^~~~~~~~~~~~~~~~
76
+
77
+ In file included from /home/satolabo/cv2in/build/modules/python_bindings_generator/pyopencv_custom_headers.h:7:0,
78
+
79
+ from /home/satolabo/cv2in/opencv-3.4.11/modules/python/src2/cv2.cpp:1854:
80
+
81
+ /home/satolabo/cv2in/opencv_contrib-3.4.11/modules/surface_matching/misc/python/pyopencv_ppf_match_3d.hpp:3:40: error: ‘ppf_match_3d’ was not declared in this scope
82
+
83
+ template<> struct pyopencvVecConverter<ppf_match_3d::Pose3DPtr >
84
+
85
+ ^~~~~~~~~~~~
86
+
87
+ /home/satolabo/cv2in/opencv_contrib-3.4.11/modules/surface_matching/misc/python/pyopencv_ppf_match_3d.hpp:3:40: note: suggested alternative: ‘rpmatch’
88
+
89
+ template<> struct pyopencvVecConverter<ppf_match_3d::Pose3DPtr >
90
+
91
+ ^~~~~~~~~~~~
92
+
93
+ rpmatch
94
+
95
+ /home/satolabo/cv2in/opencv_contrib-3.4.11/modules/surface_matching/misc/python/pyopencv_ppf_match_3d.hpp:3:64: error: template argument 1 is invalid
96
+
97
+ template<> struct pyopencvVecConverter<ppf_match_3d::Pose3DPtr >
98
+
99
+ ^
100
+
101
+ /home/satolabo/cv2in/opencv_contrib-3.4.11/modules/surface_matching/misc/python/pyopencv_ppf_match_3d.hpp:16:21: error: ‘ppf_match_3d’ was not declared in this scope
102
+
103
+ typedef std::vector<ppf_match_3d::Pose3DPtr> vector_Pose3DPtr;
104
+
105
+ ^~~~~~~~~~~~
106
+
107
+ /home/satolabo/cv2in/opencv_contrib-3.4.11/modules/surface_matching/misc/python/pyopencv_ppf_match_3d.hpp:16:21: note: suggested alternative: ‘rpmatch’
108
+
109
+ typedef std::vector<ppf_match_3d::Pose3DPtr> vector_Pose3DPtr;
110
+
111
+ ^~~~~~~~~~~~
112
+
113
+ rpmatch
114
+
115
+
116
+
117
+ ```

1

オプションの記入間違い

2020/12/11 05:57

投稿

Tarrow1199
Tarrow1199

スコア1

test CHANGED
File without changes
test CHANGED
@@ -10,11 +10,11 @@
10
10
 
11
11
 
12
12
 
13
- cmake /home/xavier/cv2/opencv-3.4.12 \
13
+ cmake ${PWD}/../opencv-3.4.11 \
14
14
 
15
15
  -DCMAKE_BUILD_TYPE=RELEASE \
16
16
 
17
- -DCMAKE_INSTALL_PREFIX=/home/xavier/.pyenv/versions/3.6.9/bin/python3.6 \
17
+ -DCMAKE_INSTALL_PREFIX=${HOME}/.pyenv/versions/3.6.9/lib/python3.6/site-packages \
18
18
 
19
19
  -DINSTALL_C_EXAMPLES=OFF \
20
20
 
@@ -28,27 +28,29 @@
28
28
 
29
29
  -DBUILD_EXAMPLES=ON \
30
30
 
31
- -DWITH_V4L=OFF \
31
+ -DWITH_V4L=ON \
32
32
 
33
- -DPYTHON_EXECUTABLE=/home/xavier/.pyenv/versions/3.6.9/bin/python3.6 \
33
+ -DPYTHON_EXECUTABLE=${HOME}/.pyenv/versions/3.6.9/bin/python \
34
34
 
35
- -DPYTHON_LIBRARY=/home/xavier/.pyenv/versions/3.6.9/lib/libpython3.6m.so \
35
+ -DPYTHON_LIBRARY=${HOME}/.pyenv/versions/3.6.9/lib/libpython3.6m.so \
36
36
 
37
- -DPYTHON_INCLUDE_DIR=/home/xavier/.pyenv/versions/3.6.9/include/python3.6m \
37
+ -DPYTHON_INCLUDE_DIR=${HOME}/.pyenv/versions/3.6.9/include/python3.6m \
38
38
 
39
- -DPYTHON_INCLUDE_DIRS=/home/xavier/.pyenv/versions/3.6.9/include/python3.6m \
39
+ -DPYTHON_INCLUDE_DIRS=${HOME}/.pyenv/versions/3.6.9/include/python3.6m \
40
40
 
41
- -DPYTHON_INCLUDE_DIRS2=/home/xavier/.pyenv/versions/3.6.9/include/python3.6m \
41
+ -DPYTHON_INCLUDE_DIRS2=${HOME}/.pyenv/versions/3.6.9/include/python3.6m \
42
42
 
43
- -DINCLUDE_DIRS=/home/xavier/.pyenv/versions/3.6.5/include/python3.6m \
43
+ -DINCLUDE_DIRS=${HOME}/.pyenv/versions/3.6.5/include/python3.6m \
44
44
 
45
- -DINCLUDE_DIRS2=/home/xavier/.pyenv/versions/3.6.5/include/python3.6m \
45
+ -DINCLUDE_DIRS2=${HOME}/.pyenv/versions/3.6.5/include/python3.6m \
46
46
 
47
- -DPYTHON_PACKAGES_PATH=/home/xavier/.pyenv/versions/3.6.9/lib/python3.6/site-packages \
47
+ -DPYTHON_PACKAGES_PATH=${HOME}/.pyenv/versions/3.6.9/lib/python3.6/site-packages \
48
48
 
49
- -DPYTHON_NUMPY_INCLUDE_DIR=/home/xavier/.pyenv/versions/3.6.9/lib/python3.6/site-packages/numpy/core/include \
49
+ -DPYTHON_NUMPY_INCLUDE_DIR=${HOME}/.pyenv/versions/3.6.9/lib/python3.6/site-packages/numpy/core/include \
50
50
 
51
- -DOPENCV_EXTRA_MODULES_PATH=/home/xavier/cv2/opencv_contrib-3.4.12/modules
51
+ -DOPENCV_EXTRA_MODULES_PATH=${PWD}/../opencv_contrib-3.4.11/modules
52
+
53
+
52
54
 
53
55
 
54
56