rougier / freetype-gl

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

Cannot create a project. Cmake issue #184

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hello I am working on windows I want to build ftgl, but I am getting wried error. I been looking for solution, found some case in Issues, but those settings guy showed does not work for me. Still same error.

I am doing cmake like this:

open cmd, cd C:/.../BuildFTGL in BuildFTGL I move cmake.exe into the console and then move C:/.../freetype-gl-master there. I am getting following error: obraz

I did watch CMakeError.log and CMakeOutput.log, but those files could not help me. CMakeError.log CMakeOutput.log

Also I tried gui. Same resault:

First: obraz

Then: obraz

Next I unmarked demos as https://github.com/rougier/freetype-gl/issues/82 said and generate once again:

obraz

How to generate a project properly?

adrianbroher commented 6 years ago

As you can see CMake searches for an installation of Doxygen, a tool to generate HTML (and other output formats) documentation from C (and other languages) source code. So either install Doxygen to fix the project generation or disable the document generation by calling cmake with the parameter -Dfreetype-gl_BUILD_APIDOC=OFF like

cmake -Dfreetype-gl_BUILD_APIDOC=OFF <path to freetype-gl source>

or do the same by unchecking the variable of the same name in the GUI.

ghost commented 6 years ago

Thanks! That works! Now cmake cannot find glfw3. How to disable it?

adrianbroher commented 6 years ago

GLFW is an optional requirement that is exclusively used by the demos and tests. If you don't need those running then set freetype-gl_BUILD_DEMOS and freetype-gl_BUILD_TESTS accordingly.

ghost commented 6 years ago

Thank you so much <3