From: "Seidl, Aron via lttng-dev" <lttng-dev@lists.lttng.org>
To: Michael Jeanson <mjeanson@efficios.com>,
"lttng-dev@lists.lttng.org" <lttng-dev@lists.lttng.org>
Subject: Re: [lttng-dev] Building the Babeltrace-Libary for Windows?
Date: Mon, 6 Nov 2023 07:43:51 +0000 [thread overview]
Message-ID: <AM9P190MB10759C317F92C6DF8CE429B688AAA@AM9P190MB1075.EURP190.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <a822b4bf-47a8-4396-a82e-af8589e165b8@efficios.com>
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.seidl@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 <mjeanson@efficios.com>
Gesendet: Freitag, 3. November 2023 15:21
An: Seidl, Aron <aron.seidl@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
next prev parent reply other threads:[~2023-11-06 7:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-03 11:48 Seidl, Aron via lttng-dev
2023-11-03 14:21 ` Michael Jeanson via lttng-dev
2023-11-06 7:43 ` Seidl, Aron via lttng-dev [this message]
2023-11-07 15:57 ` Michael Jeanson via lttng-dev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AM9P190MB10759C317F92C6DF8CE429B688AAA@AM9P190MB1075.EURP190.PROD.OUTLOOK.COM \
--to=lttng-dev@lists.lttng.org \
--cc=aron.seidl@zeiss.com \
--cc=mjeanson@efficios.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox