Sei sulla pagina 1di 2

How to build VBA-M from the SVN code in Linux.

I have made a guide covering it more or less and posted it in the Emuforums foru
m. I'll post it here too:
This is a guide for people who would like to build VBA-M from its development so
urce code in Linux and use it either through the SDL or the GTK+ interfaces.
First of all, dependencies. As far as I know you'll need the following programs
and libraries:
cmake subversion sdl libpng zlib sfml mesa cairo libxv gtkglext gtkglextmm gtkmm
glibmm glademm
A minimum development environment is assumed (e.g. C/C++ compiler, the make util
ity, ...). The ones marked in red indicate that development packages of them are
needed as well (e.g. mesa-dev).
Now, once all of that is installed create a directory named VBA-M (for example)
where ever you wish to build it. Open a terminal window and navigate to the dire
ctory you just created. Now follow this steps:
0. sudo apt-get install build-essential subversion cmake zlib1g-dev libpng12-dev
libopenal-dev libsdl1.2-dev libgtkmm-2.4-dev libgtkglextmm-x11-1.2-dev libavfor
mat-dev libswscale-dev libwxgtk2.8-dev imagemagick wx-common libsfml-dev zip
1. Get the source code, check out the trunk branch:
[user@machine VBA-M]# svn co https://vbam.svn.sourceforge.net/svnroot/vbam/trunk
.
*Note the dot in the end of the last line, it's necessary too.
2. Generate the makefile:
[user@machine VBA-M]# cmake . -DCMAKE_INSTALL_PREFIX=/usr
(the following options to enable GBA link have make issues)
option( ENABLE_WX "Build the wxWidgets port" ON )
[...]
option( ENABLE_LINK "Enable GBA linking functionality" ON )
3. Build and install VBA-M:
[user@machine VBA-M]# make && sudo make install
4. Run VBA-M: gvbam for the GTK+ interface and vbam for the SDL one.
NOTES:
1. When looking for the dependencies, some of them might be available in your di
stribution with "lib" prefixing them (e.g.: libgtkmm instead of gtkmm) or not av
ailable at all (you'd need to get and build them yourself).
2. In the second phase CMake may warn about things not found, if that's the case
verify you have installed all the dependencies as well as their development pac
kages. E.g.: gtkmm-dev or something like that.
3. In that phase too, you may specify a different dir for CMAKE_INSTALL_PREFIX,
the one I posted should make VBA-M available for system-wide.
4. In the third phase, make install have to be called as root or with administra
tive privileges as it will write to /etc (unless you changed the directories thr
ough additional options). E.g.: I've put sudo there because it's common to have

that installed and configured.


5. There are more options to be used when generating the build script: disabling
one of the interfaces, using some assembly parts, ... This "walk-through" is ki
nd of generic. If you wish to know more take a look at CMakeLists.txt.
Do NOT use sudo add-apt-repository ppa:sergio-br2/vbam-trunk && sudo apt-get upd
ate && sudo apt-get install vbam-gtk
CONFIGURATION:
config file is in ~/.config/gvbam
Note that Emerald needs to be set to EEPROM 128k save type. Enable real time clo
ck.
Apply patch at http://sourceforge.net/p/vbam/patches/46/

Potrebbero piacerti anche