Windows build environment?

About BasiliskII, a 68k Mac emulator for Windows, MacOSX, and Linux that can run System 7.x through MacOS 8.1.

Moderators: Cat_7, Ronald P. Regensburg

Post Reply
emendelson
Forum All-Star
Posts: 1706
Joined: Tue Oct 14, 2008 12:12 am

Windows build environment?

Post by emendelson »

I'm able to build BasiliskII and SheepShaver on my old Windows system using MSYS32. That version of MSYS is no longer supported, and I'm trying to set up a build environment on a new system. Here's what I've done so far:

1. I followed the installation procedure spelled out here:

https://gist.github.com/thales17/fb2e4c ... 4c6e832ad2

2. I then ran

Code: Select all

pacman -S autoconf automake pkg-config mingw-w64-x86_64-gtk2 gcc
3. I then followed the build procedure on kanjitalk755's github page, using MSYS2 MINGW64 (other options produced errors earlier in the process).

4. I got this error:

Code: Select all

g++ -I../include -I. -I../CrossPlatform -I../uae_cpu -I../slirp -DHAVE_CONFIG_H  -DDIRECT_ADDRESSING -DUNALIGNED_PROFITABLE -DX86_64_ASSEMBLY -DOPTIMIZED_FLAGS -DUSE_JIT -DUSE_JIT_FPU -DFPU_IEEE -O2 -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -c cdenable/ntcd.cpp -o obj/ntcd.o
cdenable/ntcd.cpp: In function 'int CdenableSysReadCdBytes(HANDLE, DWORD, DWORD, char*)':
cdenable/ntcd.cpp:208:24: error: cast from 'HANDLE' {aka 'void*'} to 'DWORD' {aka 'long unsigned in
'} loses precision [-fpermissive]
  208 |         in_buffer[0] = (DWORD)h;
      |                        ^~~~~~~~
cdenable/ntcd.cpp:211:24: error: cast from 'char*' to 'DWORD' {aka 'long unsigned int'} loses precision [-fpermissive]
  211 |         in_buffer[3] = (DWORD)buf;
      |                        ^~~~~~~~~~
make: *** [Makefile:151: obj/ntcd.o] Error 1
Is there a guide to setting up a build environment in Windows that would help me avoid this error? Many thanks for any advice.
emendelson
Forum All-Star
Posts: 1706
Joined: Tue Oct 14, 2008 12:12 am

Re: Windows build environment?

Post by emendelson »

kanjitalk755 has now updated the instructions for building under Windows, and the problem is solved. See kanjitalk755's readme file for details.
Post Reply