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

I'm getting an error at the end of the compilation #1178

Open
curruwilla opened this issue Feb 25, 2022 · 4 comments
Open

I'm getting an error at the end of the compilation #1178

curruwilla opened this issue Feb 25, 2022 · 4 comments
Labels

Comments

@curruwilla
Copy link

curruwilla commented Feb 25, 2022

I'm getting an error at the end of the compilation, look this:

image

How can I fix and compile without errors?

I followed the step by step:
image

I'm using UBUNTU 20.04 LTS - 64bits

@kleberholtz
Copy link

UP! I'm also having the same problem, how to fix it?
Note: I'm using Ubuntu 20.04 LTS - 64bits

@diath
Copy link
Collaborator

diath commented Apr 4, 2022

Can you try applying the following change to the src/framework/CMakeLists.txt file and see if that helps?

diff --git a/src/framework/CMakeLists.txt b/src/framework/CMakeLists.txt
index cb74320d..3fea96cc 100644
--- a/src/framework/CMakeLists.txt
+++ b/src/framework/CMakeLists.txt
@@ -285,7 +285,7 @@ else()
         set(SYSTEM_LIBRARIES "")
     else()
         set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
-        set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -rdynamic -Wl,-rpath,./libs") # rdynamic is needed by backtrace.h used in crash handler
+        set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -lm -rdynamic -Wl,-rpath,./libs") # rdynamic is needed by backtrace.h used in crash handler
         set(SYSTEM_LIBRARIES dl rt)
     endif()
 endif()

Alternatively you can also try disabling the sound framework if you don't need it via -DFRAMEWORK_SOUND=OFF CMake argument.

@kleberholtz
Copy link

kleberholtz commented Apr 4, 2022

The change in CMakeLists.txt didn't work, however with the option -DFRAMEWORK_SOUND=OFF it worked just fine! thankful.

@diath diath added the Bug label Apr 8, 2022
@wioxjk
Copy link

wioxjk commented Jul 20, 2022

There workaround to the issue is here:
https://otland.net/threads/otclient-problems-compiling-on-ubuntu-20.270236/

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

No branches or pull requests

4 participants