Compiling latest svn in Arch linux
Can't get the latest svn to compile on Arch Linux, any help
my PKGBUILD file is this
Code: Select all
pkgname=vba-m-gtk
pkgver=1090
pkgrel=1
pkgdesc="Gameboy Advance Emulator combining features of all VBA forks - GTK GUI"
arch=(i686 x86_64)
url="http://vba-m.ngemu.com"
license=('GPL')
groups=()
depends=('gtkmm' 'sdl' 'glibmm' 'libpng' 'zlib' 'cairo' 'mesa' 'gtkglext' 'gtkglextmm' 'libxv' 'hicolor-icon-theme' 'ffmpeg')
makedepends=('cmake' 'pkgconfig' 'nasm' 'subversion')
install='vba-m-gtk.install'
_svntrunk=https://vbam.svn.sourceforge.net/svnroot/vbam/trunk
_svnmod=vbam
_svndep=https://vbam.svn.sourceforge.net/svnroot/vbam/dependencies
build() {
cd ${srcdir}
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up -r $pkgver)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
svn co $_svndep --config-dir ./
fi
msg "Source acquired or request timed out."
msg "Starting make..."
cp -r $_svnmod $_svnmod-build
cd $_svnmod-build
cmake . -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -fpermissive" -DCMAKE_INSTALL_PREFIX=/usr -DDATA_INSTALL_DIR :P ATH=share/vbam/gtk -DENABLE_WX=OFF
make
}
package() {
cd $_svnmod-build
make DESTDIR=${pkgdir} install
rm -rf ${srcdir}/$_svnmod-build
}
the vba-m-gtk.install file is
Code: Select all
post_install() {
update-desktop-database -q
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}
I get the following error output
Code: Select all
In file included from /home/pouar/Downloads/vba-m-gtk/src/vbam-build/src/gba/GBAinline.h:10:0,
from /home/pouar/Downloads/vba-m-gtk/src/vbam-build/src/gba/bios.cpp:7:
/home/pouar/Downloads/vba-m-gtk/src/vbam-build/src/gba/GBALink.h:64:37: error: ‘IPAddress’ in namespace ‘sf’ does not name a type
/home/pouar/Downloads/vba-m-gtk/src/vbam-build/src/gba/GBALink.h:64:52: warning: ISO C++ forbids declaration of ‘addr’ with no type [-fpermissive]
/home/pouar/Downloads/vba-m-gtk/src/vbam-build/src/gba/GBALink.h:87:2: error: ‘Selector’ in namespace ‘sf’ does not name a type
/home/pouar/Downloads/vba-m-gtk/src/vbam-build/src/gba/GBALink.h:98:2: error: ‘SocketTCP’ in namespace ‘sf’ does not name a type
/home/pouar/Downloads/vba-m-gtk/src/vbam-build/src/gba/GBALink.h:99:2: error: ‘IPAddress’ in namespace ‘sf’ does not name a type
/home/pouar/Downloads/vba-m-gtk/src/vbam-build/src/gba/GBALink.h:108:37: error: ‘IPAddress’ in namespace ‘sf’ does not name a type
/home/pouar/Downloads/vba-m-gtk/src/vbam-build/src/gba/GBALink.h:108:52: warning: ISO C++ forbids declaration of ‘addr’ with no type [-fpermissive]
/home/pouar/Downloads/vba-m-gtk/src/vbam-build/src/gba/GBALink.h:115:2: error: ‘Selector’ in namespace ‘sf’ does not name a type
/home/pouar/Downloads/vba-m-gtk/src/vbam-build/src/gba/GBALink.h:124:2: error: ‘IPAddress’ in namespace ‘sf’ does not name a type
/home/pouar/Downloads/vba-m-gtk/src/vbam-build/src/gba/GBALink.h:126:2: error: ‘SocketTCP’ in namespace ‘sf’ does not name a type
/home/pouar/Downloads/vba-m-gtk/src/vbam-build/src/gba/GBALink.h:129:16: error: ‘sf::IPAddress’ has not been declared
/home/pouar/Downloads/vba-m-gtk/src/vbam-build/src/gba/GBALink.h:136:2: error: ‘SocketTCP’ in namespace ‘sf’ does not name a type
/home/pouar/Downloads/vba-m-gtk/src/vbam-build/src/gba/GBALink.h:151:8: error: ‘IPAddress’ in namespace ‘sf’ does not name a type
make[2]: *** [CMakeFiles/vbamcore.dir/src/gba/bios.cpp.o] Error 1
make[1]: *** [CMakeFiles/vbamcore.dir/all] Error 2
make: *** [all] Error 2