質問編集履歴
3
環境の括弧の位置が紛らわしいので変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,13 +16,13 @@
|
|
16
16
|
|
17
17
|
macOSX: 10.14.1
|
18
18
|
|
19
|
-
Python: 3.6.1
|
19
|
+
Python(pyenv): 3.6.1
|
20
20
|
|
21
|
-
pyenv: stable 1.2.8
|
21
|
+
pyenv(brew): stable 1.2.8
|
22
22
|
|
23
23
|
g++: Apple LLVM version 10.0.0 (clang-1000.10.44.4)
|
24
24
|
|
25
|
-
swig: stable 3.0.12
|
25
|
+
swig(brew): stable 3.0.12
|
26
26
|
|
27
27
|
|
28
28
|
|
2
自分と同じように困っている、誰かの検索に引っかかるようにエラー内容の一部を記載。
test
CHANGED
File without changes
|
test
CHANGED
@@ -52,7 +52,9 @@
|
|
52
52
|
|
53
53
|
```
|
54
54
|
|
55
|
-
ここまで実行すると、
|
55
|
+
ここまで実行すると、`Undefined symbols for architecture x86_64`というようなエラーが発生してしまいました。
|
56
|
+
|
57
|
+
以下に全文を記載します。
|
56
58
|
|
57
59
|
[エラー内容(gist)](https://gist.github.com/tpywao/d701cec1679b85f33c1017265ef3b857)
|
58
60
|
|
1
11/26更新(やったことに書き忘れていたswigコマンドとexample.oのコンパイルを追記)
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,9 +42,11 @@
|
|
42
42
|
|
43
43
|
$ cd Examples/python/class
|
44
44
|
|
45
|
+
$ swig -python -c++ example.i
|
46
|
+
|
47
|
+
$ g++ -O2 -fPIC -c example.cxx
|
48
|
+
|
45
49
|
$ g++ -O2 -fPIC -c example_wrap.cxx $(python-config --includes)
|
46
|
-
|
47
|
-
## この時点で既にexample.oは出来ています。
|
48
50
|
|
49
51
|
$ g++ -shared example_wrap.o example.o -o _example.so
|
50
52
|
|