martinruenz / maskfusion

MaskFusion: Real-Time Recognition, Tracking and Reconstruction of Multiple Moving Objects
http://visual.cs.ucl.ac.uk/pubs/maskfusion/index.html
Other
569 stars 146 forks source link

fail to build freetype-gl-cpp #32

Open heng94 opened 4 years ago

heng94 commented 4 years ago

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 commented 4 years ago

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............