-
-
Notifications
You must be signed in to change notification settings - Fork 82
Compiling from sources
If you want to build the whole pvsneslib project directly from sources, you will need some informations.
Please keep in mind that it works only on 32 bits system. I will also consider that these tools are mandatory everywhere so i will not add it in the list anymore :
- msys
- GCC
To avoid forgetting it later, we can begin from this point. Just create an environment variable PVSNESLIB_HOME pointing on your pvsneslib directory.
For example : /c/snesdev
Be careful: the path must be in Unix style (/c/ instead of c:) on Windows too ! Do not forget that if you change your environment variable, you will probably need to launch a new command prompt to take it into account.
To build the tools and because you already installed msys and GCC, you will not need other dependencies!
You can go the the tools folder in the root of repository folder, then run make command.
When everything is built correctly, you can run make install to move all tools under devkitsnes directory.
To install tcc, you will need :
- texi2html to build the documentation (optional)
In the compiler folder, you can run the make tcc command. It will run the configuration script (to generate configurations files).
Once finished, you can run make tcc-install to move it to devkitsnes directory.
WLA is a git submodule of pvsneslib. If you cloned the PVSneslib repository from command line without the --recurse-submodules parameter, you probably have to download the submodule with git submodule init && git submodule update command.
To install WLA you will need :
- Cmake
In the compiler folder, you can run the make wla command.
It will run cmake command and make on the 3 parts of WLA we need to develop on SNES (wla-65816, wla-spc700 and wlalink)
Once finished, you can run make wla-install to move it to devkitsnes directory.
If you have installed dependencies, you can directly run the make command from compiler directory then make install to move it to devkitsnes directory.
It will build tcc then wla.
- Python 3
- doxygen for documentation (optional)
To build PVSneslib, PVSNESLIB_HOME environment variable have to be defined. If you followed all steps of this page, you should arleady have it.
Tools and compiler should be compiled and installed before too !
Go to pvsneslib directory and run the make command. There is no the make install because it generate automatically the files in the final directory.
If everything works correctly until here, samples will be really easy to build.
Just run the make command from snes-examples directory then make install to move all the rom files generated to the bin folder.
Now all dependencies are installed and works correctly, you can go quicker to build the whole project.
Execute make command in the root folder and all dependencies will be compiled and installed in the right folder.
- Installation
- PVSneslib and Visual Studio Code
- First steps with No$sns emulator
- Compiling from sources