eteran / edb-debugger

edb is a cross-platform AArch32/x86/x86-64 debugger.
GNU General Public License v2.0
2.66k stars 321 forks source link

Windows build error #851

Open Neizvestnyj opened 6 months ago

Neizvestnyj commented 6 months ago

-- The ASM_MASM compiler identification is MSVC -- Found assembler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/ml64.exe -- Using default value of EDB Plugin directory -- Configuring done (3.4s) -- Generating done (0.8s) -- Build files have been written to: C:/Users/pikro/Downloads/edb-debugger/build


**Then:**
```shell
cmake --build . --config Release

And I get error, why?

MSBuild version 17.5.1+f6fdcf537 for .NET Framework

  1>Checking Build System
  Automatic MOC and UIC for target edb
  1>
  Generating qrc_debugger.cpp
  Generating qrc_themes.cpp
  Generating qrc_breeze-edb.cpp
  Generating qrc_breeze-dark-edb.cpp
  Generating edb_zh_CN.qm
  Updating 'C:/Users/pikro/Downloads/edb-debugger/build/src/edb_zh_CN.qm'...
      Generated 323 translation(s) (319 finished and 4 unfinished)
      Ignored 123 untranslated source text(s)
  Building Custom Rule C:/Users/pikro/Downloads/edb-debugger/src/CMakeLists.txt
  Generating qrc_translations.cpp
  Assembling C:\Users\pikro\Downloads\edb-debugger\src\LongDoubleX86.asm...
MASM : warning A4018: invalid command-line option : /safeseh [C:\Users\pikro\Downloads\edb-debugger\build\src\edb.vcxproj]
MASM : fatal error A1000: cannot open file : Files [C:\Users\pikro\Downloads\edb-debugger\build\src\edb.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\BuildCustomizations\masm.targets(70,5): error MSB3721: выход из команды "ml64.exe /c /nologo /safeseh /Fo"edb.dir\Release\LongDoubleX86.obj" /D"WIN32" /D"_WINDOWS" /D"NDEBUG" /D"DEFAULT_PLUGIN_PATH="C:/Program Files (x86)/edb/lib/edb"" /D"UNICODE" /D"_UNICODE" /D"_CRT_SECURE_NO_WARNINGS" /D"EDB_IS_32_BIT=false" /D"EDB_IS_64_BIT=true" /D"EDB_X86_64" /D"QT_WIDGETS_LIB" /D"QT_GUI_LIB" /D"QT_CORE_LIB" /D"QT_NO_DEBUG" /D"QT_XML_LIB" /D"QT_XMLPATTERNS_LIB" /D"QT_NETWORK_LIB" /D"QT_SVG_LIB" /D"CMAKE_INTDIR="Release"" /D"edb_EXPORTS" /I "C:\Users\pikro\Downloads\edb-debugger\build\src" /I "C:\Users\pikro\Downloads\edb-debugger\src" /I "C:\Users\pikro\Downloads\edb-debugger\build\src\edb_autogen\include_Release" /I "C:\Users\pikro\Downloads\edb-debugger\build\include" /I "C:\Program Files (x86)\capstone\include" /I "C:\Users\pikro\Downloads\edb-debugger\include" /I "C:\Users\pikro\Downloads\edb-debugger\include\os\win32" /I "C:\Users\pikro\Downloads\edb-debugger\include\arch\x86-generic" /I "C:\Users\pikro\Downloads\edb-debugger\src\capstone-edb" /I "C:\Users\pikro\Downloads\edb-debugger\src\qhexview" /I "C:\Users\pikro\Downloads\edb-debugger\src\widgets" /I "C:\Users\pikro\Downloads\edb-debugger\src\session" /I "D:\Programs\Qt\5.14.2\msvc2017_64\include" /I "D:\Programs\Qt\5.14.2\msvc2017_64\include\QtWidgets" /I "D:\Programs\Qt\5.14.2\msvc2017_64\include\QtGui" /I "D:\Programs\Qt\5.14.2\msvc2017_64\include\QtANGLE" /I "D:\Programs\Qt\5.14.2\msvc2017_64\include\QtCore" /I "D:\Programs\Qt\5.14.2\msvc2017_64\.\mkspecs\win32-msvc" /I "D:\Programs\Qt\5.14.2\msvc2017_64\include\QtXml" /I "D:\Programs\Qt\5.14.2\msvc2017_64\include\QtXmlPatterns" /I "D:\Programs\Qt\5.14.2\msvc2017_64\include\QtNetwork" /I "D:\Programs\Qt\5.14.2\msvc2017_64\include\QtSvg" /W3 /errorReport:prompt  /machine:x64 /Ta"C:\Users\pikro\Downloads\edb-debugger\src\LongDoubleX86.asm"" с кодом "1". [C:\Users\pikro\Downloads\edb-debugger\build\src\edb.vcxproj]
eteran commented 6 months ago

Excellent question, the windows build is not quite functional yet. At the moment, Linux is the only supported platform that is expected to work. We'd love to improve this, but we aren't quite there yet.