#1282 Multiple issues when compiling for Windows

open
nobody
5
2012-10-15
2012-02-17
Kineta
No

I've tried to compile Bochs 2.5.1 for Windows x64 several times, both natively and cross-compiling, but I kept running into a problem with cdrom_misc.cc. This is because it's not meant for Windows. Looking through the configure file, I see that '-pc-mingw32' is used to detect MinGW. This is a problem, as I compiled MinGW w64 from source, and its host is 'x86_64-w64-mingw32'. I fixed this with "sed -i -e 's/-pc-mingw32/-mingw32/' configure" and continued compiling, but I later ran into another issue: It did not use x86_64-w64-mingw32-windres like it did with g++, but it tried to execute 'windres', which didn't exist. I symlinked it and moved on. Now I'm getting errors about "build\win32\nsis\logo.ico" being missing, yet it is clearly present. Are these bugs? If not, why is Bochs giving me so much grief? The Windows install is Windows 7, and the Linux install is BT5 (2.6.38).

Discussion

  • Kineta

    Kineta - 2012-02-18

    Also, the source files in cpu/cpudb seem to require the headers in cpu. I fixed it temporarily by copying them to cpudb.

     
  • Stanislav Shwartsman

    The patch merged to SVN rev11046. Can you check if it works for you ?

    Stanislav

     
  • Kineta

    Kineta - 2012-02-20

    Nope, I still have the cdrom_misc.cc problem. I would suggest running "sed -i -e 's/pc-mingw32/-mingw32/' configure" to fix the mis-identification of MinGW-w64. I've attached a log of my build, including "uname -a" and the svn command.

     
  • Kineta

    Kineta - 2012-02-20

    Bochs build log

     
  • Volker Ruppert

    Volker Ruppert - 2012-02-20

    Can you please try again with the latest SVN sources (rev. 11053) ? I have now changed all checks for MinGW target cases to '-mingw32'.

     
  • Kineta

    Kineta - 2012-02-21

    Using the same BT5 install, it now starts to compile for Windows, but now if I try to build it outside of the source directory, it complains about bochs.h being missing. Also, it looks for "windres" when it should be looking for "x86_64-w64-mingw32-windres".

     
  • Kineta

    Kineta - 2012-02-21

    Using the same BT5 install, it now starts to compile for Windows, but now if I try to build it outside of the source directory, it complains about bochs.h being missing. Also, it looks for "windres" when it should be looking for "x86_64-w64-mingw32-windres".

     

Log in to post a comment.