danielkrupinski / GOESP

Cross-platform streamproof ESP hack for Counter-Strike: Global Offensive, written in modern C++. Rendering and GUI powered by Dear ImGui + FreeType.
MIT License
434 stars 74 forks source link

Fails to Build on Arch Linux #135

Closed edgybugga closed 2 years ago

edgybugga commented 2 years ago

I'm having trouble building. I followed the instructions for Linux in the README.md. Since I'm using Arch Linux (btw) I figured I'd follow the dependency instructions mentioned for Manjaro, although there is no g++ package on Arch I think it's bundled with gcc.

I copied the compile commands into a bash script I created called build.sh, then executed it to compile. I am running the latest version of gcc from the Arch repo.

❯ gcc --version                                                                               GOESP -> master ?
gcc (GCC) 12.1.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

❯ g++ --version                                                                               GOESP -> master ?
g++ (GCC) 12.1.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
❯ cat build.sh                                                                                GOESP -> master ?
#!/bin/bash

mkdir Release
cd Release
cmake -D CMAKE_BUILD_TYPE=Release ..
make -j $(nproc --all)
❯ ./build.sh                                                                                  GOESP -> master ?
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- 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
-- 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
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sky/Documents/repo/GOESP/Release
[  5%] Building C object GOESP/freetype/CMakeFiles/FreeType.dir/src/base/ftbase.c.o
[  5%] Building C object GOESP/freetype/CMakeFiles/FreeType.dir/src/cff/cff.c.o
[  7%] Building C object GOESP/freetype/CMakeFiles/FreeType.dir/src/base/ftbitmap.c.o
[ 12%] Building C object GOESP/freetype/CMakeFiles/FreeType.dir/src/base/ftdebug.c.o
[ 15%] Building C object GOESP/freetype/CMakeFiles/FreeType.dir/src/base/ftglyph.c.o
[ 15%] Building C object GOESP/freetype/CMakeFiles/FreeType.dir/src/autofit/autofit.c.o
[ 17%] Building C object GOESP/freetype/CMakeFiles/FreeType.dir/src/base/ftinit.c.o
[ 20%] Building C object GOESP/freetype/CMakeFiles/FreeType.dir/src/base/ftsynth.c.o
[ 22%] Building C object GOESP/freetype/CMakeFiles/FreeType.dir/src/base/ftsystem.c.o
[ 25%] Building C object GOESP/freetype/CMakeFiles/FreeType.dir/src/psaux/psaux.c.o
[ 27%] Building C object GOESP/freetype/CMakeFiles/FreeType.dir/src/pshinter/pshinter.c.o
[ 30%] Building C object GOESP/freetype/CMakeFiles/FreeType.dir/src/psnames/psnames.c.o
[ 32%] Building C object GOESP/freetype/CMakeFiles/FreeType.dir/src/raster/raster.c.o
[ 35%] Building C object GOESP/freetype/CMakeFiles/FreeType.dir/src/sfnt/sfnt.c.o
[ 37%] Building C object GOESP/freetype/CMakeFiles/FreeType.dir/src/smooth/smooth.c.o
[ 40%] Building C object GOESP/freetype/CMakeFiles/FreeType.dir/src/truetype/truetype.c.o
[ 42%] Linking C static library libFreeType.a
[ 42%] Built target FreeType
[ 52%] Building CXX object CMakeFiles/GOESP.dir/GOESP/GameData.cpp.o
[ 52%] Building CXX object CMakeFiles/GOESP.dir/GOESP/GUI.cpp.o
[ 52%] Building CXX object CMakeFiles/GOESP.dir/GOESP/EventListener.cpp.o
[ 52%] Building CXX object CMakeFiles/GOESP.dir/GOESP/ConfigStructs.cpp.o
[ 55%] Building CXX object CMakeFiles/GOESP.dir/GOESP/Hacks/ESP.cpp.o
[ 57%] Building CXX object CMakeFiles/GOESP.dir/GOESP/Hacks/Misc.cpp.o
[ 60%] Building CXX object CMakeFiles/GOESP.dir/GOESP/Helpers.cpp.o
[ 62%] Building CXX object CMakeFiles/GOESP.dir/GOESP/Hooks.cpp.o
In file included from /home/sky/Documents/repo/GOESP/GOESP/Hooks.cpp:5:
/home/sky/Documents/repo/GOESP/GOESP/GUI.h: In member function ‘float GUI::getTransparency() const’:
/home/sky/Documents/repo/GOESP/GOESP/GUI.h:16:58: error: ‘clamp’ is not a member of ‘std’
   16 |     float getTransparency() const noexcept { return std::clamp(open ? toggleAnimationEnd : 1.0f - toggleAnimationEnd, 0.0f, 1.0f); }
      |                                                          ^~~~~
[ 65%] Building CXX object CMakeFiles/GOESP.dir/GOESP/ImGuiCustom.cpp.o
[ 67%] Building CXX object CMakeFiles/GOESP.dir/GOESP/Memory.cpp.o
[ 70%] Building CXX object CMakeFiles/GOESP.dir/GOESP/PostProcessing.cpp.o
[ 72%] Building CXX object CMakeFiles/GOESP.dir/GOESP/SDK/Entity.cpp.o
[ 75%] Building CXX object CMakeFiles/GOESP.dir/GOESP/dllmain.cpp.o
make[2]: *** [CMakeFiles/GOESP.dir/build.make:174: CMakeFiles/GOESP.dir/GOESP/Hooks.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/sky/Documents/repo/GOESP/GOESP/SDK/Entity.cpp:5:
/home/sky/Documents/repo/GOESP/GOESP/SDK/Engine.h:27:10: error: ‘uint64_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
   27 |     std::uint64_t version;
      |          ^~~~~~~~
      |          wint_t
/home/sky/Documents/repo/GOESP/GOESP/SDK/Engine.h:29:14: error: ‘uint64_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
   29 |         std::uint64_t xuid;
      |              ^~~~~~~~
      |              wint_t
/home/sky/Documents/repo/GOESP/GOESP/SDK/Engine.h:31:18: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
   31 |             std::uint32_t xuidLow;
      |                  ^~~~~~~~
      |                  wint_t
/home/sky/Documents/repo/GOESP/GOESP/SDK/Engine.h:32:18: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
   32 |             std::uint32_t xuidHigh;
      |                  ^~~~~~~~
      |                  wint_t
/home/sky/Documents/repo/GOESP/GOESP/SDK/Engine.h:38:10: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
   38 |     std::uint32_t friendsId;
      |          ^~~~~~~~
      |          wint_t
/home/sky/Documents/repo/GOESP/GOESP/SDK/Entity.cpp: In member function ‘uint64_t CSPlayer::getSteamID()’:
/home/sky/Documents/repo/GOESP/GOESP/SDK/Entity.cpp:119:27: error: ‘struct PlayerInfo’ has no member named ‘xui ’; did you mean ‘guid’?
  119 |         return playerInfo.xuid;
      |                           ^~~~
      |                           guid
make[2]: *** [CMakeFiles/GOESP.dir/build.make:230: CMakeFiles/GOESP.dir/GOESP/SDK/Entity.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/GOESP.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
danielkrupinski commented 2 years ago

I've made some fixes, please try again with the latest source.

edgybugga commented 2 years ago

I've made some fixes, please try again with the latest source.

I managed to get it to compile yesterday making those same changes. What really puzzles me is how it compiled fine for other people. Anyways it compiles and works well now, so I'll close this issue. Thanks!