discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: Crosscompiling for Windows

MB
maurizio butti
Tue, Mar 1, 2022 5:18 PM

My first question would be what your goal is. There's multiple
ways for building, why use cross-compile on Windows for Windows?

My understanding was that it is not possible to directly compile under
windows. I had success in the past with Mingw so did not try the MSYS2
approach(and the slightly out of date scares me a lot).
Did not know of the VS possibility...I'm quite a bit out of date myself.
I'm git-impaired but if I don't go wrong this is a branch not actually
merged in the master branch, so I would not like to chose this route.

>My first question would be what your goal is. There's multiple >ways for building, why use cross-compile on Windows for Windows? My understanding was that it is not possible to directly compile under windows. I had success in the past with Mingw so did not try the MSYS2 approach(and the *slightly out of date* scares me a lot). Did not know of the VS possibility...I'm quite a bit out of date myself. I'm git-impaired but if I don't go wrong this is a branch not actually merged in the master branch, so I would not like to chose this route.
JB
Jordan Brown
Tue, Mar 1, 2022 8:24 PM

On 3/1/2022 9:18 AM, maurizio butti wrote:

I had success in the past with Mingw so did not try the MSYS2
approach(and the /slightly out of date/ scares me a lot).

I build with MSYS2.  Indeed, the instructions may be slightly out of
date, but only slightly.

On 3/1/2022 9:18 AM, maurizio butti wrote: > I had success in the past with Mingw so did not try the MSYS2 > approach(and the /slightly out of date/ scares me a lot). I build with MSYS2.  Indeed, the instructions may be slightly out of date, but only slightly.
TP
Torsten Paul
Tue, Mar 1, 2022 8:33 PM

On 01.03.22 21:24, Jordan Brown wrote:

On 3/1/2022 9:18 AM, maurizio butti wrote:

I had success in the past with Mingw so did not try the MSYS2 approach(and the /slightly out of date/ scares me a lot).

I build with MSYS2.  Indeed, the instructions may be slightly out of date, but only slightly.

Well, if nobody helping with updating the docs, it will go out of
date even more. ¯_(ツ)_/¯

ciao,
Torsten.

On 01.03.22 21:24, Jordan Brown wrote: > On 3/1/2022 9:18 AM, maurizio butti wrote: >> I had success in the past with Mingw so did not try the MSYS2 approach(and the /slightly out of date/ scares me a lot). > > I build with MSYS2.  Indeed, the instructions may be slightly out of date, but only slightly. > Well, if nobody helping with updating the docs, it will go out of date even more. ¯\_(ツ)_/¯ ciao, Torsten.
JB
Jordan Brown
Tue, Mar 1, 2022 8:41 PM

On 3/1/2022 12:24 PM, Jordan Brown wrote:

I build with MSYS2.  Indeed, the instructions may be slightly out of
date, but only slightly.

Oh, eww, it's more out of date than I thought.

Two things that I see offhand:

  • I don't think it lists all of the dependencies.  Once you follow
    those instructions, it would be best to run
    scripts/msys2-install-dependencies.sh to get all of them.  (It might
    be that you only need that to run the tests, but if you're going to
    do development you should be able to run the tests.)
  • It still talks about qmake, and qmake is dead.  The replacement is
    cmake.  I use two scripts, attached, to create a build directory and
    to actually do the build.  I say "osc.cmk b" and "osc.mk b" to build
    in directory b.
On 3/1/2022 12:24 PM, Jordan Brown wrote: > I build with MSYS2.  Indeed, the instructions may be slightly out of > date, but only slightly. Oh, eww, it's more out of date than I thought. Two things that I see offhand: * I don't think it lists all of the dependencies.  Once you follow those instructions, it would be best to run scripts/msys2-install-dependencies.sh to get all of them.  (It might be that you only need that to run the tests, but if you're going to do development you should be able to run the tests.) * It still talks about qmake, and qmake is dead.  The replacement is cmake.  I use two scripts, attached, to create a build directory and to actually do the build.  I say "osc.cmk b" and "osc.mk b" to build in directory b.
JB
Jordan Brown
Tue, Mar 1, 2022 8:41 PM

On 3/1/2022 12:33 PM, Torsten Paul wrote:

On 01.03.22 21:24, Jordan Brown wrote:

On 3/1/2022 9:18 AM, maurizio butti wrote:

I had success in the past with Mingw so did not try the MSYS2
approach(and the /slightly out of date/ scares me a lot).

I build with MSYS2.  Indeed, the instructions may be slightly out of
date, but only slightly.

Well, if nobody helping with updating the docs, it will go out of
date even more. ¯_(ツ)_/¯

Yep.  I'll see if I can pry loose some time to wipe my msys2
installation and rebuild it, noting the steps required.

On 3/1/2022 12:33 PM, Torsten Paul wrote: > On 01.03.22 21:24, Jordan Brown wrote: >> On 3/1/2022 9:18 AM, maurizio butti wrote: >>> I had success in the past with Mingw so did not try the MSYS2 >>> approach(and the /slightly out of date/ scares me a lot). >> >> I build with MSYS2.  Indeed, the instructions may be slightly out of >> date, but only slightly. >> > > Well, if nobody helping with updating the docs, it will go out of > date even more. ¯\_(ツ)_/¯ Yep.  I'll see if I can pry loose some time to wipe my msys2 installation and rebuild it, noting the steps required.
HL
Hans L
Tue, Mar 1, 2022 9:02 PM

Our releases on openscad.org download page still come from MXE
cross-compilation.
BUT, for what it's worth, one of the github CI servers regularly builds and
tests via MSYS2.

I haven't looked at the instructions recently but you can reference the
setup for that CI server if need be:
https://github.com/openscad/openscad/blob/master/.github/workflows/windows.yml

Hans

On Tue, Mar 1, 2022 at 2:42 PM Jordan Brown openscad@jordan.maileater.net
wrote:

On 3/1/2022 12:33 PM, Torsten Paul wrote:

On 01.03.22 21:24, Jordan Brown wrote:

On 3/1/2022 9:18 AM, maurizio butti wrote:

I had success in the past with Mingw so did not try the MSYS2 approach(and
the /slightly out of date/ scares me a lot).

I build with MSYS2.  Indeed, the instructions may be slightly out of date,
but only slightly.

Well, if nobody helping with updating the docs, it will go out of
date even more. ¯_(ツ)_/¯

Yep.  I'll see if I can pry loose some time to wipe my msys2 installation
and rebuild it, noting the steps required.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Our releases on openscad.org download page still come from MXE cross-compilation. BUT, for what it's worth, one of the github CI servers regularly builds and tests via MSYS2. I haven't looked at the instructions recently but you can reference the setup for that CI server if need be: https://github.com/openscad/openscad/blob/master/.github/workflows/windows.yml Hans On Tue, Mar 1, 2022 at 2:42 PM Jordan Brown <openscad@jordan.maileater.net> wrote: > On 3/1/2022 12:33 PM, Torsten Paul wrote: > > On 01.03.22 21:24, Jordan Brown wrote: > > On 3/1/2022 9:18 AM, maurizio butti wrote: > > I had success in the past with Mingw so did not try the MSYS2 approach(and > the /slightly out of date/ scares me a lot). > > > I build with MSYS2. Indeed, the instructions may be slightly out of date, > but only slightly. > > > Well, if nobody helping with updating the docs, it will go out of > date even more. ¯\_(ツ)_/¯ > > > Yep. I'll see if I can pry loose some time to wipe my msys2 installation > and rebuild it, noting the steps required. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >