chasonr / nethack-3.6.0-patches

NetHack 3.6.0 with bug fixes and new interfaces
9 stars 1 forks source link

Compile with Qt 5 on Windows #8

Open chasonr opened 6 years ago

chasonr commented 6 years ago

Reposting comment from tux871 on the Devteam's repository:

"Did not understand which project gave way to msys2? Did not understand your phrase "against either Qt 4 or 5, using MinGW-w64", does this mean that I can compile only the qt 4 branch in windows? I have to use a branch: interfaces, right? What is the easiest way to compile? Without a difference, qt 4 or 5. I have little idea what to do in order to compile, what should I read to learn how to do this?"

chasonr commented 6 years ago

I meant to say that MSYS2 seems to be overtaking MinGW-w64. Qt 5 is still OK on Windows.

Take these instructions with a grain of salt; I'm booted into Fedora and would need to reboot to Windows to check them out:

You'll need to install Qt; as noted above, the current Qt comes with a copy of MinGW-w32. Your favorite Windows version of git will also make this easier. Download the nethack-3.6.0-patches archive, and set the branch to interfaces. Run setup.bat from sys/winnt.

Go to src and edit Makefile.gcc. You'll probably want these settings: TARGET_CPU=x86 WANT_WIN_QT4=1 WANT_WIN_SDL2=0 WANT_WIN_CURSES=0 QT4_DIRECTORY=c:/Qt/Qt5.9.2/5.9.2/mingw53_32 # or whichever version you've installed HAVE_QT5=Y WANT_PNG=N

Run mingw32-make -f Makefile.gcc and let me know how it goes.

tux871 commented 6 years ago

Thanks for the answer, I will try!

tux871 commented 6 years ago

Ok, I did everything, but I could not compile. Here's the log:

Click to expand -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/mail. o ../src/mail.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/makem on.o ../src/makemon.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/mapgl yph.o ../src/mapglyph.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/mcast u.o ../src/mcastu.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/mhitm .o ../src/mhitm.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/mhitu .o ../src/mhitu.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/minio n.o ../src/minion.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/mklev .o ../src/mklev.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/mkmap .o ../src/mkmap.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/mkmaz e.o ../src/mkmaze.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/mkobj .o ../src/mkobj.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/mkroo m.o ../src/mkroom.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/mon.o ../src/mon.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/monda ta.o ../src/mondata.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/monmo ve.o ../src/monmove.c ..\util\makedefs -m gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/monst r.o ../src/monstr.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/mplay er.o ../src/mplayer.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/mthro wu.o ../src/mthrowu.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/muse. o ../src/muse.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/music .o ../src/music.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/o_ini t.o ../src/o_init.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/objna m.o ../src/objnam.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/optio ns.o ../src/options.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/pager .o ../src/pager.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/picku p.o ../src/pickup.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/pline .o ../src/pline.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/polys elf.o ../src/polyself.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/potio n.o ../src/potion.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/pray. o ../src/pray.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/pries t.o ../src/priest.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/quest .o ../src/quest.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/quest pgr.o ../src/questpgr.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/random. o ../sys/share/random.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/read. o ../src/read.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/rect. o ../src/rect.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/regio n.o ../src/region.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/resto re.o ../src/restore.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/rip.o ../src/rip.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/rnd.o ../src/rnd.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/role. o ../src/role.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/rumor s.o ../src/rumors.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/save. o ../src/save.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/shk.o ../src/shk.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/shkna m.o ../src/shknam.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/sit.o ../src/sit.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/sound s.o ../src/sounds.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/sp_le v.o ../src/sp_lev.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/spell .o ../src/spell.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/steal .o ../src/steal.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/steed .o ../src/steed.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/sys.o ../src/sys.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/telep ort.o ../src/teleport.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/timeo ut.o ../src/timeout.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/topte n.o ../src/topten.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/track .o ../src/track.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/trap. o ../src/trap.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/u_ini t.o ../src/u_init.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/uhitm .o ../src/uhitm.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/vault .o ../src/vault.c ..\util\makedefs -z gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/vis_t ab.o ../src/vis_tab.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/visio n.o ../src/vision.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/weapo n.o ../src/weapon.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/were. o ../src/were.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/wield .o ../src/wield.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/windo ws.o ../src/windows.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/wizar d.o ../src/wizard.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/worm. o ../src/worm.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/worn. o ../src/worn.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/write .o ../src/write.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/zap.o ../src/zap.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/strin g.o ../src/string.c gcc -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -oo/unico de.o ../src/unicode.c g++ -c -mms-bitfields -I../include -g -DTILES -DMSWIN_GRAPHICS -DWIN32CON -D_WI N32_IE=0x0400 -D_WIN32_WINNT=0x0501 -DQT_GRAPHICS -DSDL2_GRAPHICS -DPOSITIONBAR -DCURSES_GRAPHICS -DHAVE_PNG -IC:/Users/bravo/x86libs/lpng1621 -DDLB -I../win/wi n32 -IC:\Qt\Qt5.9.2\Tools\mingw530_32/include -oo/qt4regex.o ../win/Qt4/qt4rege x.cpp ../win/Qt4/qt4regex.cpp:5:26: fatal error: QtCore/QRegExp: No such file or direc tory compilation terminated. Makefile.gcc:647: recipe for target 'o/qt4regex.o' failed mingw32-make: *** [o/qt4regex.o] Error 1 C:\Users\bravo\Documents\GitHub\nethack-3.6.0-patches\src>

When I installed qt 5.9.2, I was offered to install two different versions of mingw, I installed both. There are two paths: C: \ Qt \ Qt5.9.2 \ 5.9.2 \ mingw53_32 \ C: \ Qt \ Qt5.9.2 \ Tools \ mingw530_32 \ File mingw32-make.exe is not present in the folder C: \ Qt \ Qt5.9.2 \ 5.9.2 \ mingw53_32 \ bin \, is in C: \ Qt \ Qt5.9.2 \ Tools \ mingw530_32 \ bin . In the makefile.gcc file, I specified QT4_DIRECTORY = C: \ Qt \ Qt5.9.2 \ Tools \ mingw530_32. What could be the problem?

chasonr commented 6 years ago

First, let me revise my instructions. The lines containing WANT_WIN_SDL2, WANT_WIN_CURSES and WANT_PNG need to be commented out, not changed. Mea culpa. I should revise Makefile.gcc to make that clearer. You'll want to do "mingw32-make -f Makefile.gcc spotless" before you try again.

Second, the QT4_DIRECTORY is for finding that include file named in the error at the end, and others like it. It needs to be C:/Qt/Qt5.9.2/5.9.2/mingw53_32 , and you probably should use the forward slashes, usual practice on Windows notwithstanding.

Your PATH environment variable finds mingw32-make; it also finds gcc, and it did find gcc, so that seems to be set correctly.

tux871 commented 6 years ago

I commented WANT_WIN_SDL2, WANT_WIN_CURSES and WANT_PNG lines. Registered in makefile.gcc: QT4_DIRECTORY = C: /Qt/Qt5.9.2/5.9.2/mingw53_32 . Result:

Click to expand ^ In file included from C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qregexp.h:43 :0, from C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/QRegExp:1, from ../win/Qt4/qt4regex.cpp:5: C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:927:23: error: expected ',' or '...' before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:938:25: error: expected ',' or '...' before '&&' token QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsCo nst(c).end()) {} ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:940:41: error: expected ',' or '...' before '&&' token QForeachContainer(QForeachContainer &&other) ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:940:48: error: invalid c onstructor; you probably meant 'QtPrivate::QForeachContainer (const QtPrivate ::QForeachContainer&)' QForeachContainer(QForeachContainer &&other) ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:948:52: error: expected ',' or '...' before '&&' token QForeachContainer &operator=(QForeachContainer &&other) ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:959:19: warning: non-sta tic data member initializers only available with -std=c++11 or -std=gnu++11 int control = 1; ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h: In constructor 'QtPriva te::QForeachContainer::QForeachContainer(T)': C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:938:34: error: 'move' is not a member of 'std' QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsCo nst(c).end()) {} ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:938:44: error: 't' was n ot declared in this scope QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsCo nst(c).end()) {} ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h: In member function 'QtP rivate::QForeachContainer& QtPrivate::QForeachContainer::operator=(QtPriva te::QForeachContainer)': C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:950:13: error: 'move' is not a member of 'std' c = std::move(other.c); ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:950:23: error: 'other' w as not declared in this scope c = std::move(other.c); ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:953:19: error: 'move' is not a member of 'std' control = std::move(other.control); ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h: At global scope: C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:963:33: error: 'decay' i n namespace 'std' does not name a template type QForeachContainer::type> qMakeForeachContainer(T &&t) ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:963:38: error: expected template-argument before '<' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:963:38: error: expected '>' before '<' token C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:963:47: error: template argument 1 is invalid QForeachContainer::type> qMakeForeachContainer(T &&t) ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:963:49: error: expected '::' before 'qMakeForeachContainer' QForeachContainer::type> qMakeForeachContainer(T &&t) ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:963:73: error: expected ',' or '...' before '&&' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h: In function 'int QtPriv ate::qMakeForeachContainer(T)': C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:965:44: error: 'decay' i n namespace 'std' does not name a template type return QForeachContainer::type>(std::forward(t)); ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:965:49: error: expected template-argument before '<' token return QForeachContainer::type>(std::forward(t)); ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:965:49: error: expected '>' before '<' token C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:965:58: error: template argument 1 is invalid return QForeachContainer::type>(std::forward(t)); ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:965:59: error: expected '::' before '(' token return QForeachContainer::type>(std::forward(t)); ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:965:59: error: expected identifier before '(' token C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:965:60: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:965:74: error: expected primary-expression before '>' token return QForeachContainer::type>(std::forward(t)); ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:965:76: error: 't' was n ot declared in this scope return QForeachContainer::type>(std::forward(t)); ^ In file included from C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qglobal.h:11 52:0, from C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qregexp.h:43 , from C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/QRegExp:1, from ../win/Qt4/qt4regex.cpp:5: C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h: At global scope: C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:61:25: error: 'is_enum ' is not a member of 'std' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:61:39: error: expected primary-expression before '>' token isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:61:40: error: '::value ' has not been declared isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:63:22: error: 'is_inte gral' is not a member of 'std' isIntegral = std::is_integral::value, ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:63:40: error: expected primary-expression before '>' token isIntegral = std::is_integral::value, ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:63:41: error: '::value ' has not been declared isIntegral = std::is_integral::value, ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:64:37: error: 'is_enum ' is not a member of 'std' isComplex = !isIntegral && !std::is_enum::value, ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:64:51: error: expected primary-expression before '>' token isComplex = !isIntegral && !std::is_enum::value, ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:64:52: error: '::value ' has not been declared isComplex = !isIntegral && !std::is_enum::value, ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:66:25: error: 'is_enum ' is not a member of 'std' isRelocatable = std::is_enum::value, ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:66:39: error: expected primary-expression before '>' token isRelocatable = std::is_enum::value, ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:66:40: error: '::value ' has not been declared isRelocatable = std::is_enum::value, ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:130:40: error: 'enable _if' in namespace 'std' does not name a template type struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:130:49: error: expecte d template-argument before '<' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:130:49: error: expecte d '>' before '<' token C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:130:92: error: templat e argument 2 is invalid struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:130:94: error: expecte d '::' before ':' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:130:94: error: expecte d identifier before ':' token C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:130:94: error: qualifi ed name does not name a class before ':' token C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:130:94: error: expecte d '{' before ':' token C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:130:94: error: expecte d unqualified-id before ':' token C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:256:22: error: 'is_int egral' is not a member of 'std' isIntegral = std::is_integral< TYPE >::value, \ ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:270:1: note: in expans ion of macro 'Q_DECLARE_TYPEINFO_BODY' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:256:45: error: expecte d primary-expression before '>' token isIntegral = std::is_integral< TYPE >::value, \ ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:270:1: note: in expans ion of macro 'Q_DECLARE_TYPEINFO_BODY' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:256:46: error: '::valu e' has not been declared isIntegral = std::is_integral< TYPE >::value, \ ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:270:1: note: in expans ion of macro 'Q_DECLARE_TYPEINFO_BODY' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:256:22: error: 'is_int egral' is not a member of 'std' isIntegral = std::is_integral< TYPE >::value, \ ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:265:1: note: in expans ion of macro 'Q_DECLARE_TYPEINFO_BODY' Q_DECLARE_TYPEINFO_BODY(TYPE, FLAGS) ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:300:1: note: in expans ion of macro 'Q_DECLARE_TYPEINFO' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:300:20: error: expecte d primary-expression before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:256:40: note: in defin ition of macro 'Q_DECLARE_TYPEINFO_BODY' isIntegral = std::is_integral< TYPE >::value, \ ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:300:1: note: in expans ion of macro 'Q_DECLARE_TYPEINFO' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:300:20: error: expecte d '}' before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:256:40: note: in defin ition of macro 'Q_DECLARE_TYPEINFO_BODY' isIntegral = std::is_integral< TYPE >::value, \ ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:300:1: note: in expans ion of macro 'Q_DECLARE_TYPEINFO' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:256:45: error: expecte d unqualified-id before '>' token isIntegral = std::is_integral< TYPE >::value, \ ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:265:1: note: in expans ion of macro 'Q_DECLARE_TYPEINFO_BODY' Q_DECLARE_TYPEINFO_BODY(TYPE, FLAGS) ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:300:1: note: in expans ion of macro 'Q_DECLARE_TYPEINFO' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:261:1: error: expected declaration before '}' token } ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:265:1: note: in expans ion of macro 'Q_DECLARE_TYPEINFO_BODY' Q_DECLARE_TYPEINFO_BODY(TYPE, FLAGS) ^ C:/Qt/Qt5.9.2/5.9.2/mingw53_32/include/QtCore/qtypeinfo.h:300:1: note: in expans ion of macro 'Q_DECLARE_TYPEINFO' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^ Makefile.gcc:647: recipe for target 'o/qt4regex.o' failed mingw32-make: *** [o/qt4regex.o] Error 1 C:\Users\bravo\Documents\GitHub\nethack-3.6.0-patches\src>
tux871 commented 6 years ago

Ok, its done with qt 4.8.6. I launch nethackw.exe, and I see the standard interface of nethack on windows, lol. When I wanted compile nethack on windows, first of all I wanted to see its interface, which I saw on Linux. nethack-qt-interface Is it possible to change the interface?

chasonr commented 6 years ago

Very interesting error dump...I'll have to investigate.

If you have a successful compile, you should have the file defaults.nh in the same directory as nethackw.exe. Edit this and add a line "OPTIONS=windowtype:Qt" wherever you find it convenient. Make sure no other "OPTIONS=windowtype:x" line is present.

tux871 commented 6 years ago

Now earned. Thank you so much! Somewhat buggy, but playable.

chasonr commented 6 years ago

I've updated Makefile.gcc. It now works with the current Qt 5; it needed -std=c++11. Would you like to try again? You'll need to run setup.bat and repeat your edits. If not, I'll go ahead and close this issue.

tux871 commented 6 years ago

Ok, i will try. What is -std=c++11?

chasonr commented 6 years ago

An option passed to the compiler, meaning use the 2011 version of C++. It's in Makefile.gcc; you don't need to set this yourself.

tux871 commented 6 years ago

It's working, gj! There is a couple of non-critical bugs, the first one: after starting the game and selecting a character, the error pops up: IO Error Cannot load "\nethack/rip.xpm", if you press ok, the game continues without any problems, only when you die, the picture of the tombstone is not displayed. The rip.xpm file exists in the folder. The second bug: if you close the nethack through a cross in the upper right corner, writes "This will end your NetHack session", it is suggested to choose "save" or "cancel". If you select "cancel", the game closes, but remains in the processes in the task manager.

chasonr commented 6 years ago

Thanks! I'll leave this issue open for now, since you have reported bugs.

mikeage commented 6 years ago

The rip.xpm issue looks like it might be related to #7