ryzom / ryzomcore

Ryzom Core is the open-source project related to the Ryzom game. This community repository is synchronized with the Ryzom Forge repository, based on the Core branch.
https://wiki.ryzom.dev
GNU Affero General Public License v3.0
330 stars 89 forks source link

build issue #631

Closed coreybruce closed 1 year ago

coreybruce commented 3 years ago

Hey I tried to build Ryzom using this guide and using the atys branch but on Manjaro and ran into this issue

[corey@corey-pi4 build]$ cmake -DWITH_RYZOM_CLIENT=ON -DWITH_STATIC=ON -DWITH_STATIC_DRIVERS=ON -DWITH_DRIVER_OPENGL=ON -DWITH_QT=OFF -DWITH_NEL_TESTS=OFF -DWITH_RYZOM_SERVER=OFF -DWITH_NEL_SAMPLES=OFF -DWITH_SNOWBALLS=OFF -DWITH_NEL_TOOLS=OFF -DWITH_RYZOM_TOOLS=OFF -DWITH_RYZOM_PATCH=ON ../code
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/Documentation.cmake:30 (message):
  Policy CMP0106 is not set: The Documentation module is removed.  Run "cmake
  --help-policy CMP0106" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  Documentation.cmake is VTK-specific code and should not be used in non-VTK
  projects.  This logic in this module is best shipped with the project using
  it rather than with CMake.
Call Stack (most recent call first):
  CMakeLists.txt:40 (INCLUDE)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Deprecation Warning at CMakeLists.txt:54 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Unknown architecture: aarch64
Using RYZOM_LIVE urls
-- Could NOT find Threads (missing: Threads_FOUND) 
CMake Deprecation Warning at CMakeModules/GetRevision.cmake:1 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  CMakeModules/ConfigureChecks.cmake:2 (INCLUDE)
  CMakeLists.txt:156 (NL_CONFIGURE_CHECKS)

fatal: No annotated tags can describe '649527039b24848cf03325c8d038a114fd09af8c'.
However, there were unannotated tags: try --tags.
CMake Warning at CMakeModules/GetRevision.cmake:111 (MESSAGE):
  git rev-parse failed, unable to include git branch.
Call Stack (most recent call first):
  CMakeModules/ConfigureChecks.cmake:2 (INCLUDE)
  CMakeLists.txt:156 (NL_CONFIGURE_CHECKS)

-- Found revision 9157
-- Could NOT find LibLZMA (missing: LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.2.5")
-- ICU UC was found: /usr/lib/libicuuc.so
CMake Error at CMakeModules/FindHelpers.cmake:382 (MESSAGE):
  Error: Unable to find Luabind!
Call Stack (most recent call first):
  CMakeModules/FindLuabind.cmake:141 (FIND_PACKAGE_HELPER)
  CMakeLists.txt:261 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!
See also "/run/media/corey/47F22DEE70C10570/projects/ryzom-core/build/CMakeFiles/CMakeOutput.log".
See also "/run/media/corey/47F22DEE70C10570/projects/ryzom-core/build/CMakeFiles/CMakeError.log".
[corey@corey-pi4 build]$ cmake -DWITH_RYZOM_CLIENT=ON -DWITH_STATIC=ON -DWITH_STATIC_DRIVERS=ON -DWITH_DRIVER_OPENGL=ON -DWITH_QT=OFF -DWITH_NEL_TESTS=OFF -DWITH_RYZOM_SERVER=OFF -DWITH_NEL_SAMPLES=OFF -DWITH_SNOWBALLS=OFF -DWITH_NEL_TOOLS=OFF -DWITH_RYZOM_TOOLS=OFF -DWITH_RYZOM_PATCH=ON ../code
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/Documentation.cmake:30 (message):
  Policy CMP0106 is not set: The Documentation module is removed.  Run "cmake
  --help-policy CMP0106" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  Documentation.cmake is VTK-specific code and should not be used in non-VTK
  projects.  This logic in this module is best shipped with the project using
  it rather than with CMake.
Call Stack (most recent call first):
  CMakeLists.txt:40 (INCLUDE)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Deprecation Warning at CMakeLists.txt:54 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Unknown architecture: aarch64
Using RYZOM_LIVE urls
-- Could NOT find Threads (missing: Threads_FOUND) 
CMake Deprecation Warning at CMakeModules/GetRevision.cmake:1 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  CMakeModules/ConfigureChecks.cmake:2 (INCLUDE)
  CMakeLists.txt:156 (NL_CONFIGURE_CHECKS)

fatal: No annotated tags can describe '649527039b24848cf03325c8d038a114fd09af8c'.
However, there were unannotated tags: try --tags.
CMake Warning at CMakeModules/GetRevision.cmake:111 (MESSAGE):
  git rev-parse failed, unable to include git branch.
Call Stack (most recent call first):
  CMakeModules/ConfigureChecks.cmake:2 (INCLUDE)
  CMakeLists.txt:156 (NL_CONFIGURE_CHECKS)

-- Found revision 9157
-- Could NOT find LibLZMA (missing: LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.2.5")
-- ICU UC was found: /usr/lib/libicuuc.so
CMake Error at CMakeModules/FindHelpers.cmake:382 (MESSAGE):
  Error: Unable to find Luabind!
Call Stack (most recent call first):
  CMakeModules/FindLuabind.cmake:141 (FIND_PACKAGE_HELPER)
  CMakeLists.txt:261 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!
See also "/run/media/corey/47F22DEE70C10570/projects/ryzom-core/build/CMakeFiles/CMakeOutput.log".
See also "/run/media/corey/47F22DEE70C10570/projects/ryzom-core/build/CMakeFiles/CMakeError.log".
[corey@corey-pi4 build]$ cmake clean
CMake Error: The source directory "/run/media/corey/47F22DEE70C10570/projects/ryzom-core/build/clean" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
[corey@corey-pi4 build]$ cmake -DWITH_RYZOM_CLIENT=ON -DWITH_STATIC=ON -DWITH_STATIC_DRIVERS=ON -DWITH_DRIVER_OPENGL=ON -DWITH_QT=OFF -DWITH_NEL_TESTS=OFF -DWITH_RYZOM_SERVER=OFF -DWITH_NEL_SAMPLES=OFF -DWITH_SNOWBALLS=OFF -DWITH_NEL_TOOLS=OFF -DWITH_RYZOM_TOOLS=OFF -DWITH_RYZOM_PATCH=ON ../code
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/Documentation.cmake:30 (message):
  Policy CMP0106 is not set: The Documentation module is removed.  Run "cmake
  --help-policy CMP0106" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  Documentation.cmake is VTK-specific code and should not be used in non-VTK
  projects.  This logic in this module is best shipped with the project using
  it rather than with CMake.
Call Stack (most recent call first):
  CMakeLists.txt:40 (INCLUDE)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Deprecation Warning at CMakeLists.txt:54 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- The CXX compiler identification is GNU 10.2.0
-- The C compiler identification is GNU 10.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Unknown architecture: aarch64
Using RYZOM_LIVE urls
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Could NOT find Threads (missing: Threads_FOUND) 
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.11") 
-- Found LibXml2: /usr/lib/libxml2.so (found version "2.9.10") 
-- Found PNG: /usr/lib/libpng.so (found version "1.6.37") 
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "1.1.1k")  
-- Found GIF: /usr/lib/libgif.so (found version "5.2.1") 
-- Found Jpeg: /usr/lib/libjpeg.so
CMake Deprecation Warning at CMakeModules/GetRevision.cmake:1 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  CMakeModules/ConfigureChecks.cmake:2 (INCLUDE)
  CMakeLists.txt:156 (NL_CONFIGURE_CHECKS)

-- Found Git: /usr/bin/git (found version "2.31.1") 
fatal: No annotated tags can describe '649527039b24848cf03325c8d038a114fd09af8c'.
However, there were unannotated tags: try --tags.
CMake Warning at CMakeModules/GetRevision.cmake:111 (MESSAGE):
  git rev-parse failed, unable to include git branch.
Call Stack (most recent call first):
  CMakeModules/ConfigureChecks.cmake:2 (INCLUDE)
  CMakeLists.txt:156 (NL_CONFIGURE_CHECKS)

-- Found revision 9157
-- Looking for lzma_auto_decoder in /usr/lib/liblzma.so
-- Looking for lzma_auto_decoder in /usr/lib/liblzma.so - not found
-- Looking for lzma_easy_encoder in /usr/lib/liblzma.so
-- Looking for lzma_easy_encoder in /usr/lib/liblzma.so - not found
-- Looking for lzma_lzma_preset in /usr/lib/liblzma.so
-- Looking for lzma_lzma_preset in /usr/lib/liblzma.so - not found
-- Could NOT find LibLZMA (missing: LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.2.5")
-- ICU UC was found: /usr/lib/libicuuc.so
CMake Error at CMakeModules/FindHelpers.cmake:382 (MESSAGE):
  Error: Unable to find Luabind!
Call Stack (most recent call first):
  CMakeModules/FindLuabind.cmake:141 (FIND_PACKAGE_HELPER)
  CMakeLists.txt:261 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!
See also "/run/media/corey/47F22DEE70C10570/projects/ryzom-core/build/CMakeFiles/CMakeOutput.log".
See also "/run/media/corey/47F22DEE70C10570/projects/ryzom-core/build/CMakeFiles/CMakeError.log".
[corey@corey-pi4 build]$ 

I have xz installed so I have liblzma.so in /usr/lib/liblzma.so so I don't know why it's complaining.

nimetu commented 3 years ago

you probably missing devel packages for liblzma, luabind (possibly lua too).

It might also be possible that your linux has the different include paths

LinuxDonald commented 3 years ago

You could try this aur package:

https://aur.archlinux.org/packages/ryzom-client-git/

coreybruce commented 3 years ago

you probably missing devel packages for liblzma, luabind (possibly lua too).

It might also be possible that your linux has the different include paths

And what dependencies would that be that I am missing?

coreybruce commented 3 years ago

You could try this aur package:

https://aur.archlinux.org/packages/ryzom-client-git/

Ok just got to sort out a issue with one of the dependencies uabind-rpavlik-git as it won't build https://aur.archlinux.org/packages/luabind-rpavlik-git#comment-805973

LinuxDonald commented 2 years ago

I have updated the aur package and an new luabind aur package. Both builds. But at the moment ryzoms lzma conflicts with system lzma.

kaetemi commented 1 year ago

Lzma issue is addressed in another ticket. Luabind fork is maintained at https://github.com/ryzom/luabind.