[Compiling] retroarch -> cannot locate lbcm_host

Ask questions about Arch Linux ARM. Please search before making a new topic.

[Compiling] retroarch -> cannot locate lbcm_host

Postby PowaBanga » Mon Aug 27, 2018 7:25 pm

Hi all,

I am on archlinux arm raspberrypi 3b+ armv7

first, I launched it without drivers xf86-video-fbturbo-git, It was no lag, but the desktop was crashing too much, it was unusable. with the driver, i have no crash anymore, but retroarch gui became very very laggy, it is unusable.

So I looked on google, and i saw that i can compil it to make it best for raspbeery. so, this is my pkgbuild inspirated by this that i found in AUR :

$this->bbcode_second_pass_code('', 'buildarch=4

pkgname=retroarch-rbp
pkgver=1.7.3
pkgrel=1.1
pkgdesc='Reference frontend for the libretro API (Raspberry Pi)'
arch=('aarch64')
url='http://www.libretro.com/'
license=('GPL')
groups=('libretro')
provides=('retroarch')
conflicts=('retroarch')
depends=('alsa-lib' 'gcc-libs' 'glibc' 'libdrm' 'libgl' 'libpulse' 'libx11'
'libxcb' 'libxext' 'libxinerama' 'libxkbcommon' 'libxv' 'libxxf86vm'
'openal' 'qt5-base' 'sdl2' 'v4l-utils' 'wayland' 'zlib'
'libass.so' 'libavcodec.so' 'libavformat.so' 'libavutil.so'
'libfreetype.so' 'libswresample.so' 'libswscale.so' 'libudev.so'
'libusb-1.0.so')
makedepends=('vulkan-icd-loader')
optdepends=('libretro-overlays: Collection of overlays'
'libretro-shaders: Collection of shaders'
'python: retroarch-cg2glsl'
'retroarch-assets-xmb: XMB menu assets')
backup=('etc/retroarch.cfg')
source=("retroarch-${pkgver}.tar.gz::https://github.com/libretro/RetroArch/archive/v${pkgver}.tar.gz")
md5sums=('SKIP')

prepare() {
cd RetroArch-${pkgver}

}

build() {
cd RetroArch-${pkgver}

export PKG_CONFIG_PATH="/opt/vc/lib/pkgconfig:$PKG_CONFIG_PATH"
./configure --disable-vg --disable-opengl --disable-egl --enable-dispmanx --disable-x11 --disable-sdl2 --enable-floathard --disable-ffmpeg --enable-udev --disable-sdl --disable-pulse --disable-oss --disable-freetype --disable-7zip --disable-libxml2 --disable-cg --disable-jack --enable-opengles --enable-neon --enable-videocore --enable-alsa

make
}

package() {
cd RetroArch-${pkgver}

make DESTDIR="${pkgdir}" install

}')

and when i launch th makepkg, i have this :
$this->bbcode_second_pass_code('', '[powabanga@RaspberryPi retroarch]$ makepkg
==> Making package: retroarch-rbp 1.7.3-1.1 (Mon Aug 27 21:00:59 2018)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found retroarch-1.7.3.tar.gz
==> Validating source files with md5sums...
retroarch-1.7.3.tar.gz ... Skipped
==> Extracting sources...
-> Extracting retroarch-1.7.3.tar.gz with bsdtar
bsdtar: Failed to set default locale
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Checking operating system ... Linux
Checking for suitable working C compiler ... /usr/bin/gcc works
Checking for suitable working C++ compiler ... /usr/bin/g++ works
Checking for moc ... /usr/bin/moc-qt5
Checking for pkg-config ... /usr/bin/pkgconf
Checking for availability of switch -std=gnu99 in /usr/bin/gcc ... yes
Checking for availability of switch -Wno-unused-result in /usr/bin/gcc ... yes
Checking for availability of switch -Wno-unused-variable in /usr/bin/gcc ... yes
Checking function sd_get_machine_names in -lsystemd ... yes
Checking presence of package bcm_host ... no
Checking function bcm_host_init in -lbcm_host ... no
Forced to build with library -lbcm_host, but cannot locate. Exiting ...
==> ERROR: A failure occurred in build().
Aborting...
')

By speaking on irc, somebody speak to me about raspberry-firmware. So my question is, what is raspberry firmware, how to install it ? have I simply to copy/paste file into the good folder, or have I anything other stuff to do ? And, have it a risk to install it on my raspberry ?

[édit]
Finaly i did that :
$this->bbcode_second_pass_code('', ' pacman -Ss raspberry
alarm/firmware-raspberrypi 4-1 [installed]
Additional firmware for Raspberry Pi
alarm/libbcm2835 1.55-1
C library for Broadcom BCM 2835 as used in Raspberry Pi
alarm/raspberrypi-bootloader 20180824-1 [installed]
Bootloader files for Raspberry Pi
alarm/raspberrypi-bootloader-x 20180824-1
Bootloader with extra codecs for Raspberry Pi
alarm/uboot-raspberrypi 2018.07-1 [installed]
U-Boot for Raspberry Pi
')

So it seem that raspberry firmware is installed... so, my question is : why i can't compil retroarch ?
PowaBanga
 
Posts: 15
Joined: Thu May 31, 2018 2:04 pm

Return to User Questions

Who is online

Users browsing this forum: No registered users and 10 guests