VOGONS


First post, by christophedlr

User metadata
Rank Newbie
Rank
Newbie

Hello,

I wanted to build DOSBox V0.70, but I had straight severals errors.
For example:
[quote=GCC]`__forceinline' does not name a type[/quote]
and the second error:
[quote=GCC]`__int64' does not name a type[/quote]

For the one error, that is line 87 of mem.h file:

INLINE Bit8u host_readb(HostPt off) {
return *(Bit8u *)off;
};

For the second error, that is line 69 and 71 of config.h file:

typedef unsigned __int64	Bit64u;
typedef signed __int64 Bit64s;

Have can explain me how build DOSBox V0.70 please ?
I am under Windows XP Professionnal Service Pack 2 and with GCC(mingw32) compiler.

Thank you for advance.

P.S.: Please excuse me for my bad english.

Reply 4 of 15, by christophedlr

User metadata
Rank Newbie
Rank
Newbie

Hello Wd,

I not use ./autogen.sh and ./configure but I am under windows and not under linux.

You copied the msvc-style config.h which won't work with mingw.

I have just import Mcirosoft VC project in the code-blocks and run the build with GCC(include in mingw32 for windows 😉).

Reply 6 of 15, by christophedlr

User metadata
Rank Newbie
Rank
Newbie

The problems with use MSYS/Cygwin it is that if I the use, the result will be that note use DOSBox in windows but the result of build, will make binary file for linux and not binary file for Windows.

Reply 9 of 15, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

didn't quite understand what you wrote in the last post, but builds of Dosbox made by mingw+msys are perfectly useable under Windows. Only uses the mingw dll, which you have on your system anyway when you have mingw installed. Probably there is a way to make it not use the dll and instead built it inside, don't know about that though.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 12 of 15, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

MinGW builds use Microsoft runtime dlls

Then I need help to solve my compilation to not require mingwm10.dll

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 13 of 15, by christophedlr

User metadata
Rank Newbie
Rank
Newbie

I come testing build under linux.
It is spirit of build, and there is not error for moment.
While passing, I asked at brother, It says like me: have should not need install Msys or Cygwin for build DOSBox in Windows(my brother is programmer in BAC+5).

Reply 14 of 15, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

well, yes, your brother is right you don't need Msys (no one but you is talking about Cygwin - there is a big difference between those two) to build Dosbox in Windows. BUT you need Msys for compiling Dosbox WITH Mingw.
You can use the MS compiler I guess with the Visual C (.Net) project files, I *think* MS gives the basic compiler away for free these days.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 15 of 15, by christophedlr

User metadata
Rank Newbie
Rank
Newbie

Thank you Dominus, I have Microsoft Visual C++ 2005 Express Edition installed.
I must have install the Microsoft Platform SDK and Microsoft DirectX SDK to build the programs not use .NET.

thank you for your assistance Dominus.