Skip to content

Instantly share code, notes, and snippets.

View gist:e81ceb3e1af99be693413d986e9cc2c6
/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 / msys2-gstreamer
Last active Jul 18, 2018
gstreamer msys2 dll's and dependencies for deployment (mingw64)
View msys2-gstreamer
## 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:8eef9a079aefc6afebd534197ea68ba4
Created Jul 10, 2017
MSYS2 QtWebkit with gstreamer build error "module jsmin not found"
View gist:8eef9a079aefc6afebd534197ea68ba4
[ 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 / msys2-release
Created Jul 5, 2017
Build error qtwebkit msys2 build on second run building release configuration (sporadic)
View msys2-release
[ 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 / SonicPi-Winbuild.md
Last active Jul 8, 2017
Overview sonic-pi build (Windows first)
View SonicPi-Winbuild.md

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 / wk2-icu59-1
Created Jun 20, 2017
Build error in Webkit wk2
View wk2-icu59-1
[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
View gist:71c6f0adab00cb2955644e4e861ac39e
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 Jun 8, 2017
cmake build using msbuild, VS2017, vcpkg with a path using non-ascii characters.
View gist:5fb249e592c3fef8fae20dedbc5f1a2a
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 Jun 8, 2017
sc-build build environment with difficult path
View gist:df1dee2d826f24c189d6f7b669184418
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 Jun 2, 2017
qtwebkit-5212: DateConversion.cpp(111): error C2664: 'WTF::String::String(const WTF::String &)': cannot convert argument 1 from 'const UChar *' to 'const LChar *'
View qtwebkit-dateconversion
[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