Skip to content

Instantly share code, notes, and snippets.

@starius
starius / bitfield.cpp
Created September 1, 2015 18:53
C++ non addressable variable
struct A {
int a : 2;
int b : 2;
int c : 2;
};
int main() {
A a;
int* b = &a.b;
}
@starius
starius / sfml_i686-w64-mingw32.static
Created September 5, 2015 08:15
Attempt to update SFML in MXE
make[1]: Entering directory '/home/mxe/mxe-pango'
uname -a
Linux elric.ga 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) x86_64 GNU/Linux
git show-branch --list --reflog=1
[refs/heads/master@{0}] (25 hours ago) (none)
lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true
Distributor ID: Debian
Description: Debian GNU/Linux 8.1 (jessie)
Release: 8.1
Codename: jessie
@starius
starius / build-pkg-warnings.log
Created September 5, 2015 08:21
Warnings produced by build-pkg.lua against MXE 0691f569eb5ed6f5b38d1f40df39b795ff5ae404
i686-w64-mingw32.static Package winpthreads changes usr/i686-w64-mingw32.static/include/pthread_signal.h, created by mingw-w64 (i686-w64-mingw32.static)
i686-w64-mingw32.static Package winpthreads changes usr/i686-w64-mingw32.static/include/pthread_time.h, created by mingw-w64 (i686-w64-mingw32.static)
i686-w64-mingw32.static Package winpthreads changes usr/i686-w64-mingw32.static/include/pthread_unistd.h, created by mingw-w64 (i686-w64-mingw32.static)
i686-w64-mingw32.static File usr/i686-w64-mingw32.static/share/nsis/Stubs/bzip2 (nsis) is "PE32 executable (GUI) Intel 80386 (stripped to external PDB), for MS Windows". Add exe or dll
i686-w64-mingw32.static File usr/i686-w64-mingw32.static/share/nsis/Stubs/bzip2_solid (nsis) is "PE32 executable (GUI) Intel 80386 (stripped to external PDB), for MS Windows". Add exe or dll
i686-w64-mingw32.static File usr/i686-w64-mingw32.static/share/nsis/Stubs/lzma (nsis) is "PE32 executable (GUI) Intel 80386 (stripped to external PDB), for MS Windows". Add exe or dll
i686
@starius
starius / jmorecfg.diff
Created September 5, 2015 10:01
How libjpeg-turbo breaks header jmorecfg.h created by jpeg (MXE)
commit 3ac134841de8866563cae31dfecf7b752ee55261
Author: build-pkg <build-pkg@mxe>
Date: Fri Sep 4 15:51:00 2015 +0100
Build libjpeg-turbo for target i686-w64-mingw32.static
diff --git a/i686-w64-mingw32.static/include/jmorecfg.h b/i686-w64-mingw32.static/include/jmorecfg.h
index e143e90..108e7de 100644
--- a/i686-w64-mingw32.static/include/jmorecfg.h
+++ b/i686-w64-mingw32.static/include/jmorecfg.h
@starius
starius / build-04Sep2015-2.log
Created September 5, 2015 10:32
Report produced by build-pkg.lua against MXE 0691f569eb5ed6f5b38d1f40df39b795ff5ae404
[using autodetected 6 job(s)]
[check requirements]
[download] flex
[no-build] flex i686-w64-mingw32.static
[using autodetected 6 job(s)]
[download] gcc-gmp
[build] gcc-gmp i686-w64-mingw32.static
[done] gcc-gmp i686-w64-mingw32.static 28480 KiB 0m22.000s
[using autodetected 6 job(s)]
[download] m4
@starius
starius / dll-in-bin.txt
Created September 6, 2015 15:35
DLL files in bin/ directory (MXE)
usr/i686-w64-mingw32.shared/bin/avcodec-56.dll
usr/i686-w64-mingw32.shared/bin/avdevice-56.dll
usr/i686-w64-mingw32.shared/bin/avfilter-5.dll
usr/i686-w64-mingw32.shared/bin/avformat-56.dll
usr/i686-w64-mingw32.shared/bin/avresample-2.dll
usr/i686-w64-mingw32.shared/bin/avutil-54.dll
usr/i686-w64-mingw32.shared/bin/GLEW.dll
usr/i686-w64-mingw32.shared/bin/GLEWmx.dll
usr/i686-w64-mingw32.shared/bin/glfw3.dll
usr/i686-w64-mingw32.shared/bin/glfw.dll
@starius
starius / dll-in-lib.txt
Created September 6, 2015 15:43
DLL files in lib/ directory (MXE)
usr/i686-w64-mingw32.shared/lib/libBox2D.dll
usr/i686-w64-mingw32.shared/lib/libcomm14cux.dll
usr/i686-w64-mingw32.shared/lib/liblaxjson.dll
usr/i686-w64-mingw32.shared/lib/librubberband.dll
usr/i686-w64-mingw32.shared/lib/libvamp-hostsdk.dll
usr/i686-w64-mingw32.shared/lib/libvamp-sdk.dll
usr/i686-w64-mingw32.static/lib/liblaxjson.dll
usr/i686-w64-mingw32.static/lib/librucksack.dll
usr/i686-w64-mingw32.static/lib/librucksackspritesheet.dll
usr/x86_64-w64-mingw32.shared/lib/libBox2D.dll
@starius
starius / libmysqlclient_i686-w64-mingw32.shared
Created September 7, 2015 22:49
Broken shared build of libmysqlclient (MXE) stdcall
This file has been truncated, but you can view the full file.
make[1]: Entering directory '/home/mxe/mxe-db-enable-crypto'
uname -a
Linux elric.ga 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) x86_64 GNU/Linux
git show-branch --list --reflog=1
[refs/heads/db-enable-crypto@{0}] (5 days ago) (none)
lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true
Distributor ID: Debian
Description: Debian GNU/Linux 8.1 (jessie)
Release: 8.1
Codename: jessie
@starius
starius / build-09Sep2015.log
Created September 10, 2015 08:29
Two builds of MXE: with and without new cmake conf #836
[using autodetected 6 job(s)]
[check requirements]
[download] flex
[no-build] flex i686-w64-mingw32.static
[using autodetected 6 job(s)]
[download] gcc-gmp
[build] gcc-gmp i686-w64-mingw32.static
[done] gcc-gmp i686-w64-mingw32.static 28352 KiB 0m24.741s
[using autodetected 6 job(s)]
[download] m4
@starius
starius / with wine
Created September 12, 2015 11:58
Build logs of gtkimageview with and without wine (MXE)
[using autodetected 6 job(s)]
make[1]: Entering directory `/home/mxe/mxe-09Sep2015'
uname -a
Linux sd-68075 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 GNU/Linux
git show-branch --list --reflog=1
[HEAD@{0}] (5 hours ago) checkout: moving from master to 0d8f76e8586e408e7067211ace94ea1586a37175
lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true
Distributor ID: Debian
Description: Debian GNU/Linux 7.8 (wheezy)
Release: 7.8