axmolengine / axmol

Axmol Engine – A Multi-platform Engine for Desktop, XBOX (UWP) and Mobile games. (A fork of Cocos2d-x-4.0)
https://axmol.dev
MIT License
908 stars 198 forks source link

CMake Error at core/CMakeLists.txt:176 (message): Please run setup.py again to download NUGET.EXE, and run CMake again. #821

Closed meiry closed 2 years ago

meiry commented 2 years ago

running the cmake : cmake -S . -B build -G "Visual Studio 17 2022" -A x64

Getting :

c:\dev\my\cpp\axys>cmake -S . -B build -G "Visual Studio 17 2022" -A x64
-- Selecting Windows SDK version 10.0.20348.0 to target Windows 10.0.19043.
-- PROJECT_NAME:axys
-- PROJECT_SOURCE_DIR:C:/dev/my/cpp/axys
-- AXYS_ROOT_PATH:C:/dev/my/cpp/axys
-- CMAKE_MODULE_PATH:C:/dev/my/cpp/axys/cmake/Modules/
-- PROJECT_BINARY_DIR:C:/dev/my/cpp/axys/build
-- ENGINE_BINARY_PATH:C:/dev/my/cpp/axys/build/engine
-- PYTHON_PATH:C:/Users/meir.yanovich/AppData/Local/Programs/Python/Python37/python.exe
-- _AX_COMMAND_PATH:_AX_COMMAND-NOTFOUND
-- HOST_SYSTEM:Windows
-- CMAKE_GENERATOR: Visual Studio 17 2022
-- CXX_STD=17
-- using Windows MSVC generate axis project, MSVC_VERSION:1930
-- The ASM_NASM compiler identification is unknown
-- Didn't find assembler
-- The nasm compiler speed up libraries: jpeg(libjpeg-turbo)
CMake Warning at cmake/Modules/AXConfigDefine.cmake:184 (message):
  The nasm compiler doesn't present on your system PATH, please download
  from: https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/
Call Stack (most recent call first):
  cmake/Modules/AXBuildSet.cmake:43 (include)
  CMakeLists.txt:46 (include)

-- LUAJIT32_COMMAND:
-- LUAJIT64_COMMAND:
-- Using plainlua https://lua.org
-- Module support is disabled.
-- Version: 9.0.0
-- Build type: Release
-- CXX_STANDARD: 17
-- Required features: cxx_variadic_templates
Configuring Chipmunk2D version 7.0.3
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
CMake Warning (dev) at thirdparty/astc/CMakeLists.txt:136 (message):

  ISA_SIMD=avx2,ASTC_HAVE_AVX2_INTRINSICS=1,ASTC_HAVE_SSE42_INTRINSICS=1,ASTC_HAVE_SSE41_INTRINSICS=1,ASTC_HAVE_SSE2_INTRINSICS=1,ASTC_HAVE_NEON_INTRINSICS=
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find ALSA (missing: ALSA_LIBRARY ALSA_INCLUDE_DIR)
-- Could NOT find OSS (missing: OSS_INCLUDE_DIR)
-- Could NOT find AudioIO (missing: AUDIOIO_INCLUDE_DIR)
-- Could NOT find SoundIO (missing: SOUNDIO_LIBRARY SOUNDIO_INCLUDE_DIR)
-- Could NOT find PortAudio (missing: PORTAUDIO_LIBRARY PORTAUDIO_INCLUDE_DIR)
-- Could NOT find PulseAudio (missing: PULSEAUDIO_LIBRARY PULSEAUDIO_INCLUDE_DIR)
-- Could NOT find JACK (missing: JACK_LIBRARY JACK_INCLUDE_DIR)
-- Could NOT find OpenSL (missing: OPENSL_LIBRARY OPENSL_INCLUDE_DIR OPENSL_ANDROID_INCLUDE_DIR)
-- Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)
--
-- Building OpenAL with support for the following backends:
--     WinMM, DirectSound, WASAPI, WaveFile, Null
--
-- Building with support for CPU extensions:
--     Default, SSE, SSE2, SSE3, SSE4.1
--
-- Building with legacy EAX extension support
--
-- Embedding HRTF datasets
--
-- NOT installing library and headers
-- Installing sample configuration
-- Installing HRTF data files
-- Installing AmbDec presets
--
-- Including Win32 support
-- AX_USE_ALSOFT=
NUGET.EXE not found.
CMake Error at core/CMakeLists.txt:176 (message):
  Please run setup.py again to download NUGET.EXE, and run CMake again.

-- Configuring incomplete, errors occurred!
See also "C:/dev/my/cpp/axys/build/CMakeFiles/CMakeOutput.log".
See also "C:/dev/my/cpp/axys/build/CMakeFiles/CMakeError.log".
meiry commented 2 years ago

found the selution , looks like nuget needs to be downloade , its not bundled with VSC++ 2022 from here : https://www.nuget.org/downloads

aismann commented 2 years ago

Have you run setup.py? its downloading nuget.exe

x86-commandline/latest/nuget.exe'
==> Start to download, please wait ...

==> Downloading finished!
meiry commented 2 years ago

@aismann Do i have to run setup.py , i downloaded the nuget manully and invoket the cmake command and every thing worked fine ..

aismann commented 2 years ago

@aismann Do i have to run setup.py , i downloaded the nuget manully and invoket the cmake command and every thing worked fine

Its works. So thats OK. But better Look to the readme also. The Prerequisites chapter has some info.

aismann commented 2 years ago

Can you close it?

rh101 commented 2 years ago

Do i have to run setup.py

Of course it is required. It's a documented part of the setup of the game engine on your system, and it's purpose is not only to download Nuget. You can look through the setup.py code yourself and see what it actually does.

If the documented instructions are followed, then we wouldn't end up with issues like this logged on github against the engine.