make report an error as below:
“fontconfig-2.12.1/src/fcmatch.c:324:63: error: ‘PRI_CHAR_WIDTH_STRONG’ undeclared here (not in a function); did you mean ‘PRI_WIDTH_STRONG’?”
"fontconfig-2.12.1/src/fcmatch.c:324:63: error: ‘PRI_CHAR_WIDTH_STRONG' undeclared here (not in a function); did you mean ‘PRI_WIDTH_STRONG’?"
Solution:
Enter the source code directory. My path is
1.
fontconfig-2.12.1/fontconfig/fontconfig.h
Found #define FC_CHAR_WIDTH “charwidth” /* Int / deleted
Add #define FC_CHARWIDTH “charwidth” / Int */
#define FC_CHAR_WIDTH FC_CHARWIDTH
2.
fontconfig-2.12.1/src/fcobjs.h
Find FC_OBJECT (CHAR_WIDTH, FcTypeInteger, NULL) and delete it.
Add FC_OBJECT (CHARWIDTH, FcTypeInteger, NULL)
3.
fontconfig-2.12.1/src/fcobjshash.gperf
Find “CHARWIDTH”, FC_CHAR_WIDTH_OBJECT and delete it.
Add “charwidth”,FC_CHARWIDTH_OBJECT
4.
fontconfig-2.12.1/src/fcobjshash.h
Find {(int)(long)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str45,FC_CHAR_WIDTH_OBJECT}, delete
add {(int)(long)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str45,FC_CHARWIDTH_OBJECT},
End, make && make install successful
is to modify and replace a few macro definitions, you can happily edit cairo!
Although the high version of fontconfig does not have this error, but the cross-compiler reported that the other failed to solve
Read More:
- [Vue warn]: Error in beforeDestroy hook: “Error: [ElementForm]unpected width
- [Solved] Vue2 Cross-domain Error: AxiosError net::ERR_FAILED, Network Error, ERR_NETWORK
- How to Block a frame with origin from accessing a cross origin frame
- About JS error uncaught syntax error: invalid shorthand property initializer
- JavaScript Common Errors List (Reasons & Solutions)
- [Solved] Vue 3 Script Setup ESLint Error: ‘defineProps‘ is not defined
- Vue Error: error in mounted hook: TypeError: invalid src type
- [Solved] npm Error: Class extends value undefined is not a constructor or null
- [Solved] Module build failed: Error: Vue packages version mismatch
- [webpack-cli] Error: Cannot find module ‘vue/compiler-sfc‘
- uniapp [Vue warn]: Error in onLoad hook: “TypeError: Attempting to change the setter of an unconfigu
- [Solved] Syntax Error: TypeError: Cannot read property ‘parseComponent‘ of undefined
- How to Fix Taro SwipeAction Not Working Issue
- [Solved] vuecli2+axios Error: NotSameOriginAfterDefaultedToSameOriginByCoep
- Use of $watch in Vue (solve rangeerror: maximum call stack size exceeded)
- [Solved] Syntax Error: TypeError: Cannot read property ‘parseComponent‘ of undefined
- [Solved] PDF.js Error: Cannot use the same canvas during multiple render()
- How to Use DOM to operate CSS
- Vue-cli2 sub environment packaging
- H5 page left and right stretch content area