FCEUXD SP v1.06--Compiling Source Code on My System

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
FCEUXD SP v1.06--Compiling Source Code on My System
by on (#20955)
OK, I'm not quite sure where to start, I downloaded the source code to FCEUXD SP v1.06 with the intention of making some modifications to it:

http://www.the-interweb.com/serendipity ... -1.06.html

The issue is that I'm trying to set up the framework under which I can compilie it before I can do anything else to it. I have the MingW32-make.exe needed for it (along with GCC). I downloaded the latest DirectX SDK, in order to get the header and library files for the DINPUT, DDRAW, etc. I put the files in the respective INCLUDE and LIB folders, and put lib in front of the library file names so that they will be chosen by default. I know it uses version 7 of DirectInput, for example. I've gotten down to compiling it, but now I'm having linker issues. It says things like "Undefined Reference to DirectDrawCreate@12" and the same message for "DirectInputCreate@20." (There is also a warning for ".drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" ' unrecognized" which I don't understand and it doesn't say where the problem occured.)

I'm somewhat lost--is it possible that I could receive assistance in learning exactly how I should set up the framework so I can compile this emulator code? Thanks. ^_^

by on (#20968)
http://www.zophar.net/nes.html

From here, I downloaded the source code for the FCEUXD v.1.0a and had the same issue. Perhaps I haven't set up my libraries correctly? Basically, I downloaded the DirectX SDK from Microsoft's website and set up the includes and libraries. Then I added "lib-" to the front of each of the libraries that were mentioned in the makefile (ddraw, dinput, dxguid, etc.), replacing the older ones that came with my compiler (GCC with MingW32, which apparently was used by the makers of the emulator). Despite this, I continue to have linker errors regarding undefined references to what appear to be functions in the dinput library. Perhaps one of y'all can assist in pointing out what it is I'm doing incorrectly? Thanks. ^_^

by on (#20969)
*MinGW user

I tried to compile FCEUXDSPABCDHEYGDBE 1.06 from the first link you posted, and it worked fine. You might need to change the makefile though (the path in makewin.bat). DirectX libraries are included in MinGW, you'll only need the headerfiles from the SDK.

by on (#20972)
hap,

Thanks for your response. ^_^ Yes, I downloaded the latest API package from here:

http://www.mingw.org/download.shtml

And extracted it to the include and lib folders and it now works! Thank you so much! ^_^ Boy, there must have been an obscure problem slightly wrong. Thank you. ^_^

by on (#21006)
i have version 0.98.12 here. and that compiled fine on linux.

matt