ZTzTopia / GTProxy

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

Error while try to build #70

Closed Furkan125 closed 11 months ago

Furkan125 commented 11 months ago

Hi. I was also getting an error while running the command "cmake .. -DCMAKE_BUILD_TYPE=Debug" but I fixed the problem by changing the fmt version to 10.0.0 from the conanfile.py file. "cmake --build ." I also get an error when I run the command and I don't know how to solve it.

Here is the error: message.txt

badewen commented 11 months ago

assuming from the MSBuild version, it seems like yours is outdated. try upgrading to 17.5.1 and/or try adding -DCMAKE_CXX_STANDARD=20. I can only assume though since mine is building properly

Furkan125 commented 11 months ago

Does the version need to be 17.5.1 specifically? I am currently using the latest version and there is still an error.

message.txt

Also, where should I add the "-CMAKE_CXX_STANDARD=20" command? There is already a similar in CMakeLists.txt.

badewen commented 11 months ago

It built succesfully??? Using google translate i didnt see any errors there.

Furkan125 commented 11 months ago

No, no exe file is created after the command is run. Cmake closes after "Generating code...".

image

image

badewen commented 11 months ago

Yeah the build env is fucked. Try deleting the "build" direcotory and revert the fmt version or any other version that you have changed.

Furkan125 commented 11 months ago

I changed the version because I got an error when I left the fmt version the same.

I did what you said and when I run command "cmake .. -DCMAKE_BUILD_TYPE=Debug" I get this error: message.txt

badewen commented 11 months ago

Sorry for the late response, you have to change the fmt version to 9.1 since spdlog 1.11 is not compatible with fmt version 10.x.

Furkan125 commented 11 months ago

That is the problem. While fmt version is 10.x, I do not get an error, but 9.1 gives an error.

message.txt

Furkan125 commented 11 months ago

I think I fixed it. My fmt version is 8.0.1 and spdlog version is 1.9.2 and I got the exe file.

Furkan125 commented 11 months ago

Yes It builded. Thank you for help.