horde3d / Horde3D

Horde3D is a small 3D rendering and animation engine. It is written in an effort to create an engine being as lightweight and conceptually clean as possible.
http://horde3d.org/
1.55k stars 308 forks source link

Failed to build on MSYS2 MINGW64 #218

Closed ghost closed 1 year ago

ghost commented 1 year ago
-- Building for: Ninja
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/msys64/mingw64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/msys64/mingw64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for strncpy_s
-- Looking for strncpy_s - found
-- Found GLFW: TRUE
-- Found OpenGL: opengl32
-- Configuring done (2.1s)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GLFW_INCLUDE_DIR
   used as include directory in directory C:/msys64/home/hgntn/Horde3D
   used as include directory in directory C:/msys64/home/hgntn/Horde3D
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/ExternalTexture
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/ExternalTexture
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Overlays
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Overlays
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Overlays/Bindings
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Overlays/Bindings
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Overlays/Bindings/C++
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Overlays/Bindings/C++
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Overlays/Source
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Overlays/Source
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Overlays/Source
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Terrain
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Terrain
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Terrain/Bindings
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Terrain/Bindings
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Terrain/Bindings/C++
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Terrain/Bindings/C++
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Terrain/Source
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Terrain/Source
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Terrain/Source
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Terrain/Sample
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Terrain/Sample
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Extensions/Terrain/Sample
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Source
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Source
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Source/Horde3DEngine
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Source/Horde3DEngine
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Source/Horde3DEngine
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Source/Horde3DUtils
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Source/Horde3DUtils
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Source/Horde3DUtils
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Source/ColladaConverter
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Source/ColladaConverter
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Source/ColladaConverter
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples/Framework
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples/Framework
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples/Framework
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples/Framework
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples/Framework
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples/Framework
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples/Chicago
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples/Chicago
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples/Chicago
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples/Knight
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples/Knight
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples/Knight
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples/ParticleVortex
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples/ParticleVortex
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples/ParticleVortex
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples/Tessellator
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples/Tessellator
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Samples/Tessellator
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Bindings
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Bindings
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Bindings/C++
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Bindings/C++
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Binaries
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Binaries
   used as include directory in directory C:/msys64/home/hgntn/Horde3D/Horde3D/Binaries

CMake Error in Extensions/Overlays/Source/CMakeLists.txt:
  Found relative path while evaluating include directories of
  "Horde3DOverlays":

    "GLFW_INCLUDE_DIR-NOTFOUND"

CMake Error in Extensions/Terrain/Source/CMakeLists.txt:
  Found relative path while evaluating include directories of
  "Horde3DTerrain":

    "GLFW_INCLUDE_DIR-NOTFOUND"

CMake Error in Extensions/Terrain/Sample/CMakeLists.txt:
  Found relative path while evaluating include directories of "Terrain":

    "GLFW_INCLUDE_DIR-NOTFOUND"

CMake Error in Horde3D/Source/Horde3DEngine/CMakeLists.txt:
  Found relative path while evaluating include directories of "Horde3D":

    "GLFW_INCLUDE_DIR-NOTFOUND"

CMake Error in Horde3D/Source/Horde3DUtils/CMakeLists.txt:
  Found relative path while evaluating include directories of "Horde3DUtils":

    "GLFW_INCLUDE_DIR-NOTFOUND"

CMake Error in Horde3D/Source/ColladaConverter/CMakeLists.txt:
  Found relative path while evaluating include directories of "ColladaConv":

    "GLFW_INCLUDE_DIR-NOTFOUND"

CMake Error in Horde3D/Samples/Framework/CMakeLists.txt:
  Found relative path while evaluating include directories of
  "SampleFramework":

    "GLFW_INCLUDE_DIR-NOTFOUND"

CMake Error in Horde3D/Samples/Chicago/CMakeLists.txt:
  Found relative path while evaluating include directories of "Chicago":

    "GLFW_INCLUDE_DIR-NOTFOUND"

CMake Error in Horde3D/Samples/Knight/CMakeLists.txt:
  Found relative path while evaluating include directories of "Knight":

    "GLFW_INCLUDE_DIR-NOTFOUND"

CMake Error in Horde3D/Samples/ParticleVortex/CMakeLists.txt:
  Found relative path while evaluating include directories of
  "ParticleVortex":

    "GLFW_INCLUDE_DIR-NOTFOUND"

CMake Error in Horde3D/Samples/Tessellator/CMakeLists.txt:
  Found relative path while evaluating include directories of "Tessellator":

    "GLFW_INCLUDE_DIR-NOTFOUND"

-- Generating done (0.0s)
CMake Generate step failed.  Build files cannot be regenerated correctly.

The problem is, I have both GLFW and SDL2 packages installed. Why can't it find GLFW? I could confirm mingw-w64-x86_64-glfw is installed.

algts commented 1 year ago

Hello. If you are on Windows, usually you have to set glfw include dir manually (because windows does not have a predefined path for includes). Currently cmake searches for glfw in the following paths:

    $ENV{GLFWDIR}
    PATH_SUFFIXES include/GL include
    PATHS
    ~/Library/Frameworks
    /Library/Frameworks
    /usr/local/include/GLFW
    /usr/include/GLFW
    /sw # Fink
    /opt/local # DarwinPorts
    /opt/csw # Blastwave
    /opt