Giter Club home page Giter Club logo

Comments (15)

MBilderbeek avatar MBilderbeek commented on June 26, 2024

Hi,

Can you be more specific on what is going wrong?

The thing is, none of the developers are Windows users. But we got the Windows build to work on GitHub Actions. So, if you are able to perform the steps from that, you should be able to do it. And with these steps and your experiences, we can improve the documentation.
So, please be very concrete about what you're running into and what it is that is different from the steps on the GitHub Actions. See https://github.com/openMSX/openMSX/blob/master/.github/actions/build/action.yml
There is both a MinGW build and a Visual Studio based build done in there.

from openmsx.

Vampier avatar Vampier commented on June 26, 2024

from openmsx.

Steveneska avatar Steveneska commented on June 26, 2024

@MBilderbeek Sorry, I should have shared my environment details earlier. I'm running Visual Studio 2023 / MSYS2 20231026 on Windows 11 Build 22631.2861. I did Google a bit the issue and found that I needed to install Qt as well to build on Windows with Visual Studio? I haven't installed Qt yet though, just cleaned up my PC a couple of days ago. Looking into the Github actions now.

@Vampier that would be much appreciated. Thank you.

from openmsx.

MBilderbeek avatar MBilderbeek commented on June 26, 2024

I assumed that you were talking about openMSX, not another application like Catapult or the separate debugger. In that case, you do not need Qt.

Are you building the latest git code?

from openmsx.

Steveneska avatar Steveneska commented on June 26, 2024

Yes, I was trying to build OpenMSX only from the latest Git codebase.

from openmsx.

MBilderbeek avatar MBilderbeek commented on June 26, 2024

Good, then no Qt needed at all. Just tell us what exactly you are running into and we can try to help. As we are building for windows automatically, I still think that method must be working also for you.

from openmsx.

Steveneska avatar Steveneska commented on June 26, 2024

@MBilderbeek Looking at the Github Actions, I have no issue downloading Windows dependencies and building them but running msbuild /m /p:Configuration=Release /p:Platform=x64 build\msvc\openmsx.sln /m will throw this error:
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for '..\..\src\openmsx.hh' exited with code 9009

Looking at the file in question:

<CustomBuild Condition ="'@(_CustomBuild)' != ''"
      Sources                     ="@(_CustomBuild)"
      BuildSuffix                 ="$(_BuildSuffix)"

      MinimalRebuildFromTracking  ="false"
      AcceptableNonZeroExitCodes  ="%(_CustomBuild.AcceptableNonZeroExitCodes)"
      StdOutEncoding = "%(_CustomBuild.StdOutEncoding)"
      StdErrEncoding = "%(_CustomBuild.StdErrEncoding)"
    >
    </CustomBuild>

from openmsx.

Steveneska avatar Steveneska commented on June 26, 2024

Using MinGW to build OpenMSX failed when downloading the package pkg-config-0.29.2.tar.gz with error: urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006 error

Downloading the package manually and placing it in the proper directory fixed this issue but later in the process I get:

make -C derived/x86_64-mingw-w64-opt-3rd/3rdparty/build/pkg-config-0.29.2
make[3]: Entering directory '/c/Users/Steven/source/repos/openmsx/derived/x86_64-mingw-w64-opt-3rd/3rdparty/build/pkg-config-0.29.2'
Makefile:312: *** missing separator.  Stop.
make[3]: Leaving directory '/c/Users/Steven/source/repos/openmsx/derived/x86_64-mingw-w64-opt-3rd/3rdparty/build/pkg-config-0.29.2'
make[2]: *** [build/3rdparty.mk:156: derived/x86_64-mingw-w64-opt-3rd/3rdparty/timestamps/build-pkg-config-0.29.2] Error 2
make[2]: Leaving directory '/c/Users/Steven/source/repos/openmsx'
make[1]: *** [build/main.mk:624: run-3rdparty] Error 2
make[1]: Leaving directory '/c/Users/Steven/source/repos/openmsx'
make: *** [build/main.mk:614: 3rdparty] Error 2

from openmsx.

MBilderbeek avatar MBilderbeek commented on June 26, 2024

@MBilderbeek Looking at the Github Actions, I have no issue downloading Windows dependencies and building them but running msbuild /m /p:Configuration=Release /p:Platform=x64 build\msvc\openmsx.sln /m will throw this error: C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for '..\..\src\openmsx.hh' exited with code 9009

Looking at the file in question:

<CustomBuild Condition ="'@(_CustomBuild)' != ''"
      Sources                     ="@(_CustomBuild)"
      BuildSuffix                 ="$(_BuildSuffix)"

      MinimalRebuildFromTracking  ="false"
      AcceptableNonZeroExitCodes  ="%(_CustomBuild.AcceptableNonZeroExitCodes)"
      StdOutEncoding = "%(_CustomBuild.StdOutEncoding)"
      StdErrEncoding = "%(_CustomBuild.StdErrEncoding)"
    >
    </CustomBuild>

What can I say? It works on GitHub Actions, so I'm not sure what's going wrong. That error code seems to be a 'file not found' but I can't see which command was running and which file was not found. I'm not running Windows myself, so I can't try it (hence my pointing to GitHub Actions).

from openmsx.

MBilderbeek avatar MBilderbeek commented on June 26, 2024

Using MinGW to build OpenMSX failed when downloading the package pkg-config-0.29.2.tar.gz with error: urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006 error

Downloading the package manually and placing it in the proper directory fixed this issue but later in the process I get:

make -C derived/x86_64-mingw-w64-opt-3rd/3rdparty/build/pkg-config-0.29.2
make[3]: Entering directory '/c/Users/Steven/source/repos/openmsx/derived/x86_64-mingw-w64-opt-3rd/3rdparty/build/pkg-config-0.29.2'
Makefile:312: *** missing separator.  Stop.
make[3]: Leaving directory '/c/Users/Steven/source/repos/openmsx/derived/x86_64-mingw-w64-opt-3rd/3rdparty/build/pkg-config-0.29.2'
make[2]: *** [build/3rdparty.mk:156: derived/x86_64-mingw-w64-opt-3rd/3rdparty/timestamps/build-pkg-config-0.29.2] Error 2
make[2]: Leaving directory '/c/Users/Steven/source/repos/openmsx'
make[1]: *** [build/main.mk:624: run-3rdparty] Error 2
make[1]: Leaving directory '/c/Users/Steven/source/repos/openmsx'
make: *** [build/main.mk:614: 3rdparty] Error 2

Also strange. The same file is downloaded from Linux just fine. We cross-compile on Linux to Windows on GitHub Actions.

from openmsx.

Steveneska avatar Steveneska commented on June 26, 2024

Yes, when building from WSL (Windows Subsystem for Linux), I had no issue downloading dependencies. The reason I don't run WSL anymore (or at least right now) is because it disables overclocking and hurt performance in some games I run on my PC.

I used the Github Actions to build with MSBuild but still got the same errors. Could be that OpenMSX uses a previous version of VC++ that I'm missing in my VS install? I will investigate further to find out.

from openmsx.

MBilderbeek avatar MBilderbeek commented on June 26, 2024

You can see which version is used on the GitHub Actions runners overview: https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md Looks like it's Visual Studio Enterprise 2022 (we use windows-latest).

from openmsx.

MBilderbeek avatar MBilderbeek commented on June 26, 2024

Any news?

from openmsx.

Steveneska avatar Steveneska commented on June 26, 2024

I haven't looked into it lately. Will try to build again later tonight and update my comment.

from openmsx.

MBilderbeek avatar MBilderbeek commented on June 26, 2024

Any results?

from openmsx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.