Previous 2.3: compiling for Windows

NeXT Computer, Inc. -> Emulation / Virtualization

Title: Previous 2.3: compiling for Windows
Post by: pomosapien on September 11, 2021, 09:39:12 AM
@andreas_g said:
> Building on Windows is possibly broken. Some porting efforts will be required to port the latest NFS/netboot code in branch_filesharing to other platforms (for now only works on macOS).

More clarity re:
> I can't build for Windows

I can't set up a build for Windows, as i can't find the exact cross-compilation toolkit called out by the code... let's see...

./cmake/Toolchain-mingw32.cmake:SET(CMAKE_C_COMPILER i586-mingw32msvc-gcc)
./cmake/Toolchain-mingw32.cmake:SET(CMAKE_CXX_COMPILER i586-mingw32msvc-g++)
./cmake/Toolchain-mingw32.cmake:SET(CMAKE_RC_COMPILER i586-mingw32msvc-windres)
./cmake/Toolchain-mingw32.cmake:SET(CMAKE_ASM_COMPILER i586-mingw32msvc-as)
./cmake/Toolchain-mingw32.cmake:SET(CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc/ )


So i wonder what exact OS, OS version etc has this compiler, or otherwise how to get it.
Just realized that i was imagining a "build on Linux for Windows" workflow and not "build on Windows in MING32 for Windows".
Title: Re: Previous 2.3: compiling for Windows
Post by: pomosapien on September 13, 2021, 08:10:36 AM
Personally, i have now taken a side approach of not building Windows native but building inside WSL and exporting Previous to an X11 server running in Windows native.  It works pretty well if you disable mouse grabbing.

https://drive.google.com/file/d/11Kixbb_Qu8DZTo1QxAL2lPxpZB33Uq1F/view?usp=sharing
Title: Re: Previous 2.3: compiling for Windows
Post by: pomosapien on September 15, 2021, 08:15:21 AM
If you do export the display remotely like this and your cursor disappears, you may need to turn off mouse autolock and not use mouse locking.

Go to top  Forum index