radioegor146 / native-obfuscator

Java .class to .cpp converter for use with JNI
GNU General Public License v3.0
499 stars 67 forks source link

Cant build project files #49

Closed 0x25565 closed 2 years ago

0x25565 commented 2 years ago

Im getting this error after executing cmake -S cpp -B outputFolder

PS C:\Users\User\Desktop\NativeTranslated> cmake -S C:\Users\User\Desktop\NativeTranslated\cpp -B C:\Users\User\Desktop\NativeTranslated\output
-- Building for: NMake Makefiles
-- The C compiler identification is MSVC 19.29.30136.0
-- The CXX compiler identification is MSVC 19.29.30136.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x86/cl.exe - broken
CMake Error at D:/Program Files/CMake/share/cmake-3.21/Modules/CMakeTestCCompiler.cmake:69 (message):
  The C compiler

    "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x86/cl.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: C:/Users/User/Desktop/NativeTranslated/output/CMakeFiles/CMakeTmp

    Run Build Command(s):nmake -f Makefile /nologo cmTC_50b77\fast &&   "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x86\nmake.exe"  -f CMakeFiles\cmTC_50b77.dir\build.make /nologo -L                  CMakeFiles\cmTC_50b77.dir\build
    Building C object CMakeFiles/cmTC_50b77.dir/testCCompiler.c.obj
        "D:\Program Files\CMake\bin\cmake.exe" -E cmake_cl_compile_depends --dep-file=CMakeFiles\cmTC_50b77.dir\testCCompiler.c.obj.d --working-dir=C:\Users\User\Desktop\NativeTranslated\output\CMakeFiles\CMakeTmp --filter-prefix="Nota: file incluso  C:" -- C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1429~1.301\bin\Hostx64\x86\cl.exe @C:\Users\User\AppData\Local\Temp\nmC219.tmp
    testCCompiler.c
    Linking C executable cmTC_50b77.exe
        "D:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_50b77.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1429~1.301\bin\Hostx64\x86\link.exe /nologo @CMakeFiles\cmTC_50b77.dir\objects1.rsp @C:\Users\User\AppData\Local\Temp\nmC278.tmp
    RC Pass 1: command "rc /fo CMakeFiles\cmTC_50b77.dir/manifest.res CMakeFiles\cmTC_50b77.dir/manifest.rc" failed (exit code 0) with the following output:
    Unable to find specified fileNMAKE : fatal error U1077: '"D:\Program Files\CMake\bin\cmake.exe"' : with code '0xffffffff'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x86\nmake.exe"' : with code '0x2'
    Stop.

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)

-- Configuring incomplete, errors occurred!
See also "C:/Users/User/Desktop/NativeTranslated/output/CMakeFiles/CMakeOutput.log".
See also "C:/Users/User/Desktop/NativeTranslated/output/CMakeFiles/CMakeError.log".

Im using windows 10 and ive both visual studio & cmake installed. What to do?

radioegor146 commented 2 years ago

Have you tried to compile it from MSVS x64 dev command prompt?

radioegor146 commented 2 years ago

Closing due to inactivity and not native-obfuscator problems. If you need, you can either reopen the issue or create new.