-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.txt
171 lines (135 loc) · 9.42 KB
/
deploy.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
https://stackoverflow.com/questions/30814475/qml-module-not-installed-error-running-qt-app-on-embedded-linux
https://stackoverflow.com/questions/46455360/workaround-for-qt-installer-framework-not-overwriting-existing-installation
Derperview VCRuntime140_1.dll error: https://aka.ms/vs/16/release/VC_redist.x64.exe
install shotcut
https://shotcut.org/notes/windowsdev/
Certificate:
- https://www.sslforfree.com / mediasidekick.org / manual verification / download / copy certificate and private key
- cp.ashosting.nl / website beheer / website configuratie / ssl / paste certificate and private key
- ftp downloaded files / upload
$QTmingwFolder = C:\Qt\5.15.1\mingw81_64
$QTmingwFolder = C:\Qt\5.15.1\mingw81_64
add to $QTmingwFolder
- make sure bin, include and lib exists
storing C:\Users\ewoud\OneDrive\Documents\Media Sidekick project\Media Sidekick support files\additional\Win for the time being
and more... (temp?)
- lib_win_x86_64 contents in the main folder
- $QTmingwFolder\bin\ contents in the main folder (a lot)
- then it works ...
Clean install of both QT/Mingw/QtAV and deploy folder
- Project ERROR: Unknown module(s) in QT: avwidgets / :-1: error: Unknown module(s) in QT: avwidgets
- QtAV: run sdk_deploy.bat from D:\ACVC\QtAV-Qt5.9-VS2017x64-release-6067154 to the mingw folder (copying avcodec 57 to bin, conflict with 58???)
- https://github.com/wang-bin/QtAV/wiki/Use-QtAV-In-Your-Projects
- https://github.com/wang-bin/QtAV/wiki/Deploy-SDK-Without-Building-QtAV
- https://forum.qt.io/topic/106288/linker-problem-with-qtav
- https://github.com/wang-bin/QtAV/wiki/Build-QtAV (not needed, except to get lib_win_x86_64 stuff)
- D:\ACVC\build-ACVC-Desktop_Qt_5_15_1_MinGW_64_bit-Debug3\debug\ACVC.exe crashed. (skip these steps next time, see next step)
- QtAV: Copy D:\ACVC\QtAV-depends-windows-x86+x64\bin and lib to mingw\bin and \lib (some files alreadt exists eg avcodec 57, skip these)
- QtAV: Copy D:\ACVC\QtAV-x64-lib\lib_win_x86_64 to mingw\lib (result of compiling C:\Users\ewoud\Downloads\QtAV-master!!!, looks like this should have been added to the release? ask forum!)
- Still crashing
- QtAV: Copy depends and lib_win_x86_64 stuff (both bin and lib) in deploy\debug (maybe not needed to copy to mingw)
- Libs still needed (to do from other folder)
LIBS += -LD:\ACVC\QtAV-x64-lib\lib_win_x86_64
LIBS += -lQtAVd1 -lQtAVWidgetsd1 # -lQt5AV -lQt5AVWidgets
- https://github.com/wang-bin/QtAV/issues/1193
- https://github.com/wang-bin/QtAV/wiki/Build-QtAV
- Media Sidekick starts
- Qt5OpenGL.dll was not found
- copy C:/Qt/5.15.1/mingw81_64/bin/Qt5OpenGLd.dll to deploy... (why not automatic?) -> do this before copy all of deploy
- installer/data Media Sidekick starts!
- run acvcinstaller\run.bat to create ACVCInstallerV0.2.2.exe (510 kb?)
OSX Install QTAV
- https://github.com/wang-bin/QtAV/wiki/Deploy-SDK-Without-Building-QtAV
- Install player to /Applications
- run /Applications/player.app/sdk_osx.sh ~/Qt5.5.0/5.5/clang_64/lib to install QtAV libraries to Qt library dir(here assume your Qt is installed in ~/Qt5.5.0) or just run /Applications/player.app/sdk_osx.sh and follow the guide
- If you want to use QML module, you have to use QMLPlayer.dmg. It also includes QtAVWidgets module since 1.9.0.
- Issue: https://github.com/wang-bin/QtAV/issues/1220
Background
- https://forum.qt.io/topic/21312/a-video-player-based-on-qt-and-ffmpeg/2
- http://dranger.com/ffmpeg/ffmpegtutorial_all.html
- https://github.com/leandromoreira/ffmpeg-libav-tutorial#video---what-you-see
otool -L /Users/ewoudwijma/Movies/build-ACVC-Desktop_Qt_5_15_1_clang_64bit-Debug/ACVC.app/Contents/MacOS/ACVC
install_name_tool -change /Users/ewoudwijma/Movies/ffmpeg-20200121-fc6fde2-macos64-shared/bin/libavcodec.58.dylib "@loader_path/libavcodec.58.dylib" ACVC
General pre release steps
- setApplicationVersion("0.3.0") in main.cpp
- test
- delete ini file
- crud on folder and files
Windows 2020-02-20
- get latest version of ffmpeg:
- https://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-latest-win64-dev.zip
- https://ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-latest-win64-shared.zip
- latest version exiftool
- https://exiftool.org/: download zip, remove -k
- Get youtube-dl
- create deploy folder (step one to avoid crash)
- Copy contents of D:\MediaSidekick\windows\ffmpeg-latest-win64-shared\bin to debug or release folder (avcodec 58)
- Prepare for installer
- deploy in shell (not powershell...)
- C:\Qt\5.15.1\mingw81_64\bin\qtenv2.bat
- cd d:\MediaSidekick\build-MediaSidekick-Desktop_Qt_5_15_1_MinGW_64_bit-Debug\debug or cd d:\MediaSidekick\build-MediaSidekick-Desktop_Qt_5_15_1_MinGW_64_bit-Release\release
- remove exiftool.exe, ffplay.exe, ffprobe.exe and ffmpeg.exe temporary out of debug or release folder
- C:\Qt\5.15.1\mingw81_64\bin\windeployqt.exe --quick --no-translations --qmldir D:\MediaSidekick\MediaSidekick\ .
- move exiftool.exe, ffplay.exe, ffprobe.exe and ffmpeg.exe back
- Media Sidekick exiftool and others missing
- Copy D:\MediaSidekick\MediaSidekick support files\additional\exiftool.exe
- D:\MediaSidekick\MediaSidekick support files\additional\scripts to debug or release folder
- D:\MediaSidekick\MediaSidekick support files\additional\MediaSidekick.ico to debug or release folder
- D:\MediaSidekick\MediaSidekick support files\additional\MediaSidekick.icns to debug or release folder
- copy all of deploy to installer/data
- update version in D:\MediaSidekick\MediaSidekickInstaller\run.bat, D:\MediaSidekick\MediaSidekickInstaller\config\config.xml and D:\MediaSidekick\MediaSidekickInstaller\packages\org.mediasidekick.msk\meta\package.xml
General post
- Update version.json on mediasidekick.org
MacOS 2020-02-01
- Get ffmpeg
- Get https://ffmpeg.zeranoe.com/builds/macos64/shared/ffmpeg-latest-macos64-shared.zip
- Get https://ffmpeg.zeranoe.com/builds/macos64/dev/ffmpeg-latest-macos64-dev.zip
- QT Creator run/build release
- Script
- export MediaSidekick_build_path=/Users/ewoudwijma/Movies/build-MediaSidekick-Desktop_Qt_5_15_1_clang_64bit-Release
- cp ~/Downloads/ffmpeg-latest-macos64-shared/bin/* $MediaSidekick_build_path/MediaSidekick.app/Contents/MACOS
- Get exiftool
- Get https://exiftool.org/ExifTool-xx.yy.dmg from https://exiftool.org/
- Install dmg / pkg
- Script
cp -r /usr/local/bin/lib $MediaSidekick_build_path/MediaSidekick.app/Contents/MACOS/lib
cp /usr/local/bin/exiftool $MediaSidekick_build_path/MediaSidekick.app/Contents/MACOS/exiftool1206
- Get youtube-dl
- sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
- sudo chmod a+rx /usr/local/bin/youtube-dl
- Script
cp -r /usr/local/bin/youtube-dl $MediaSidekick_build_path/MediaSidekick.app/Contents/MACOS
- macdeployqt
- https://doc.qt.io/qt-5/macos-deployment.html
- https://blog.inventic.eu/2012/08/how-to-deploy-qt-application-on-macos-2/
- https://doc-snapshots.qt.io/qt5-5.11/osx-deployment.html
- Make dmg (repeat this step only to create new deployment)
- export MediaSidekick_build_path=/Users/ewoudwijma/Movies/build-MediaSidekick-Desktop_Qt_5_15_1_clang_64bit-Release
- /Users/ewoudwijma/Qt/5.15.1/clang_64/bin/macdeployqt $MediaSidekick_build_path/MediaSidekick.app -qmldir=/Users/ewoudwijma/Movies/MediaSidekick/ -dmg -always-overwrite
- Add license.txt and symbolic link to applications folder
- https://www.dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/
- open DiskUtility
- From menu: Images/Convert...
- Find created dmg
- Choose Image Format: read/write then Convert. A new dmg file will be created in the documents folder
- open the dmg file, an image will be created on the desktop
- Open terminal
- type cd<space> and drag the desktop icon after this
- ln -s /Applications ./Applications
- cp $MediaSidekick_build_path/../MediaSidekick/license.txt READ_BEFORE_OPENING_MediaSidekick_license.txt
- cd (to unlock the image)
- Open DiskUtility
- Select image
- Right click: Rename to MediaSidekick vx.y.z (version)
- Eject mounted image
- From menu: Images/Convert...
- Find created dmg
- Rename to MediaSidekick vx.y.z
- Choose Image Format: compressed then Convert. A new dmg file will be created in the documents folder
General post
- Update version.json on mediasidekick.org
Name
- https://pixabay.com/illustrations/media-audio-photo-video-mobile-3856203/
- https://pixabay.com/users/fsm-team-8829724/?tab=about
- https://www.free-stock-music.com/
- https://pixabay.com/service/license/