* [lttng-dev] Building the Babeltrace-Libary for Windows?
@ 2023-11-03 11:48 Seidl, Aron via lttng-dev
2023-11-03 14:21 ` Michael Jeanson via lttng-dev
0 siblings, 1 reply; 4+ messages in thread
From: Seidl, Aron via lttng-dev @ 2023-11-03 11:48 UTC (permalink / raw)
To: lttng-dev
[-- Attachment #1.1: Type: text/plain, Size: 1372 bytes --]
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
__________
Aron Seidl
DH-Student IT Education
Carl Zeiss AG
Carl-Zeiss-Strasse 22
73447 Oberkochen, Deutschland
aron.seidl@zeiss.com<mailto:aron.seidl@zeiss.com>
www.zeiss.de<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
[-- Attachment #1.2: Type: text/html, Size: 8219 bytes --]
[-- Attachment #2: Type: text/plain, Size: 156 bytes --]
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [lttng-dev] Building the Babeltrace-Libary for Windows?
2023-11-03 11:48 [lttng-dev] Building the Babeltrace-Libary for Windows? 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
0 siblings, 1 reply; 4+ messages in thread
From: Michael Jeanson via lttng-dev @ 2023-11-03 14:21 UTC (permalink / raw)
To: Seidl, Aron, lttng-dev
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [lttng-dev] Building the Babeltrace-Libary for Windows?
2023-11-03 14:21 ` Michael Jeanson via lttng-dev
@ 2023-11-06 7:43 ` Seidl, Aron via lttng-dev
2023-11-07 15:57 ` Michael Jeanson via lttng-dev
0 siblings, 1 reply; 4+ messages in thread
From: Seidl, Aron via lttng-dev @ 2023-11-06 7:43 UTC (permalink / raw)
To: Michael Jeanson, lttng-dev
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [lttng-dev] Building the Babeltrace-Libary for Windows?
2023-11-06 7:43 ` Seidl, Aron via lttng-dev
@ 2023-11-07 15:57 ` Michael Jeanson via lttng-dev
0 siblings, 0 replies; 4+ messages in thread
From: Michael Jeanson via lttng-dev @ 2023-11-07 15:57 UTC (permalink / raw)
To: Seidl, Aron, lttng-dev
On 2023-11-06 02:43, Seidl, Aron wrote:
> 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
Hi Aron,
I would need a lot more details on what your are doing and what the failure is
to be able to help you. As for the libc, it is provided in the base MSYS2
environment, you shouldn't need to install it.
Michael
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-11-07 15:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-03 11:48 [lttng-dev] Building the Babeltrace-Libary for Windows? 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
2023-11-07 15:57 ` Michael Jeanson via lttng-dev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox