[lttng-dev] [RELEASE] Babeltrace 2.0.0-pre1
Michael Jeanson
mjeanson at efficios.com
Tue Jun 13 20:16:57 UTC 2017
On 2017-06-13 14:38, Jérémie Galarneau wrote:
>> Where can I find the Windows/mingw patches?
>
> A fair number of them are in this pull request:
> https://github.com/efficios/babeltrace/pull/56
>
> Michael (CC-ed) is still re-working/cleaning some patches on his end.
> I don't know if it's in a shareable state, Michael?
This is still very much a work in progress but you can have a look at
this branch https://github.com/mjeanson/babeltrace/tree/mingw-staging
You should be able to build a fully static babeltrace.bin.exe using the
mingw-w64 toolchain from fedora25.
Here are the important steps :
# Add this copr repo to get mingw64-popt-static
dnf copr enable mjeanson/mingw
# Install the build dependencies
dnf install make automake autoconf bison flex mingw64-gettext-static
mingw64-glib2-static mingw64-win-iconv-static mingw64-popt-static
mingw64-winpthreads-static glib2-devel
# Build with those variables
./bootstrap
CPPFLAGS="-DGLIB_STATIC_COMPILATION -DGOBJECT_STATIC_COMPILATION"
mingw64-configure --disable-shared BUILT_IN_PLUGINS=1
mingw64-make CPPFLAGS="-DGLIB_STATIC_COMPILATION
-DGOBJECT_STATIC_COMPILATION" LDFLAGS="--static"
# The result will be a fully static cli/babeltrace.bin.exe
wine cli/babeltrace.bin.exe
Regards,
Michael
More information about the lttng-dev
mailing list