Some woes trying to cross compile for Windows. Luckily I managed to solve
all the problems, somehow. I report them here both as a help to others and
as a request for help.
I was trying to compile under WSL1, but got stuck in building dependencies
(MXE). In particular fontconfig failed to compile due to a missing "lib"
command. The problem disappeared upgrading to WSL2.
With WSL2 I could build the dependencies but got many errors while linking
openscad.exe. All the errors were symbols duplicated in
libdouble-conversion.a. Replacing the library with an empty one did the
trick. Obviously this solution is far from ideal, so I'm asking if anybody
has a better solution.
The commands I used to compile:
source ./scripts/setenv-mingw-xbuild.sh 64
./scripts/mingw-x-build-dependencies.sh 64
./scripts/release-common.sh mingw64
Thank you in advance for your help!
On 28.02.22 13:55, maurizio butti wrote:
Some woes trying to cross compile for Windows.
My first question would be what your goal is. There's multiple
ways for building, why use cross-compile on Windows for Windows?
Other options:
MSYS2 (might be slightly out of date?)
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Building_on_Microsoft_Windows
Visual Studio (using VCPKG)
https://github.com/openscad/openscad/pull/4126
ciao,
Torsten.