Skip to content

Commit

Permalink
Add note to Fedora users about linker errors
Browse files Browse the repository at this point in the history
Some Fedora users may encounter linker errors during build time due to prior installations of packages
for the wrong arch. Added a note on how to install build dependencies if errors occur.

Closes bevyengine#1815.
  • Loading branch information
jleflang committed Apr 25, 2021
1 parent fcf8faf commit c5e9340
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/linux_dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@ Please see the ubuntu [WSL documentation](https://wiki.ubuntu.com/WSL) on how to
sudo dnf install gcc-c++ libX11-devel alsa-lib-devel systemd-devel
```

If there are errors with linking during the build process such as:

```bash
= note: /usr/bin/ld: skipping incompatible /usr/lib/libasound.so when searching for -lasound
/usr/bin/ld: skipping incompatible /usr/lib/libasound.so when searching for -lasound
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/10/../../../libasound.so when searching for -lasound
/usr/bin/ld: skipping incompatible /lib/libasound.so when searching for -lasound
/usr/bin/ld: skipping incompatible /usr/lib/libasound.so when searching for -lasound
/usr/bin/ld: cannot find -lasound
```

Add your arch to the end of the package to remove the linker error. For example:

```bash
sudo dnf install alsa-lib-devel.x64_86
```

## Arch / Manjaro

```bash
Expand Down

0 comments on commit c5e9340

Please sign in to comment.