open-gunz/ogz-source

Linux instalation problem

Opened this issue · 1 comments

IJCS commented

Hello, I am sorry to present this issue with so little information regarding the problem. But I am very new to linux and many things are beyond me.

The problem occurs after installing all the respective packages. But the process stops during the process.

The OS is Debian 22.04 (64) running on a VirtualBox. I would like to move it to a machine in the future, but I want to make sure I can make it work beforehand.

The error is:

[  0%] Building CXX object sdk/pevents/CMakeFiles/pevents.dir/src/pevents.cpp.o
[  9%] Linking CXX static library ../../lib/libpevents.a
[  9%] Built target pevents
[  9%] Generating CXX unity source cml/cotire/cml_ORIGINAL_CXX_unity.cxx
[ 18%] Building CXX object cml/CMakeFiles/cml.dir/cotire/cml_ORIGINAL_CXX_unity.cxx.o
In file included from /home/[REDACTED]/ogz-source/src/cml/Include/MFile.h:7,
                 from /home/[REDACTED]/ogz-source/src/cml/source/FileInfo.cpp:5,
                 from /home/[REDACTED]/ogz-source/build/linux/cml/cotire/cml_ORIGINAL_CXX_unity.cxx:6:
/home/[REDACTED]/ogz-source/src/cml/Include/MUtil.h: In function ‘optional<T> StringToInt(StringView)’:
/home/[REDACTED]/ogz-source/src/cml/Include/MUtil.h:332:25: error: ‘numeric_limits’ is not a member of ‘std’
  332 |         U Max = U((std::numeric_limits<T>::max)()) + U(IsNegative);
      |                         ^~~~~~~~~~~~~~
/home/[REDACTED]/ogz-source/src/cml/Include/MUtil.h:332:18: error: expected primary-expression before ‘(’ token
  332 |         U Max = U((std::numeric_limits<T>::max)()) + U(IsNegative);
      |                  ^
/home/[REDACTED]/ogz-source/src/cml/Include/MUtil.h:332:25: error: ‘numeric_limits’ is not a member of ‘std’
  332 |         U Max = U((std::numeric_limits<T>::max)()) + U(IsNegative);
      |                         ^~~~~~~~~~~~~~
/home/[REDACTED]/ogz-source/src/cml/Include/MUtil.h:332:41: error: expected primary-expression before ‘>’ token
  332 |         U Max = U((std::numeric_limits<T>::max)()) + U(IsNegative);
      |                                         ^
gmake[2]: *** [cml/CMakeFiles/cml.dir/build.make:80: cml/CMakeFiles/cml.dir/cotire/cml_ORIGINAL_CXX_unity.cxx.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:399: cml/CMakeFiles/cml.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

and i get some warnings in start:

CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (LibCURL)
  does not match the name of the calling package (libcurl).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Findlibcurl.cmake:37 (find_package_handle_standard_args)
  CMakeLists.txt:38 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (LIBSQLITE3)
  does not match the name of the calling package (libsqlite).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Findlibsqlite.cmake:19 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:39 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

You will need to include the following libraries in the file header:

#include <stddef.h>
#include <limits.h>

However, I should warn you that it is not possible to compile this source code on a Linux operating system, you will need to use a windows machine for this.