Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation instructions not clear for pi4 on 64 bits OS #465

Closed
thorkseng opened this issue Sep 16, 2021 · 2 comments
Closed

Compilation instructions not clear for pi4 on 64 bits OS #465

thorkseng opened this issue Sep 16, 2021 · 2 comments
Labels
64bits box86 on a 64bits system issue

Comments

@thorkseng
Copy link

thorkseng commented Sep 16, 2021

Hello!

Thanks a lot for your work, and sorry if I did something wrong.

I am trying to run box86 in a Pi4/8GB with RaspianOS of 64bits.
To do this, following the compilation instructions, I have executed the following commands:

sudo apt install gcc-arm-linux-gnueabihf
git clone https://github.com/ptitSeb/box86
cd box86
mkdir build; cd build; cmake .. -DRPI4ARM64=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
make -j2
sudo make install
sudo systemctl restart systemd-binfmt

Everything goes fine, compiling finish without errors.
The executable is compiled, and installed on the system (I tried to compile box64 and it works perfectly).

The make install move it and create everything to work, but it does not work.
Now, when I tried to execute box86 I got the next error:
-bash: /usr/local/bin/box86: No such file or directory

Checking the binary compiled with "objdump -a /usr/local/bin/box86" I got this result:
/usr/local/bin/box86: file format elf32-littlearm

Doing the same with box64 binary:
/usr/local/bin/box64: file format elf64-littleaarch64

To fix this issue I do the next (please, let me know if it is not correct):

sudo dpkg --add-architecture armhf
sudo apt update
sudo apt install libc6:armhf libncurses5:armhf libstdc++6:armhf

Now, the box86 works fine in the machine (I tried to use it to download steamcmd and it works fine).
Maybe can be a good point to add this to the instructions, or if there is any other way to execute the binary created.

Thanks a lot!
Regards,
Tranko.

WheezyE added a commit to WheezyE/box86 that referenced this issue Oct 7, 2022
to make compile/use easier for new users (regarding ptitSeb#465 & ptitSeb#682).
Also tried to simplify comments/code a little in the RPi sections
WheezyE added a commit to WheezyE/box86 that referenced this issue Oct 7, 2022
to make compile/use easier for new users (regarding ptitSeb#465 & ptitSeb#682).
Also tried to simplify comments/code a little in the RPi sections

EDIT: fixed typo in -DRPi flag
@WheezyE
Copy link
Contributor

WheezyE commented Oct 9, 2022

I've add installing libc6:armhf to the box86 build instructions for aarch64 systems. Ok to close this issue?

@ptitSeb
Copy link
Owner

ptitSeb commented Oct 11, 2022

Compilation (and running stuffs) on 64bits is clear now. Closing the ticket. Re-open it if needed.

@ptitSeb ptitSeb closed this as completed Oct 11, 2022
@ptitSeb ptitSeb added the 64bits box86 on a 64bits system issue label Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
64bits box86 on a 64bits system issue
Projects
None yet
Development

No branches or pull requests

3 participants