ZTzTopia / GTProxy

⚖️ A proxy for growtopia. NO SHADOW BAN!
MIT License
54 stars 37 forks source link

Error in Building #64

Closed Okolapis closed 1 year ago

Okolapis commented 1 year ago
> -- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19045.
> -- The C compiler identification is MSVC 19.36.32535.0
> -- The CXX compiler identification is MSVC 19.36.32535.0
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe - 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: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe - skipped
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Looking for fcntl
> -- Looking for fcntl - not found
> -- Looking for poll
> -- Looking for poll - not found
> -- Looking for getaddrinfo
> -- Looking for getaddrinfo - not found
> -- Looking for getnameinfo
> -- Looking for getnameinfo - not found
> -- Looking for gethostbyname_r
> -- Looking for gethostbyname_r - not found
> -- Looking for gethostbyaddr_r
> -- Looking for gethostbyaddr_r - not found
> -- Looking for inet_pton
> -- Looking for inet_pton - not found
> -- Looking for inet_ntop
> -- Looking for inet_ntop - not found
> -- Performing Test HAS_MSGHDR_FLAGS
> -- Performing Test HAS_MSGHDR_FLAGS - Failed
> -- Check size of socklen_t
> -- Check size of socklen_t - failed
> -- GTProxy version: 1.4.2
> -- CMake-Conan: first find_package() found. Installing dependencies with Conan
> -- CMake-Conan: Checking if a default profile exists
> C:\Users\Anon\.conan2\profiles\default
> -- CMake-Conan: cmake_system_name=Windows
> -- CMake-Conan: CMake compiler=MSVC
> -- CMake-Conan: CMake cmpiler version=19.36.32535.0
> -- CMake-Conan: [settings] compiler=msvc
> -- CMake-Conan: [settings] compiler.version=193
> -- CMake-Conan: Creating profile C:/Users/Anon/Desktop/New Folder (4)/GTProxy/build/conan_host_profile
> -- CMake-Conan: Profile:
> include(default)
> [settings]
> os=Windows
> compiler=msvc
> compiler.version=193
> compiler.cppstd=20
> [conf]
> tools.cmake.cmaketoolchain:generator=Visual Studio 17 2022
> 
> -- CMake-Conan: Installing both Debug and Release
> -- CMake-Conan: conan install C:/Users/Anon/Desktop/New Folder (4)/GTProxy -of=C:/Users/Anon/Desktop/New Folder  (4)/GTProxy/build/conan -pr;C:/Users/Anon/Desktop/New Folder (4)/GTProxy/build/conan_host_profile;-s;build_type=Release;--build=missing;-g;CMakeDeps
> 
> ======== Input profiles ========
> Profile host:
> [settings]
> arch=x86_64
> build_type=Release
> compiler=msvc
> compiler.cppstd=20
> compiler.version=193
> os=Windows
> [conf]
> tools.cmake.cmaketoolchain:generator=Visual Studio 17 2022
> 
> Profile build:
> [settings]
> arch=x86_64
> build_type=Release
> os=Windows
> 
> 
> ======== Computing dependency graph ========
> Graph root
>     conanfile.py: C:/Users/Anon/Desktop/New Folder (4)/GTProxy\conanfile.py
> Requirements
>     cpp-httplib/0.12.6#5a09d54eac15e6f979e24676a3efd74a - Cache
>     fmt/9.1.0#44302d39c5a4bf7de8a39adc50bb4568 - Cache
>     libressl/3.5.3#ca95bb7d1b2b78bad04f3d37528158a2 - Cache
>     magic_enum/0.8.2#b5498cdc3f30cf47a1eab005f5012f2c - Cache
>     nlohmann_json/3.11.2#a35423bb6e1eb8f931423557e282c7ed - Cache
>     pcg-cpp/cci.20210406#1891d8a4d379a1d2fe13f9a554671bdc - Cache
>     spdlog/1.11.0#d0fdbaa523550b89156084bf42b41c90 - Cache
> Resolved version ranges
>     cpp-httplib/[~0.12]: cpp-httplib/0.12.6
>     libressl/[~3.5]: libressl/3.5.3
>     magic_enum/[~0.8]: magic_enum/0.8.2
>     nlohmann_json/[~3.11]: nlohmann_json/3.11.2
>     spdlog/[~1.11]: spdlog/1.11.0
> 
> ======== Computing necessary packages ========
> Requirements
>     cpp-httplib/0.12.6#5a09d54eac15e6f979e24676a3efd74a:da39a3ee5e6b4b0d3255bfef95601890afd80709#02678a68cfc77945b7854b8f77ed6910 - Download (conancenter)
>     fmt/9.1.0#44302d39c5a4bf7de8a39adc50bb4568:c65737639af0d7f44a44e35634607053fd36505e - Invalid
>     libressl/3.5.3#ca95bb7d1b2b78bad04f3d37528158a2:195038a1abf9ccae641d6c87a357b7cd6aaa1399 - Invalid
>     magic_enum/0.8.2#b5498cdc3f30cf47a1eab005f5012f2c:da39a3ee5e6b4b0d3255bfef95601890afd80709#333126e22e70e6cffa0020b9b419569e - Download (conancenter)
>     nlohmann_json/3.11.2#a35423bb6e1eb8f931423557e282c7ed:da39a3ee5e6b4b0d3255bfef95601890afd80709#2d1a5b1f5d673e1dab536bed20ce000b - Download (conancenter)
>     pcg-cpp/cci.20210406#1891d8a4d379a1d2fe13f9a554671bdc:da39a3ee5e6b4b0d3255bfef95601890afd80709#4df044b64bdbd5d2d27d6b2561937fa8 - Download (conancenter)
>     spdlog/1.11.0#d0fdbaa523550b89156084bf42b41c90:6893df17de16fc531fa0621dc887319637720c4d - Invalid
> 
> ======== Installing packages ========
> ERROR: There are invalid packages:
> fmt/9.1.0: Invalid: 'settings.compiler.runtime' value not defined
> libressl/3.5.3: Invalid: 'settings.compiler.runtime' value not defined
> spdlog/1.11.0: Invalid: 'settings.compiler.runtime' value not defined
> CMake Error at vendor/cmake-conan/conan_support.cmake:147 (message):
>   Conan install failed='6'
> Call Stack (most recent call first):
>   vendor/cmake-conan/conan_support.cmake:178 (conan_install)
>   src/CMakeLists.txt:52 (find_package)
> 
> 
> -- Configuring incomplete, errors occurred!

