EasyRPG / buildscripts

The scripts used to compile needed libraries for supported platform ports on our Jenkins server
https://ci.easyrpg.org/view/Toolchains/
Other
17 stars 18 forks source link

buildscript for Windows no longer working ("Could NOT find inih") #176

Closed florianessl closed 7 months ago

florianessl commented 7 months ago

I think this dependency was added just recently but I'm not yet familiar enough with the build process to fix this myself:

PS C:\Git\EasyRPG-Player-2> cmake --preset windows-x64-vs2022-debug -DPLAYER_BUILD_LIBLCF=ON
Preset CMake variables:

  ##toolchainFile="C:/Git/EasyRPG-Player-2/vcpkg/scripts/buildsystems/vcpkg.cmake"
  #toolchainFile="C:\Git\EasyRPG-buildscripts/windows/vcpkg/scripts/buildsystems/vcpkg.cmake"
  CMAKE_BUILD_TYPE="Debug"
  CMAKE_EXPORT_COMPILE_COMMANDS="ON"
  CMAKE_TOOLCHAIN_FILE:FILEPATH="C:\Git\EasyRPG-buildscripts/windows/vcpkg/scripts/buildsystems/vcpkg.cmake"
  VCPKG_TARGET_TRIPLET="x64-windows-static"

-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Build type is set to Debug.
-- Found git info: 306 commits since tag "0.8", object hash is b313163f
-- Found SDL2: C:/Git/EasyRPG-buildscripts/windows/vcpkg/installed/x64-windows-static/share/sdl2 (SDL2::SDL2)
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.43.0.windows.1")
Cloning into 'C:/Git/EasyRPG-Player-2/lib/liblcf'...
CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find inih (missing: INIH_LIBRARY INIH_INCLUDE_DIR)
Call Stack (most recent call first):
  C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  lib/liblcf/builds/cmake/Modules/Findinih.cmake:45 (find_package_handle_standard_args)
  C:/Git/EasyRPG-buildscripts/windows/vcpkg/scripts/buildsystems/vcpkg.cmake:852 (_find_package)
  lib/liblcf/CMakeLists.txt:345 (find_package)

-- Configuring incomplete, errors occurred!
jetrotal commented 7 months ago

Hi, I had the same problem. Seems to have been corrected on recent updates (at least on the player), check: https://github.com/EasyRPG/Player/pull/3207

this commit to be more specific: https://github.com/EasyRPG/Player/pull/3207/commits/13d7e27fc118f987eda7af4128a5aff9a902292f

florianessl commented 7 months ago

Hm, weird... Everything is up to date (the GIT for this setup was checked out not more than 15 minutes ago...) I'll double-check everything again..

Ghabry commented 7 months ago

Btw. If you want to save 2 hours of time use the precompiled libraries from Jenkins (download prebuilt script in windows folder)

Guess something is just outdated. Run that entire cmake command suffixed with --fresh.

Ghabry commented 7 months ago

closing this as works on Jenkins so cannot be broken ^^'