openscenegraph / OpenSceneGraph

OpenSceneGraph git repository
http://www.openscenegraph.org
Other
3.25k stars 1.42k forks source link

Fontconfig error: Cannot load default config file: No such file: (null) #1282

Closed shaozhihua closed 8 months ago

shaozhihua commented 11 months ago

my computer X64 intel Qt5 MSVC2019 compiler and my code is: 2584 I tried many methods ,but no works, so I come here,and ask the author and distributers. I really appreciate you guys!thanks!

shaozhihua commented 11 months ago

I used vcpkg command to install the x64 osg lib;

robertosfield commented 11 months ago

I have never used FontConfig personally and the error message looks like it's being emitted from FontConfig rather than the OSG/vsgEarth so the issue may lie with FontConfig setup, in which case you'll need to read up about FontConfig.

shaozhihua commented 8 months ago

@robertosfield oh,I found the solution about this error: create a new ENVIRNMENT variable:FONTCONFIG_PATH and the value of this ENV Variable is the path of "fonts.conf".