[go: nahoru, domu]

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

Compiling this on Raspberry Pi is... quite hard. #9

Closed
JeanMarcZimmer opened this issue Oct 5, 2020 · 3 comments
Closed

Compiling this on Raspberry Pi is... quite hard. #9

JeanMarcZimmer opened this issue Oct 5, 2020 · 3 comments

Comments

@JeanMarcZimmer
Copy link

Lib dependency Opus:

one of the dependencies, Opus, doesn't immediately compile on Raspberry. It needs the -DOPUS_DISABLE_INTRINSICS=ON option when generating the CMake files in libDiscordBot/build
You can read the entire struggle of finding the solution here : xiph/opus#203

Compiling the bot with the lib:

On Raspberry Pis, the default Atomic standard library doesn't include the call __atomic_fetch_add_8. To compile the bot, the linker option -latomic had to be added. I modified the CMakeLists.txt file as indicated below, following this StackOverflow answer, but I'm not sure at all if it's a good way to do it.

set(GCC_COVERAGE_LINK_FLAGS "-latomic")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS}")

This is not a big deal, but I think it could be of interest to you.

@xnorpx
Copy link
xnorpx commented Oct 5, 2020

Added: https://gitlab.xiph.org/xiph/opus/-/issues/2343 to track neon issue on rp

@tostc
Copy link
Owner
tostc commented Oct 6, 2020

Hi,

thanks for reporting. I will add these fix.

tostc added a commit that referenced this issue Oct 6, 2020
- Changes payload to body
- Added fix from issue #9
@tostc
Copy link
Owner
tostc commented Oct 6, 2020

I've added your fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants