rougier / freetype-gl

OpenGL text using one vertex buffer, one texture and FreeType
Other
1.65k stars 266 forks source link

Unable to follow build instructions in Windows. #170

Open christianleger opened 7 years ago

christianleger commented 7 years ago

I was hoping to make use of the makefont utility.

I followed the build instructions for the Windows/MSYS2/MINGW64 etc. toolchain. I installed msys2. Ran the pacman commands to add required packages. Ran the cmake commands and I got this:


CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.0/Modules/CMakeMinGWFi ndMake.cmake:22 (message): sh.exe was found in your PATH, here:

D:/software/msys2-64/usr/bin/sh.exe

For MinGW make to work correctly sh.exe must NOT be in your path.

Run cmake from a shell that does not have sh.exe in your PATH.

If you want to use a UNIX shell, then use MSYS Makefiles.

Call Stack (most recent call first): CMakeLists.txt:8 (project)

CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_C_COMPILER_ENV_VAR CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_C_COMPILER CMake Error: Could not find cmake module file: D:/work/programming/freetype-gl/b uild/CMakeFiles/3.0.1/CMakeCCompiler.cmake CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_CXX_COMPILER_ENV_VAR CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_CXX_COMPILER CMake Error: Could not find cmake module file: D:/work/programming/freetype-gl/b uild/CMakeFiles/3.0.1/CMakeCXXCompiler.cmake CMake Error at CMakeLists.txt:8 (project): No CMAKE_C_COMPILER could be found.

Tell CMake where to find the compiler by setting the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:8 (project): No CMAKE_CXX_COMPILER could be found.

Tell CMake where to find the compiler by setting the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred!


I don't have time to really get intimate with the msys2/mingw/cmake toolchain. I'm already several steps removed from the task I'm actually trying to focus on, and here I just want to inform this project of the issue. One thing that might be different about my setup than expected is that I didn't install msys to the default install location.