Comments (15)
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.
from openmsx.
@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.
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.
Yes, I was trying to build OpenMSX only from the latest Git codebase.
from openmsx.
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.
@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.
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 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.
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.
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.
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.
Any news?
from openmsx.
I haven't looked into it lately. Will try to build again later tonight and update my comment.
from openmsx.
Any results?
from openmsx.
Related Issues (20)
- Debugging should unpause the emulation HOT 3
- "Select MSX machine..." dialog usability HOT 3
- Regarding incorrect specifications of PCM of MSX turboR HOT 3
- Feature request: Add SCCI hardware interface HOT 4
- Overscan setting HOT 1
- Support emulation of plotter (like Sony PRN-C41)
- Problem with loading on MSX tR disk drive (TC8566AF) HOT 17
- Problem d-pad of Dualshock 4 HOT 21
- Support bind with also letting the key press go to the MSX
- Add support for a 'configuration setup'
- Machine selector generates many SRAM file not found messages HOT 3
- Cannot load settings HOT 3
- load_settings <file> working weird HOT 2
- save_settings <file> is removing some existing settings! HOT 4
- Pasting text into a debugger window results in emulator keystrokes HOT 2
- Active ImGuiSpriteViewer during boot crashes OpenMSX HOT 4
- Zombie Hunter won't run properly HOT 4
- OpenMSX crashes after deleting imgui.ini and restarting HOT 2
- Error executing hot key command: invalid command name "lmap" HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openmsx.