Skip to content

Instantly share code, notes, and snippets.

@bagong
bagong / msys2-gstreamer
Last active February 11, 2022 12:51
gstreamer msys2 dll's and dependencies for deployment (mingw64)
## Gstreamer itself
Pretty much everything in mingw64/lib/gstreamer-1.0 and all libraries with prefix libgst in mingw64/bin
$ pacman -Fl mingw-w64-x86_64-{gstreamer,gst-{libav,plugins-{good,base,bad}}} | grep mingw64/.*\.dll$
mingw-w64-x86_64-gstreamer mingw64/bin/libgstbase-1.0-0.dll
mingw-w64-x86_64-gstreamer mingw64/bin/libgstcheck-1.0-0.dll
mingw-w64-x86_64-gstreamer mingw64/bin/libgstcontroller-1.0-0.dll
mingw-w64-x86_64-gstreamer mingw64/bin/libgstnet-1.0-0.dll
mingw-w64-x86_64-gstreamer mingw64/bin/libgstreamer-1.0-0.dll
@bagong
bagong / gist:e81ceb3e1af99be693413d986e9cc2c6
Created July 21, 2017 10:18
Gstreamser 1.12.2 msys2 build
/bin/sh ../../../libtool --tag=CC --mode=link x86_64-w64-mingw32-gcc -I../../../../gst-plugins-ba d-1.12.2/gst-libs -I../../../gst-libs -DGST_USE_UNSTABLE_API -pthread -mms-bitfields -IC:/msys/mingw 64/include/gstreamer-1.0 -IC:/msys/mingw64/include/glib-2.0 -IC:/msys/mingw64/lib/glib-2.0/include - IC:/msys/mingw64/include -DGST_USE_UNSTABLE_API -DG_THREADS_MANDATORY -DG_DISABLE_CAST_CHECKS -Wal l -Wdeclaration-after-statement -Wvla -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -W redundant-decls -Wwrite-strings -Wformat-security -Wold-style-definition -Winit-self -Wmissing-inclu de-dirs -Waddress -Wno-multichar -Wnested-externs -g -Dvp8_norm=gst_codecpars
@bagong
bagong / gist:8eef9a079aefc6afebd534197ea68ba4
Created July 10, 2017 21:35
MSYS2 QtWebkit with gstreamer build error "module jsmin not found"
[ 25%] Generating ../../DerivedSources/WebCore/UserAgentScripts.h, ../../DerivedSources/WebCore/UserAgentScriptsData.cpp
[ 25%] Generating ../../DerivedSources/WebCore/WebKitVersion.h
Traceback (most recent call last):
File "C:/M/mingw-w64-qtwebkit/src/qtwebkit-5.212.0-alpha2/Source/WebCore/Scripts/make-js-file-arrays.py", line 28, in <module>
from jsmin import JavascriptMinify
ImportError: No module named jsmin
[ 25%] Generating ../../DerivedSources/WebCore/InspectorOverlayPage.h, ../../DerivedSources/WebCore/InspectorOverlayPage.combined.html
make[2]: *** [Source/WebCore/CMakeFiles/WebCore.dir/build.make:340: DerivedSources/WebCore/UserAgentScripts.h] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:632: Source/WebCore/CMakeFiles/WebCore.dir/all] Error 2
@bagong
bagong / SonicPi-Winbuild.md
Last active July 8, 2017 15:29
Overview sonic-pi build (Windows first)

Building Sonic Pi on Windows

Sonic Pi does an in-source build and on Windows uses two frameworks to assemble its dependencies: ruby/gem and vcpkg. Additionally three embedded applications, SuperCollider server & sc3-plugins, Erlang and Osmid need to be added to the package. Erlang and SuperCollider can be downloaded, osmid needs to be built using cmake. The Sonic Pi executable, using Qt, qscintilla and qwt for the editor, is built using qmake and nmake. Some of the deployment is handled by windeployqt, proper deployment and installer creation is not finalized yet. The build description assumes a 64-bit build using Visual Studio 2017, everything is done on the command line though. As to versioning, simply use the latest of everything (VS2017, ruby 2.41-2, cmake 3.8.2, erlang 20, supercollider 3.8) and the C/C++ libraries as provided in the vcpkg precombiled download (qt5.8, aubio 0.46, qscintilla 2.10, qwt 6.13, boost 1.64)

Prior knowledge required: basic command of git, basic familiarity with

