dolphin icon indicating copy to clipboard operation
dolphin copied to clipboard

Build for Linux aarch64

Open Krishnacore opened this issue 3 years ago • 2 comments

Branch - master Steps:

git clone https://github.com/libretro/dolphin.git
mkdir build
cd build
cmake cmake ../ -DLIBRETRO=ON -DUSE_DISCORD_PRESENCE=OFF
make -j1

And getting this error:

Scanning dependencies of target hidapi
[ 52%] Building C object Externals/hidapi/CMakeFiles/hidapi.dir/libusb/hid.c.o
/opt/dolphin/Externals/hidapi/libusb/hid.c:47:10: fatal error: libusb.h: No such file or directory
 #include <libusb.h>
          ^~~~~~~~~~
compilation terminated.
Externals/hidapi/CMakeFiles/hidapi.dir/build.make:62: recipe for target 'Externals/hidapi/CMakeFiles/hidapi.dir/libusb/hid.c.o' failed
make[2]: *** [Externals/hidapi/CMakeFiles/hidapi.dir/libusb/hid.c.o] Error 1
CMakeFiles/Makefile2:1325: recipe for target 'Externals/hidapi/CMakeFiles/hidapi.dir/all' failed
make[1]: *** [Externals/hidapi/CMakeFiles/hidapi.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

Krishnacore avatar Dec 12 '22 23:12 Krishnacore

You might be missing libusb headers so try to install libusb header package.

gouchi avatar Dec 24 '22 11:12 gouchi

try to switch the libusb library from your native system to the static lib, I have done it with mbedtls package and I could build again

Chandler-Kluser avatar Jun 09 '23 05:06 Chandler-Kluser

@Krishnacore Please close this issue if it is ok for you.

There should be no issue building on aarch64.

Thank you.

gouchi avatar Jul 29 '24 15:07 gouchi