質問編集履歴
5
追記を削除し全面変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -9,28 +9,6 @@
|
|
9
9
|
まずはexamplesを動かすことを目標としています。
|
10
10
|
|
11
11
|
[https://github.com/vlc-qt/examples](https://github.com/vlc-qt/examples)
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
###発生している問題・エラーメッセージ
|
16
|
-
|
17
|
-
アプリケーション起動時に以下のエラーが出ます。
|
18
|
-
|
19
|
-
```
|
20
|
-
|
21
|
-
Starting /Users/user/Downloads/examples/build-simple-player-Desktop_Qt_5_7_0_clang_64bit-Debug/src/simple-player.app/Contents/MacOS/simple-player...
|
22
|
-
|
23
|
-
dyld: Library not loaded: @rpath/VLCQtCore.framework/Versions/1.0.1/VLCQtCore
|
24
|
-
|
25
|
-
Referenced from: /Users/user/Downloads/examples/build-simple-player-Desktop_Qt_5_7_0_clang_64bit-Debug/src/simple-player.app/Contents/MacOS/simple-player
|
26
|
-
|
27
|
-
Reason: image not found
|
28
|
-
|
29
|
-
The program has unexpectedly finished.
|
30
|
-
|
31
|
-
/Users/user/Downloads/examples/build-simple-player-Desktop_Qt_5_7_0_clang_64bit-Debug/src/simple-player.app/Contents/MacOS/simple-player crashed.
|
32
|
-
|
33
|
-
```
|
34
12
|
|
35
13
|
|
36
14
|
|
@@ -90,19 +68,25 @@
|
|
90
68
|
|
91
69
|
```
|
92
70
|
|
93
|
-
LIBS += -F /Users/user/Qt/VLC-Qt/lib
|
71
|
+
LIBS += -F /Users/user/Qt/VLC-Qt/lib -framework VLCQtCore -framework VLCQtWidgets
|
94
72
|
|
95
|
-
-framework VLCQtCore \
|
96
|
-
|
97
|
-
|
73
|
+
LIBS += -L/Users/user/Qt/VLC-Qt/lib -lVLCQtCore -lVLCQtWidgets
|
98
|
-
|
99
|
-
-framework VLCQtQml
|
100
74
|
|
101
75
|
|
102
76
|
|
103
77
|
INCLUDEPATH += /Users/user/Qt/VLC-Qt/include
|
104
78
|
|
105
79
|
```
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
次にビルド手順です。
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
1度目のビルドでは`-L`の`LIBS`をコメントアウトしてビルド。
|
88
|
+
|
89
|
+
2度目のビルドでは`-L`の`LIBS`をコメントをはずし、`-F`の`LIBS`をコメントアウトしてビルドするとサンプルが動作しました。
|
106
90
|
|
107
91
|
|
108
92
|
|
@@ -114,28 +98,26 @@
|
|
114
98
|
|
115
99
|
|
116
100
|
|
117
|
-
###
|
101
|
+
###発生している問題・エラーメッセージ
|
102
|
+
|
103
|
+
2度もビルドしないと起動しないのはおかしいのでなんとかしたいです。
|
118
104
|
|
119
105
|
|
120
106
|
|
121
|
-
|
107
|
+
1度目の実行時(1度目のビルド後)
|
122
108
|
|
123
|
-
|
109
|
+
```
|
124
110
|
|
125
|
-
|
111
|
+
dyld: Library not loaded: @rpath/VLCQtCore.framework/Versions/1.1.0/VLCQtCore
|
126
112
|
|
113
|
+
Referenced from: /Users/user/QtProjects/examples/build-simple-player-Desktop_Qt_5_7_0_clang_64bit-Debug/src/simple-player.app/Contents/MacOS/simple-player
|
114
|
+
|
115
|
+
Reason: image not found
|
116
|
+
|
127
|
-
|
117
|
+
The program has unexpectedly finished.
|
118
|
+
|
119
|
+
```
|
128
120
|
|
129
121
|
|
130
122
|
|
131
|
-
```
|
132
|
-
|
133
|
-
LIBS += -F /Users/user/Qt/VLC-Qt/lib -framework VLCQtCore -framework VLCQtWidgets
|
134
|
-
|
135
|
-
LIBS += -L/Users/user/Qt/VLC-Qt/lib -lVLCQtCore -lVLCQtWidgets
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
123
|
+
2度目はエラー無く実行されます
|
140
|
-
|
141
|
-
```
|
4
表現がわかりにくいので変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -122,7 +122,7 @@
|
|
122
122
|
|
123
123
|
1度目のビルドでは`-L`の`LIBS`をコメントアウトしてビルド。
|
124
124
|
|
125
|
-
2度目のビルドでは`-F`の`LIBS`をコメントアウトしてビルドするとサンプルが動作しました。
|
125
|
+
2度目のビルドでは`-L`の`LIBS`をコメントをはずし、`-F`の`LIBS`をコメントアウトしてビルドするとサンプルが動作しました。
|
126
126
|
|
127
127
|
しかしながら通常では2度もビルドしないと起動しないのはおかしいので引き続き回答を募集します。
|
128
128
|
|
3
タイトル変更と追記
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
VLC-Qtライブラリを使用したい
|
1
|
+
VLC-Qtライブラリを使用したいが2重ビルド?しないと動かない
|
test
CHANGED
@@ -106,12 +106,36 @@
|
|
106
106
|
|
107
107
|
|
108
108
|
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
109
|
###補足情報(言語/FW/ツール等のバージョンなど)
|
114
110
|
|
115
111
|
OS X 10.11.5
|
116
112
|
|
117
113
|
Qt 5.8
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
### 追記
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
`simple-player.pro`に以下の記述を行い、
|
122
|
+
|
123
|
+
1度目のビルドでは`-L`の`LIBS`をコメントアウトしてビルド。
|
124
|
+
|
125
|
+
2度目のビルドでは`-F`の`LIBS`をコメントアウトしてビルドするとサンプルが動作しました。
|
126
|
+
|
127
|
+
しかしながら通常では2度もビルドしないと起動しないのはおかしいので引き続き回答を募集します。
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
```
|
132
|
+
|
133
|
+
LIBS += -F /Users/user/Qt/VLC-Qt/lib -framework VLCQtCore -framework VLCQtWidgets
|
134
|
+
|
135
|
+
LIBS += -L/Users/user/Qt/VLC-Qt/lib -lVLCQtCore -lVLCQtWidgets
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
INCLUDEPATH += /Users/user/Qt/VLC-Qt/include
|
140
|
+
|
141
|
+
```
|
2
関係なかったものを削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -115,41 +115,3 @@
|
|
115
115
|
OS X 10.11.5
|
116
116
|
|
117
117
|
Qt 5.8
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
### もしかしたら何か関係があるかもしれない
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
```
|
126
|
-
|
127
|
-
$ otool -L /Users/user/Downloads/examples/build-simple-player-Desktop_Qt_5_7_0_clang_64bit-Debug/src/simple-player.app/Contents/MacOS/simple-player
|
128
|
-
|
129
|
-
/Users/user/Downloads/examples/build-simple-player-Desktop_Qt_5_7_0_clang_64bit-Debug/src/simple-player.app/Contents/MacOS/simple-player:
|
130
|
-
|
131
|
-
@rpath/VLCQtCore.framework/Versions/1.0.1/VLCQtCore (compatibility version 1.0.0, current version 1.0.1)
|
132
|
-
|
133
|
-
@rpath/VLCQtWidgets.framework/Versions/1.0.1/VLCQtWidgets (compatibility version 1.0.0, current version 1.0.1)
|
134
|
-
|
135
|
-
@rpath/VLCQtQml.framework/Versions/1.0.1/VLCQtQml (compatibility version 1.0.0, current version 1.0.1)
|
136
|
-
|
137
|
-
@rpath/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.7.0, current version 5.7.0)
|
138
|
-
|
139
|
-
@rpath/QtGui.framework/Versions/5/QtGui (compatibility version 5.7.0, current version 5.7.0)
|
140
|
-
|
141
|
-
@rpath/QtCore.framework/Versions/5/QtCore (compatibility version 5.7.0, current version 5.7.0)
|
142
|
-
|
143
|
-
/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
|
144
|
-
|
145
|
-
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
|
146
|
-
|
147
|
-
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
|
148
|
-
|
149
|
-
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
|
150
|
-
|
151
|
-
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0)
|
152
|
-
|
153
|
-
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)
|
154
|
-
|
155
|
-
```
|
1
もしかしたら何か関係があるかもしれない
test
CHANGED
File without changes
|
test
CHANGED
@@ -115,3 +115,41 @@
|
|
115
115
|
OS X 10.11.5
|
116
116
|
|
117
117
|
Qt 5.8
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
### もしかしたら何か関係があるかもしれない
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
```
|
126
|
+
|
127
|
+
$ otool -L /Users/user/Downloads/examples/build-simple-player-Desktop_Qt_5_7_0_clang_64bit-Debug/src/simple-player.app/Contents/MacOS/simple-player
|
128
|
+
|
129
|
+
/Users/user/Downloads/examples/build-simple-player-Desktop_Qt_5_7_0_clang_64bit-Debug/src/simple-player.app/Contents/MacOS/simple-player:
|
130
|
+
|
131
|
+
@rpath/VLCQtCore.framework/Versions/1.0.1/VLCQtCore (compatibility version 1.0.0, current version 1.0.1)
|
132
|
+
|
133
|
+
@rpath/VLCQtWidgets.framework/Versions/1.0.1/VLCQtWidgets (compatibility version 1.0.0, current version 1.0.1)
|
134
|
+
|
135
|
+
@rpath/VLCQtQml.framework/Versions/1.0.1/VLCQtQml (compatibility version 1.0.0, current version 1.0.1)
|
136
|
+
|
137
|
+
@rpath/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.7.0, current version 5.7.0)
|
138
|
+
|
139
|
+
@rpath/QtGui.framework/Versions/5/QtGui (compatibility version 5.7.0, current version 5.7.0)
|
140
|
+
|
141
|
+
@rpath/QtCore.framework/Versions/5/QtCore (compatibility version 5.7.0, current version 5.7.0)
|
142
|
+
|
143
|
+
/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
|
144
|
+
|
145
|
+
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
|
146
|
+
|
147
|
+
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
|
148
|
+
|
149
|
+
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
|
150
|
+
|
151
|
+
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0)
|
152
|
+
|
153
|
+
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)
|
154
|
+
|
155
|
+
```
|