shawwn / noh

An open source implementation of Icefrog's DotA, with a pretty amazing engine. Builds in 3 minutes flat; cross-platform.
200 stars 32 forks source link

Build failed on windows, vs2019, clion #7

Closed demon90s closed 8 months ago

demon90s commented 8 months ago

The error information:

"D:\Program Files\JetBrains\CLion 2023.3.4\bin\cmake\win\x64\bin\cmake.exe" -DCMAKE_BUILD_TYPE=RelWithDebInfo "-DCMAKE_MAKE_PROGRAM=D:/Program Files/JetBrains/CLion 2023.3.4/bin/ninja/win/x64/ninja.exe" -DCMAKE_TOOLCHAIN_FILE=C:\Users\youyan\.vcpkg-clion\vcpkg\scripts\buildsystems\vcpkg.cmake -G Ninja -S D:\tmp\noh\noh-main -B D:\tmp\noh\noh-main\cmake-build-release
-- Running vcpkg install
Detecting compiler hash for triplet x64-windows...
All requested packages are currently installed.
Total install time: 2 us
The package zlib is compatible with built-in CMake targets:

    find_package(ZLIB REQUIRED)
    target_link_libraries(main PRIVATE ZLIB::ZLIB)

curl provides CMake targets:

  # this is heuristically generated, and may not be correct
  find_package(CURL CONFIG REQUIRED)
  target_link_libraries(main PRIVATE CURL::libcurl)

curl provides pkg-config modules:

    # Library to transfer files with ftp, http, etc.
    libcurl

The package libpng is compatible with built-in CMake targets:

    find_package(PNG REQUIRED)
    target_link_libraries(main PRIVATE PNG::PNG)

freetype is compatible with built-in CMake targets:

    find_package(Freetype REQUIRED)
    target_link_libraries(main PRIVATE Freetype::Freetype) # since CMake 3.10

The package giflib is compatible with built-in CMake targets:

    find_package(GIF REQUIRED)
    target_link_libraries(main PRIVATE GIF::GIF)

libjpeg-turbo is compatible with built-in implementation-agnostic CMake targets:

    find_package(JPEG REQUIRED)
    target_include_directories(main PRIVATE JPEG::JPEG)

libjpeg-turbo provides CMake targets for the TurboJPEG C API:

    find_package(libjpeg-turbo CONFIG REQUIRED)
    target_link_libraries(main PRIVATE libjpeg-turbo::turbojpeg)

The package libxml2 is compatible with built-in CMake targets:

    find_package(LibXml2 REQUIRED)
    target_link_libraries(main PRIVATE LibXml2::LibXml2)

libzip provides CMake targets:

  # this is heuristically generated, and may not be correct
  find_package(libzip CONFIG REQUIRED)
  target_link_libraries(main PRIVATE libzip::zip)

libzip provides pkg-config modules:

    # library for handling zip archives
    libzip

The package openssl is compatible with built-in CMake targets:

    find_package(OpenSSL REQUIRED)
    target_link_libraries(main PRIVATE OpenSSL::SSL OpenSSL::Crypto)

speex provides pkg-config modules:

    # Speex is an audio codec tuned for speech
    speex

speexdsp provides pkg-config modules:

    # Speexdsp is a speech processing library that goes along with the Speex codec
    speexdsp

-- Running vcpkg install - done
-- CMAKE_CXX_FLAGS: /DWIN32 /D_WINDOWS /EHsc
-- CMAKE_OBJC_FLAGS: 
CMake Error at CMakeLists.txt:330 (find_path):
  Could not find FMOD_INCLUDE_DIR using the following files: fmod.h
Call Stack (most recent call first):
  CMakeLists.txt:343 (find_include_dir)

-- Configuring incomplete, errors occurred!

[Failed to reload]

I don't known how to fix it...

demon90s commented 8 months ago

Fixed, I download the zip file, which not include the libs. git clone is the right choice...