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

Lib X11 not found in macOS (solution proposed) #235

Open
jfvilleforceix opened this issue Nov 27, 2023 · 0 comments
Open

Lib X11 not found in macOS (solution proposed) #235

jfvilleforceix opened this issue Nov 27, 2023 · 0 comments
Labels
dependencies Pull requests that update a dependency file macOS

Comments

@jfvilleforceix
Copy link
Collaborator

jfvilleforceix commented Nov 27, 2023

Hello,
When compiling MMVII in macOS I encountered following problem :

[100%] Linking CXX executable ../bin/MMVII
ld: library not found for -lX11
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I think it's because X11 is not installed in a classic folder under macOS so I modified the CMakeLists.txt at line 121 with :

if(UNIX)
  if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
    set(mmv2_extlibs -lX11)
  else()
    set(mmv2_extlibs -lX11 -L/opt/X11/lib/)
  endif()
else()
  set(mmv2_extlibs)
endif()

if it is interesting for anyone else let me know.

@jfvilleforceix jfvilleforceix added macOS dependencies Pull requests that update a dependency file labels Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file macOS
Projects
None yet
Development

No branches or pull requests

1 participant