Yeah... I don't know

actuallydoc commented 1 year ago

Please provide what was your method of installation did you use git clone?.

Okolapis commented 1 year ago

yes i used git clone --recurse-submodules after I cloned it I moved the proxy executable with its dlls to folder and tried to build it in build subfolder

actuallydoc commented 1 year ago

Do you have windows build tools installed?.

Okolapis commented 1 year ago

yes I installed MSVC compiler toolset if you mean that

Okolapis commented 1 year ago

Also I forgot to mention i put fmt in build folder cause i was getting fmt error Here is the error i got before

CMake Error at CMakeLists.txt:8 (find_package):
  By not providing "Findfmt.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "fmt", but
  CMake did not find one.

  Could not find a package configuration file provided by "fmt" with any of
  the following names:

    fmtConfig.cmake
    fmt-config.cmake

  Add the installation prefix of "fmt" to CMAKE_PREFIX_PATH or set "fmt_DIR"
  to a directory containing one of the above files.  If "fmt" provides a
  separate development package or SDK, be sure it has been installed.
actuallydoc commented 1 year ago

For me everything works if i do as the steps say in the README file.

actuallydoc commented 1 year ago

Only add enet.dll and other required dlls inside the folder that the executable is in. If you need the dll's u can get them from the release download (it includes them) image

Okolapis commented 1 year ago

I got the same error with these steps

Okolapis commented 1 year ago

Could having a Turkish Language Windows be the cause? That would be the explanation for not being able to find the fmt path

Okolapis commented 1 year ago

It was not appearantly. I changed to English (US) and I'm getting the same error again

Okolapis commented 1 year ago

image This is the main problem conancenter doesnt download these three

actuallydoc commented 1 year ago

do you have conan installed?

Okolapis commented 1 year ago

yes I have conan installed

actuallydoc commented 1 year ago

yes I have conan installed

Uhh thats really wierd. If we just see the error message u can see that ur variables are not defined (this isnt normal behavior) Did you install conan with the same command as it is provided?

Okolapis commented 1 year ago

Yes I used pip install "conan>2.0" to install conan also i checked the .conan2 file and I found the packages however program still gives value not defined message image

Okolapis commented 1 year ago

I checked the packages and they all have conanfile.py

actuallydoc commented 1 year ago

Im sorry but this is really strange. For me the building and setting up worked everytime...

Okolapis commented 1 year ago

alright i found the problem image but the thing is i tried to build with both versions and got the same conflict

Edit: Just in case I want to tell how I built the fmt. I cloned the fmt from github and built it with cmake and put the path to fmt_dir

Okolapis commented 1 year ago

values are defined now

actuallydoc commented 1 year ago

Is it building now?

Okolapis commented 1 year ago

nope I used fmt 9.0.0 version to fix the conflict but now I'm getting this

CMake-Conan: Installing both Debug and Release
CMake-Conan: conan install C:/Users/Anon/Desktop/GTProxy -of=C:/Users/Anon/Desktop/GTProxy/build/conan -pr;C:/Users/Anon/Desktop/GTProxy/build/conan_host_profile;-s;build_type=Release;--build=missing;-g;CMakeDeps
CMake Error at vendor/cmake-conan/conan_support.cmake:147 (message):
  Conan install failed='The system cannot find the file specified'
Call Stack (most recent call first):
  vendor/cmake-conan/conan_support.cmake:178 (conan_install)
  src/CMakeLists.txt:52 (find_package)
Okolapis commented 1 year ago

Also I'm using CMake Gui to show the fmt_dir and I'm building with the configure button which is debug mode

Edit: Grammar