configure script can't find mingw

Questions about Wine on macOS.
Locked
stealthdave
Newbie
Newbie
Posts: 2
Joined: Tue May 14, 2024 11:07 pm

configure script can't find mingw

Post by stealthdave »

I'm trying to install from source, but the configure script can't find my installation of mingw-w64. Here's the (extremely long) output from `./configure`:

Code: Select all

./configure --prefix=/Users/<yournamehere>/development/wine-wc --enable-archs=x86_64
checking build system type... x86_64-apple-darwin23.4.0
checking host system type... x86_64-apple-darwin23.4.0
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... -std=gnu++11
checking for cpp... cpp
checking for ld... ld
checking for the directory containing the Wine tools... 
checking for flex... flex
checking whether flex is recent enough... yes
checking for bison... bison
checking whether bison is recent enough... yes
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ldconfig... true
checking for msgfmt... msgfmt
checking for pkg-config... pkg-config
checking whether msgfmt supports contexts... yes
checking for i386_set_ldt in -li386... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for CL/cl.h... no
checking for EGL/egl.h... no
checking for IOKit/usb/IOUSBLib.h... yes
checking for OpenCL/opencl.h... yes
checking for arpa/inet.h... yes
checking for arpa/nameser.h... yes
checking for asm/types.h... no
checking for asm/user.h... no
checking for elf.h... no
checking for float.h... yes
checking for gettext-po.h... yes
checking for libproc.h... yes
checking for link.h... no
checking for linux/cdrom.h... no
checking for linux/filter.h... no
checking for linux/hdreg.h... no
checking for linux/hidraw.h... no
checking for linux/input.h... no
checking for linux/ioctl.h... no
checking for linux/major.h... no
checking for linux/param.h... no
checking for linux/serial.h... no
checking for linux/types.h... no
checking for linux/ucdrom.h... no
checking for linux/wireless.h... no
checking for lwp.h... no
checking for mach-o/loader.h... yes
checking for mach/mach.h... yes
checking for machine/cpu.h... no
checking for machine/sysarch.h... no
checking for mntent.h... no
checking for netdb.h... yes
checking for netinet/in.h... yes
checking for netinet/in_systm.h... yes
checking for netinet/tcp.h... yes
checking for netinet/tcp_fsm.h... yes
checking for pcap/pcap.h... yes
checking for port.h... no
checking for pwd.h... yes
checking for sched.h... yes
checking for scsi/scsi.h... no
checking for scsi/scsi_ioctl.h... no
checking for scsi/sg.h... no
checking for stdint.h... (cached) yes
checking for sys/attr.h... yes
checking for sys/auxv.h... no
checking for sys/cdio.h... no
checking for sys/epoll.h... no
checking for sys/event.h... yes
checking for sys/eventfd.h... no
checking for sys/extattr.h... no
checking for sys/filio.h... yes
checking for sys/ipc.h... yes
checking for sys/link.h... no
checking for sys/modem.h... no
checking for sys/mtio.h... no
checking for sys/param.h... yes
checking for sys/prctl.h... no
checking for sys/ptrace.h... yes
checking for sys/queue.h... yes
checking for sys/random.h... yes
checking for sys/resource.h... yes
checking for sys/scsiio.h... no
checking for sys/shm.h... yes
checking for sys/signal.h... yes
checking for sys/socketvar.h... yes
checking for sys/sockio.h... yes
checking for sys/statvfs.h... yes
checking for sys/strtio.h... no
checking for sys/syscall.h... yes
checking for sys/sysinfo.h... no
checking for sys/times.h... yes
checking for sys/uio.h... yes
checking for sys/user.h... yes
checking for sys/utsname.h... yes
checking for sys/vnode.h... yes
checking for sys/xattr.h... yes
checking for syscall.h... no
checking for utime.h... yes
checking for valgrind/memcheck.h... no
checking for valgrind/valgrind.h... no
checking for sys/mkdev.h... no
checking for sys/sysmacros.h... no
checking whether stat file-mode macros are broken... no
checking for sys/conf.h... yes
checking for sys/mount.h... yes
checking for sys/statfs.h... no
checking for sys/user.h... (cached) yes
checking for sys/vfs.h... no
checking for sys/sysctl.h... yes
checking for netinet/ip.h... yes
checking for net/if.h... yes
checking for net/if_arp.h... yes
checking for net/if_dl.h... yes
checking for net/if_types.h... yes
checking for net/route.h... yes
checking for netinet/if_ether.h... yes
checking for netinet/in_pcb.h... yes
checking for netinet/ip_icmp.h... yes
checking for netinet/ip_var.h... yes
checking for netinet/udp.h... yes
checking for netinet6/ip6_var.h... no
checking for netipx/ipx.h... no
checking for sys/un.h... yes
checking for netinet/udp_var.h... yes
checking for netinet/icmp_var.h... yes
checking for netinet/icmp6.h... yes
checking for netinet/tcp_var.h... yes
checking for linux/ipx.h... no
checking for linux/irda.h... no
checking for linux/rtnetlink.h... no
checking for resolv.h... yes
checking for ifaddrs.h... yes
checking for sys/ucontext.h... yes
checking for sys/thr.h... no
checking for pthread_np.h... no
checking for linux/videodev2.h... no
checking for libprocstat.h... no
checking whether getxattr takes additional arguments... yes
checking for ldd... true
checking for otool... otool
checking for readelf... no
checking for gcc... gcc
checking whether the compiler supports GNU Objective C... yes
checking whether gcc accepts -g... yes
checking for AVFoundation/AVFoundation.h... yes
checking whether the compiler supports -Wl,-no_pie... yes
checking for IOServiceMatching... yes
checking whether MTLDevice protocol supports registryID property... yes
checking for x86_64-w64-mingw32-gcc... x86_64-w64-mingw32-gcc
checking whether x86_64-w64-mingw32-gcc works... no
configure: error: MinGW x86_64 compiler not found.
This is an error since --enable-archs=x86_64 was requested.
Xcode commandline tools are installed, and mingw-w64 is installed via brew. Running `which x86_64-w64-mingw32-gcc` returns `/usr/local/bin/x86_64-w64-mingw32-gcc`. I'm running the configure script in a Rosetta 2 zsh terminal. I suspect that I need to tell configure where to look for mingw, but I can't figure out the flag or environment variable to use. Any assistance would be greatly appreciated!

- Dave
stealthdave
Newbie
Newbie
Posts: 2
Joined: Tue May 14, 2024 11:07 pm

[SOLVED] Re: configure script can't find mingw

Post by stealthdave »

After a week of fumbling around, I managed to get the configure script to complete! It seemed that there were a number of packages in brew that had become unlinked or were not properly installed. I re-linked or re-installed the following packages:
  • aribb24
  • libtasn1
  • libtiff
  • libmpc
They seemed to all be related to the ffmpeg install, but it's hard to say for sure. Once I finished those updates, I started receiving an error about missing OpenGL support and that DirectX would not be built so I changed my config command to this:

Code: Select all

./configure --prefix=/Users/<yournamehere>/development/wine-wc --enable-win64 CPPFLAGS='-I/usr/X11/include' LIBS='-lGL -lGLU' LDFLAGS='-L/usr/X11/lib'
That resolved the OpenGL message. It's building now and there may yet be more issues, but the configure issue has been resolved.
Locked