@bagong
bagong / msys2-release
Created July 5, 2017 07:08
Build error qtwebkit msys2 build on second run building release configuration (sporadic)
[ 4%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/RandomNumber.cpp.obj
Could not open C:/msys/repos/MINGW-Packages/mingw-w64-qtwebkit/src/build-i686-w64-mingw32-release/DerivedSources/ForwardingHeaders/WebCore/SerializedScriptValue.h. at C:/msys/repos/MINGW-Packages/mingw-w64-qtwebkit/src/qtwebkit-5.212.0-alpha2/Source/WebKit2/Scripts/generate-forwarding-headers.pl line 120, <EXISTING_HEADER> line 1.
make[2]: *** [Source/WebKit2/CMakeFiles/WebKit2-forwarding-headers.dir/build.make:57: Source/WebKit2/CMakeFiles/WebKit2-forwarding-headers] Error 13
make[1]: *** [CMakeFiles/Makefile2:2205: Source/WebKit2/CMakeFiles/WebKit2-forwarding-headers.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 4%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/RefCountedLeakCounter.cpp.obj
@bagong
bagong / wk2-icu59-1
Created June 20, 2017 17:10
Build error in Webkit wk2
[4108/4296] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX64\x64\cl.exe /TP -DBUILDING_QT__=1 -DBUILDING_WEBKIT -DBUILDING_WITH_CMAKE=1 -DBUILDING_WebKit2 -DENABLE_DATABASE_PROCESS=1 -DENABLE_PLUGIN_PROCESS=1 -DHAVE_CONFIG_H=1 -DNOMINMAX -DQT_ASCII_CAST_WARNINGS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_POSITIONING_LIB -DQT_QML_LIB -DQT_QUICK_LIB -DQT_SENSORS_LIB -DQT_USE_QSTRINGBUILDER -DQT_WEBCHANNEL_LIB -DSTATICALLY_LINKED_WITH_JavaScriptCore -DSTATICALLY_LINKED_WITH_WTF -DUNICODE -DWINVER=0x601 -D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES=1 -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_UNICODE -D_WINDOWS -ISource\WebKit2 -IC:\vcpkg\buildtrees\qt5-webkit\src\qtwebkit-5.212.0-alpha2\Source\WebKit2 -ISource\WebKit2\WebKit2_autogen\include -IDerivedSources\ForwardingHeaders -IDerivedSources -IC:\vcpkg\buildtrees\qt5-webkit\src\qtwebkit-5.212.0-alpha2\WebKitLib
@bagong
bagong / gist:71c6f0adab00cb2955644e4e861ac39e
Created June 13, 2017 11:30
aubio - vcpkg - no-msvc-lazy
Setting top to : C:\vcpkg\buildtrees\aubio\src\aubio-0.4.5
Setting out to : C:\vcpkg\buildtrees\aubio\x64-windows-rel
Checking for 'msvc' (C compiler) : 12:33:06 runner ['cmd.exe', '/E:on', '/V:on', '/C', 'C:\\vcpkg\\buildtrees\\aubio\\x64-windows-rel\\waf-print-msvc-1.bat']
12:33:07 runner ['C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.10.25017\\bin\\HostX64\\x64\\CL.exe', '/help']
12:33:07 runner ['cmd.exe', '/E:on', '/V:on', '/C', 'C:\\vcpkg\\buildtrees\\aubio\\x64-windows-rel\\waf-print-msvc-2.bat']
12:33:07 runner ['C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.10.25017\\bin\\HostX64\\x64\\CL.exe', '/help']
12:33:07 runner ['cmd.exe', '/E:on', '/V:on', '/C', 'C:\\vcpkg\\buildtrees\\aubio\\x64-windows-rel\\waf-print-msvc-3.bat']
12:33:07 runner ['C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.10.25017\\bin\\HostX64\\x64\\CL
@bagong
bagong / gist:5fb249e592c3fef8fae20dedbc5f1a2a
Created June 8, 2017 17:30
cmake build using msbuild, VS2017, vcpkg with a path using non-ascii characters.
Microsoft (R) Build Engine version 15.1.1012.6693
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 08.06.2017 19:19:24.
1>Project "C:\Users\ابو عزيز\Projects\sc\vcpkg\buildtrees\portaudio\x64-windows-rel\install.vcxproj" on node 1 (default targets).
1>Project "C:\Users\ابو عزيز\Projects\sc\vcpkg\buildtrees\portaudio\x64-windows-rel\install.vcxproj" (1) is building "C:\Users\ابو عزيز\Projects\sc\vcpkg\buildtrees\portaudio\x64-windows-rel\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
2>PrepareForBuild:
Creating directory "x64\Release\ZERO_CHECK\".
Creating directory "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\".
InitializeBuildStatus:
@bagong
bagong / gist:df1dee2d826f24c189d6f7b669184418
Created June 8, 2017 11:21
sc-build build environment with difficult path
C:\Users\ابو عزيز\Projects\sc\supercollider\build\VCPKG2015_64>cm
-- The C compiler identification is MSVC 19.0.24218.2
-- The CXX compiler identification is MSVC 19.0.24218.2
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
@bagong
bagong / qtwebkit-dateconversion
Created June 2, 2017 22:48
qtwebkit-5212: DateConversion.cpp(111): error C2664: 'WTF::String::String(const WTF::String &)': cannot convert argument 1 from 'const UChar *' to 'const LChar *'
[813/3618] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX64\x64\cl.exe /TP @Source\JavaScriptCore\CMakeFiles\JavaScriptCore.dir\runtime\DateConversion.cpp.obj.rsp /showIncludes /FoSource\JavaScriptCore\CMakeFiles\JavaScriptCore.dir\runtime\DateConversion.cpp.obj /FdSource\JavaScriptCore\CMakeFiles\JavaScriptCore.dir\JavaScriptCore.pdb /FS -c C:\vcpkg\buildtrees\qt5-webkit\src\qt5-webkit-5.212\Source\JavaScriptCore\runtime\DateConversion.cpp
FAILED: Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/runtime/DateConversion.cpp.obj
C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX64\x64\cl.exe /TP @Source\JavaScriptCore\CMakeFiles\JavaScriptCore.dir\runtime\DateConversion.cpp.obj.rsp /showIncludes /FoSource\JavaScriptCore\CMakeFiles\JavaScriptCore.dir\runtime\DateConversion.cpp.obj /FdSource\JavaScriptCore\CMakeFiles\JavaScriptCore.dir\JavaScriptCore.pdb /FS -c C:\vcpkg\buildtrees\qt5-webkit\src\qt5-webkit-5.212\Source\JavaScriptCore\runtime\DateConversion.cpp