How can I build openmsx debugger on Windows?

By Bengalack

Resident (62)

Bengalack's picture

01-03-2020, 22:29

I find that the latest debugger-build is from 2018 (x64) and 2014 (win32), so I figured that if I wanted recent fixes, I need to build it myself on windows. I'm on windows 10 and looking for an x64 version.

Being unfamiliar with all the variants of dev tools, I'm a bit puzzled. git/gnumake/qt/python and whatnot Smile

But I have found this place on github: https://github.com/openMSX/debugger and I have installed git as well as Visual Studio Community ed. and Visual Studio Code. Even registered myself as user, so I should be able to both clone and even make pull-requests (God forbid).

I have cloned the repo to my hard drive. Then what? In the repo I find build instruction: "Build with: make". Visual Studio's Build menu does not help. I cannot write 'make' from the command line either. This is likely where I am stuck.

If I try to run the command "./build/package-windows/package.cmd" I find that the python code within probably is python 2, while all I have atm is python 3, so it does not work (complains about print without parenthesis).

Could someone write down a step by step for how to build this? Would be great :)

Login or register to post comments

By Manuel

Ascended (16158)

Manuel's picture

01-03-2020, 22:55

Perhaps it's good if you first check which 'recent fixes' have been made: https://github.com/openMSX/debugger/commits/master :)

I guess you just have to load the Visual Studio project from build/msvc?

By Vampier

Prophet (2340)

Vampier's picture

01-03-2020, 23:02

The windows compiler is build with Qt5.7.0 - keep in mind that only the 64bit version works and can be compiled with Visual Studio. I use Visual Studio Prof for the official builds. I can't remember what I all did to get QT to compile.

I build from the commandline with

@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
msbuild -p:Configuration=Release;Platform=x64 build\msvc\openmsx-debugger.sln /m 

By Bengalack

Resident (62)

Bengalack's picture

02-03-2020, 18:44

Thank you. I will try these new leads Smile

By Bengalack

Resident (62)

Bengalack's picture

07-03-2020, 22:59

(Never mind - I wrote a lot of stuff, and then realized what I was missing. Apologize for the noise)

By Manuel

Ascended (16158)

Manuel's picture

08-03-2020, 00:25

So, you got it working now?

By Bengalack

Resident (62)

Bengalack's picture

08-03-2020, 09:37

Just a quick update on this. The reason I wanted to build the debugger was that Grauw mentioned a commit that was needed for a full usage of the newest versions of the tcl-profiler scripts. I mistakenly read that this was about the debugger - it was about openMSX.exe. Which means, I'm heading over to that build-process instead Smile

Quote:

Perhaps it's good if you first check which 'recent fixes' have been made: https://github.com/openMSX/debugger/commits/master :)

Thanks, Manuel. Given this, there is really no reason to build on windows.