You are not logged in.
does anyone know why the open-source virtualbox-ose in the community repo has not been compiled for arch64? I would love to have that...
Offline
Offline
I tryed doing so but failed. It is kind of tricky, because it needs 32 bits libraries for building.
Here's a pkgbuild I've been working on:
# $Id: PKGBUILD,v 1.3 2007/10/24 10:51:49 Romashka Exp $
# Maintainer: Roman Kyrylych <roman@archlinux.org>
# Contributor: Michal Krenek <mikos@sg1.cz>
# Contributor: niQo
pkgname=virtualbox-ose
pkgver=1.5.2
pkgrel=1
pkgdesc="Powerful x86 virtualization for enterprise as well as home use (Open Source Edition)"
url="http://www.virtualbox.org"
license=('GPL')
arch=('i686' 'x86_64')
replaces=('virtualbox')
provides=('virtualbox')
conflicts=('virtualbox')
depends=('virtualbox-modules' 'libidl2' 'libxslt' 'xalan-c' 'e2fsprogs' 'xerces-c' 'libxcursor')
makedepends=('bin86' 'dev86' 'iasl' 'libstdc++5' 'pkgconfig' 'qt' 'sdl' 'sdl_ttf' 'alsa-lib')
install=virtualbox.install
source=(http://www.virtualbox.org/download/${pkgver}/VirtualBox-${pkgver}_OSE.tar.bz2 \
virtualbox-remove-splitted-stuff.patch
60-virtualbox.rules)
md5sums=('2940f92160c88e241606f0fa91428b2c'
'0f5ba612d7f4e8c600af1d8f042d3eba'
'519d32d8c2408e0ed9d643f412117644')
build() {
cd $startdir/src/VirtualBox-${pkgver}_OSE
# remove additions and vboxdrv
patch -p0 < ../virtualbox-remove-splitted-stuff.patch
[ "$CARCH" = "x86_64" ] && export LDFLAGS="$LDFLAGS /opt/lib32/usr/lib/ /opt/lib32/lib/"
./configure --with-qt-dir=$QTDIR || return 1
source ./env.sh
kmk all || return 1
cd out/linux.$BUILD_PLATFORM_ARCH/release/bin
rm -rf sdk src tst* testcase vboxdrv.ko SUPInstall SUPUninstall
mkdir -p $startdir/pkg/usr/{bin,lib/virtualbox,share/virtualbox}
install -m644 *.so $startdir/pkg/usr/lib/
install -m644 *.gc *.r0 *.xpt ../obj/src/VBox/VMM/tstVMM/tstVMM \
$startdir/pkg/usr/lib/virtualbox/
# if you move the binaries in /usr/share the sky will fall on your head
for each in vditool VBoxManage VBoxSVC VBoxSDL VirtualBox VBoxBFE VBoxXPCOMIPCD VBoxTunctl VBox.sh; do
install -m755 $each $startdir/pkg/usr/lib/virtualbox/$each
ln -fs /usr/lib/virtualbox/$each $startdir/pkg/usr/bin/$each
# I like lowercase binaries :)
ln -fs /usr/lib/virtualbox/$each $startdir/pkg/usr/bin/$( echo $each | tr [:upper:] [:lower:] )
done
cp -R components $startdir/pkg/usr/lib/virtualbox/
cp -R nls/ $startdir/pkg/usr/share/virtualbox/
cd $startdir/pkg/usr/lib/virtualbox/; ln -s ../VBox* .
# desktop stuff
install -D -m644 $startdir/src/VirtualBox-${pkgver}_OSE/src/VBox/Installer/linux/VirtualBox.desktop \
$startdir/pkg/usr/share/applications/virtualbox.desktop
install -D -m644 $startdir/src/VirtualBox-${pkgver}_OSE/src/VBox/Installer/linux/VBox.png \
$startdir/pkg/usr/share/pixmaps/VBox.png
# udev rule
install -D -m644 $startdir/src/60-virtualbox.rules \
$startdir/pkg/etc/udev/rules.d/60-virtualbox.rules
}configure fails with :
***** Checking 32-bit support *****
compiling the following source file:
#include <stdint.h>
int main(void)
{
return 0;
}
using the following command line:
gcc -m32 -O -Wall -o .tmp_out .tmp_src.c
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.2.2/libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.2.2/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit statusOffline
You cannot compile the ose version because it needs a cross-compiler. But you can use the standard version. Here are some PKGBUILDs: http://users.archlinux.de/~pierre/packa … irtualbox/
Last edited by Pierre (2008-01-25 21:50:05)
Offline
The link is broken... Anyone know how to do it?
Offline
Offline
I'm bringing back an old topic here, but I am still not sure I understand why the closed-source virtualbox works in 64-bit, but the open-source virtualbox does not.... Can someone explain? Thanks.
Offline
I'm bringing back an old topic here, but I am still not sure I understand why the closed-source virtualbox works in 64-bit, but the open-source virtualbox does not.... Can someone explain? Thanks.
Hey all,
I'm an old archlinux user that is back after a while. I was making myself the same question, why cant vbox ose work on 64 bits while vbox puse can?
Im not demanding or anything like that, its just that id like to know the reason.
It's a pitty we have to work with privative software while there is an open solution.
Sorry for the old topic and thanks for all posible answers.
P.D.: Feels great being back! Archlinux rocks!!
Offline
because virtualbox-ose demands a multilib gcc and we don't support this.
Checking for libcap library: found, OK.
Checking for compiler.h: compiler.h not found, OK.
Checking for 32-bit support:
Cannot compile 32-bit applications (missing headers and/or libraries)!like i side note, if would be nice if we are demanting this upstream, opening feature request. native 64 bit version
Give what you have. To someone, it may be better than you dare to think.
Offline
ofcourse they should provide a native 64bit version, it's sad that some company's , programmers don't support 64 bit. i686 is dead
Offline