Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to build freetype-gl-cpp #32

Open
heng94 opened this issue Jul 9, 2020 · 1 comment
Open

fail to build freetype-gl-cpp #32

heng94 opened this issue Jul 9, 2020 · 1 comment

Comments

@heng94
Copy link

heng94 commented Jul 9, 2020

Hi, thanks for sharing your work. I have a problem when I built the whole project, actually in building freetype-gl-cpp.

When I run "cmake -DBUILD_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX="pwd/../install" -DCMAKE_BUILD_TYPE=Release .."

It output the followings:
CMake Warning at CMakeLists.txt:18 (find_package):
By not providing "FindFontConfig.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"FontConfig", but CMake did not find one.

Could not find a package configuration file provided by "FontConfig" with
any of the following names:

FontConfigConfig.cmake
fontconfig-config.cmake

Add the installation prefix of "FontConfig" to CMAKE_PREFIX_PATH or set
"FontConfig_DIR" to a directory containing one of the above files. If
"FontConfig" provides a separate development package or SDK, be sure it has been installed.

CMake Error at CMakeLists.txt:37 (add_subdirectory):
add_subdirectory given source "external/freetype-gl" which is not an
existing directory.

CMake Error at CMakeLists.txt:24 (file):
file failed to open for reading (No such file or directory):

/home/zh/Documents/maskfusion/deps/freetype-gl-cpp/external/freetype-gl/shaders/text.vert

Call Stack (most recent call first):
CMakeLists.txt:40 (make_includable)

CMake Error at CMakeLists.txt:24 (file):
file failed to open for reading (No such file or directory):

/home/zh/Documents/maskfusion/deps/freetype-gl-cpp/external/freetype-gl/shaders/text.frag

Call Stack (most recent call first):
CMakeLists.txt:41 (make_includable)

I am using Ubuntu16.04 and the version of cmake is 3.16
I really hope you can help me. Thanks a lot!

@lixz123007
Copy link

you can go to freetype-gl-cpp's github and click "external" file ,and click "freetype-gl @ 507cc68".Then Download it and replace freetype-gl file in external file.
emmmmm.
OR:
Download this files:https://github.com/rougier/freetype-gl/tree/507cc68511465981d32257268fee184b79cc69f7.
Replace freetype-gl-cpp -> external ->freetype-gl ->(files you download) cmake/Modules ,data,demos............

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants