Open jh97uk opened 6 years ago
You seem to be missing a whole lot of build requirements. I've never heard about the Solus distribution before, but you will probably get better help in resolving this by asking in some Solus forum. Start by picking one of the missing dependencies, e.g. /usr/bin/ld: cannot find -lposix
, figure out how to resolve this, and then proceed step by step.
I just google Solus, and it seems to be not based on any other more well-known distro, so you'll probably have to reinvent all instructions.
mcpelauncher does not build in OpenSUSE either due to this problem, even after installing all threads packages.
I mean, all this error means, is that you have a broken GCC multilib installation.
To add onto what @MCMrARM was saying, Solus does have most of the packages required for this project to compile, though the package names differ occasionally. In your specific case, you are likely missing the glibc-32bit-devel package (amongst others most likely) which is what provides the file /usr/lib32/libc_nonshared.a
that ld
cannot locate.
andrew@longitude-e5430 ~
>$ eopkg search-file /usr/lib32/libc_nonshared.a
Searching for /usr/lib32/libc_nonshared.a
Package glibc-32bit-devel has file /usr/lib32/libc_nonshared.a
That said, out of the box you won't be able to compile this project in full on Solus as it is missing the required libevdev-32bit-devel
package. In order to finish compilation, you will need to locate and build the evdev sources as 32-bit and link linux-gamepad
to the compiled library.
After trying it myself with Solus chroot here the building instruction for the core launcher, repeat step 3 and 4 to update
sudo eopkg install -c system.devel
sudo eopkg install git mesalib-32bit-devel openssl-32bit-devel curl-32bit-devel libpng-32bit-devel libx11-32bit-devel gcc g++ libgcc-32bit libstdc++-32bit cmake make binutils glibc-32bit-devel libgudev-32bit-devel libxi-32bit-devel
(git clone https://gitlab.freedesktop.org/libevdev/libevdev.git && cd libevdev || cd libevdev && git pull) && ./autogen.sh CFLAGS=-m32 && make && sudo make install && ln -s /usr/local/lib/libevdev.so.2 /usr/lib32/libevdev.so.2 || :
(git clone --recursive https://github.com/minecraft-linux/mcpelauncher-manifest.git mcpelauncher && cd mcpelauncher || cd mcpelauncher && git pull) && cd mcpelauncher && mkdir -p build && cd build && cmake .. -DCMAKE_ASM_FLAGS=-m32 -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 && make && sudo make install || :
I'm trying to build on the latest version of Solus and I'm getting this error through cmake:
Heres the output in my CMakeError.log: