GabeRundlett / gvox_engine

MIT License
325 stars 19 forks source link

error when attempting to build the engine #11

Open BookWyrm114 opened 4 months ago

BookWyrm114 commented 4 months ago

when trying to build the engine I continuously run into this error:

[17/17] Linking CXX executable Release\gvox_engine.exe resolve: C:\Users\pokec\Onedrive\Documents\GitHub\gvox_engine\vcpkg\scripts\buildsystems\msbuild\applocal.ps1:162 Line | 162 | resolve($targetBinary) | ~~~~~~ | Neither dumpbin, llvm-objdump nor objdump could be found. Can not take care of dll dependencies.

The error seems to be referring to this line in applocal.ps1:

resolve($targetBinary) Write-Verbose $($g_searched | out-string)

This issue seems to prevent it from generating and .dll files, so starting the .exe just spits out errors about missing .dll files

GabeRundlett commented 4 months ago

Could you please provide the whole build log?

BookWyrm114 commented 4 months ago

build log.txt

GabeRundlett commented 4 months ago

It's complaining that there's no dumpbin, which absolutely should be a part of your Visual Studio installation. Could you ensure that you have dumpbin installed with Visual Studio or that your Visual Studio installation is not broken? If that's all set, try deleting the .out folder in gvox engine and try again.

BookWyrm114 commented 4 months ago

I just tried again after repairing both my installations of Visual Studio (2019 and 2022), to no avail, how can I make sure i have dumpbin installed?

GabeRundlett commented 4 months ago

it should be in your Visual Studio location. That could be C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\<version>\bin\Hostx64\x64 for whichever version of the Visual Studio build tools you have installed. I've never seen anyone have this specific issue before. image

GabeRundlett commented 4 months ago

it really should be in the same directory as the other build tools that CMake selected for compilation. To be extra sure, you can check gvox_engine/.out/cl-x86_64-windows-msvc/CMakeCache.txt for the line that says CMAKE_CXX_COMPILER:STRING=. This is the filepath for the C++ compiler. It should be the same folder as where dumpbin.exe is

BookWyrm114 commented 4 months ago

I do have dumpbin installed, and the filepath seems to be completely correct, but the error persists regardless

BookWyrm114 commented 4 months ago

image image trying to get this to build is pain lol

GabeRundlett commented 4 months ago

it makes no sense because it has the compiler but not dumpbin??? I would look up this error message to see if anyone else has experienced it. At this point, there's not really anything that I can do to help, as I can't reproduce the error

BookWyrm114 commented 4 months ago

okay, np!

wolsoot commented 4 months ago

I had the same error, which seems to be an environment issue. What fixed it was adding the folder containing the dumpbin executable (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64) to my path variable.