bluesadi / Pluto

Obfuscator based on LLVM 14.0.6
831 stars 185 forks source link

Compiler not found on Windows #3

Closed ghost closed 2 years ago

ghost commented 2 years ago

I'm getting this error trying to compile on Win10. i have cmake and ninja installed. How can i fix it?

PS C:\Users\Administrator\Documents\GitHub\Pluto-Obfuscator\build> cmake -G "Ninja" -DLLVM_ENABLE_PROJECTS="clang"  -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD="X86" -DBUILD_SHARED_LIBS=On ../llvm
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:38 (project):
  No CMAKE_C_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:38 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:38 (project):
  No CMAKE_ASM_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!
See also "C:/Users/Administrator/Documents/GitHub/Pluto-Obfuscator/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Administrator/Documents/GitHub/Pluto-Obfuscator/build/CMakeFiles/CMakeError.log".
PS C:\Users\Administrator\Documents\GitHub\Pluto-Obfuscator\build> ninja
ninja: error: loading 'build.ninja': The system cannot find the file specified.
ghost commented 2 years ago

Fixed by adding mingw-w64 to env path