Open RayKoopa opened 8 years ago
Thanks for the detailed write-up. I'll look at it in detail later, but to start with the error at the end: that looks like a symbol from libstdc++
. Do you have a libstdc++.dll
(or maybe similar) in C:\msys32\mingw32\bin
that you could also try copying to the dosbox directory?
In fact, I had libstdc++-6.dll, copying that into the DOSBox directory helped. Funny, I thought if Windows says it doesn't find the symbol in DOSBox.exe, it had to be compiled into it =3
I had some specific problems with my MinGW/MSys installation. Make command resulted in some compiller errors like:
::sprintf has not been declared in some *.cpp.
I have solved it by adding at the top of all problem cpp-files the following include:
#include <cstdio>
On a side note. RayKoopa, just let me to kiss you for three times! I have meddled in all this mess for three evenings straight, just until I have found your marvelous instruction for MinGW begginners.
I have several issues being able to build IdaDOS and DOSBox on a fresh MSys2 installation when strictly following BUILD.md as I'm new to MSys2. There are some things which can be tricky for a beginner like me, which I bolded. I still can't compile DOSBox correctly eventually.
Sorry that I can't even teach Github to continue my list numbers when using code blocks.
Preparations
pacman -S mingw-w64-i686-toolchain
(installing all members)pacman -S mingw-w64-i686-SDL
as I need to build DOSBox too later on./d/idasdk68
.Compiling IdaDOS
/d/idados
.build_mingw.sh
to use../idasdk68
rather than../idasdk69
/d/idados
and executing./build_mingw.sh
.#ifdef __GNUC__
inpro.h
to#if 0
so it looks like this:./build_mingw.sh
again. Getting the error:ida.wll
into/d/idasdk68/bin/ida.dll
as actually described under the "DOSBox" section in BUILD.md.dosbox_rstub.plw
to my IDA plugin directory.C:\msys32\mingw32\bin\libwinpthread-1.dll
to my IDA installation directory.The notes about
__GNUC__
andida.dll
should probably go under the IdaDOS section already.Compiling DOSBox
/d/dosbox
..autogen-sh
. Getting the following output:pacman -Su automake
andpacman -Su autoconf
../autogen-sh
. Getting quite a few warnings about source files being in subdirectories (if required, I can upload the warnings). But no errors../configure --enable-debug=ida32 --with-ida-sdk=/d/idasdk68 --with-ida-plugin=/d/idados
, no errors.make
. Noticing it's not installed. Installing it withpacman -Su make
.curses.h
, following the instructions found in http://www.dosbox.com/wiki/BuildingDOSBox under the "Enabling the debugger (You probably don't want this)" section (requiring to installtar
too).make
, now running without errors (build log on request).src/DOSBox.exe
into my DOSBox 0.74 directory.libgcc_s_dw2-1.dll
andlibwinpthread-1.dll
fromC:\msys32\mingw32\bin
as it is not in my PATH. Also having to copy overIDA.WLL
from my IDA directory.I'm out of ideas, I had a similar error yesterday about a missing symbol. What do I have to do to correctly compile DOSBox?