Hi Michael, Thank you a lot for your answer! I think I can work with that.
I set up the msys64 environment with all the packages that I need to build, except for glibc. I ran the script and as always does the build process fail because I can't install glibc in this environment. Even building glibc from source fails, because the system is not compatible. Do you guys link babeltrace to a different C library when building on windows, or is there a way for a possible workaround? I'd be super grateful for a little more help! I wish you a nice day Sincerely, Aron __________ Aron Seidl DH-Student IT Education Carl Zeiss AG Carl-Zeiss-Strasse 22 73447 Oberkochen, Deutschland aron.se...@zeiss.com http://www.zeiss.de/ __________ Carl Zeiss AG Sitz der Gesellschaft: Oberkochen, Deutschland Vorsitzender des Aufsichtsrates: Dr. Michael Bolle Vorstand: Dr. Karl Lamprecht (Vorsitzender), Susan-Stefanie Breitkopf, Sven Hermann, Dr. Christian Müller, Andreas Pecher, Dr. Jochen Peter, Dr. Markus Weber Amtsgericht Ulm, HRB 501 555, USt-IdNr: DE 811 119 940 -----Ursprüngliche Nachricht----- Von: Michael Jeanson <mjean...@efficios.com> Gesendet: Freitag, 3. November 2023 15:21 An: Seidl, Aron <aron.se...@zeiss.com>; lttng-dev@lists.lttng.org Betreff: Re: [lttng-dev] Building the Babeltrace-Libary for Windows? On 2023-11-03 07 h 48, Seidl, Aron via lttng-dev wrote: > Hello guys, > > after it was finally possible to debug Babeltrace properly, I step > onto a next problem. > > I apologize in advance, but I'm new to Linux development and even more > to cross compiling. > > Is it even possible to compile libbabeltrace for Windows and I have to > dig deeper, trying to understand it better, or did I just waste 3 days > of my life trying the impossible? > > Maybe you guys know a little more. > > FYI: I installed every Mingw-package on my machine, and I try to > configure the project as follows: > > ./configure --prefix=$PWD/install --host=x86_64-w64-mingw64 > --enable-built-in-plugins --enable-static --disable-shared > > The configure-phase runs well, but the make process fails. > > I hope it is the last time I have to ask you some questions. I wish > you a great weekend! > > Sincerely, > > Aron Hi, It should be technically possible to cross-compile babeltrace2 with Mingw on Linux but it was never tested, so a lot a small fixes to the build system might be required. What is tested however is building with Mingw in an MSYS2 [1] environment on a Windows host. You can have a look at the CI job [2] for the details, the configuration including the build script is publicly readable in "View Configuration". Cheers, Michael [1] https://www.msys2.org/ [2] https://ci.lttng.org/view/Babeltrace/job/babeltrace_master_winbuild/ _______________________________________________ lttng-dev mailing list lttng-dev@lists.lttng.org https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev