NES Emulator
Copyright © 2012-2018 Ivanov Viktor
Before compiling make sure that you have autoconf (>= 2.68), autoconf-archive (>= 2016.12.06), automake, SDL2 (>= 2.0.5) and SDL2_gfx installed.
Clone repository
$ git clone http://github.com/itmo153277/vpnes.git vpnes-0.5 && cd vpnes-0.5
Generate autotools scripts
$ sh ./autogen.sh
Configure
$ ./configure
The maintainer mode is disabled by default. That means that makefiles won't be updated when new files are added to the project.
To enable maintainer mode, run configure with
--enable-maintainer-mode
. It ensures that your build scripts will always be up-to-date.
Compile
$ make
Run tests (optional)
$ make check
Install as root
# make install
For more detailed information about compiling the sources see INSTALL and ./configure --help
.
Before compiling make sure that you have SDL2 (>= 2.0.5) and SDL2_gfx installed.
Extract sources
$ tar xvf vpnes-0.5.tar.gz && cd vpnes-0.5
Configure
$ ./configure
Compile
$ make
Run tests (optional)
$ make check
Install as root
# make install
For more detailed information about compiling the sources see INSTALL and ./configure --help
.
Before compiling make sure that you have installed SDL2 and SDL2_gfx. SDL2 directories should be added to your user macros as follows:
-
SDLIncludes
— path to SDL includes for SDL2 and SDL2_gfx -
SDLLib
— path to SDL *.lib and *.dll -
SDLDeps
— SDL lib files SDL2.lib, SDL2main.lib and SDL2_gfx.lib
Open vpnes_msvc.sln and build the solution in Release configuration. The output file will be in ./Release.
Note: it is known that MSVC sometimes throws "out of heap" exception. If it does so, consider using another compiler or rewriting
cpu.cpp
andcpu_compiler.hpp
to comfort MSVC.
To generate documentation via autotools+doxygen execute $ make doxygen-doc
after configuring the project.