[Bf-committers] compile error (linux+cmake): datatoc.h: No such file or directory

Melchior FRANZ mfranz at aon.at
Fri Aug 3 13:15:11 CEST 2007


Since a few days Blender doesn't compile for me anymore on
Linux 2.6.22, gcc 4.1.2, libc 2.5, build system: cmake:

[ 66%] Building CXX object source/blender/ftfont/CMakeFiles/bf_ftfont.dir/intern/FTF_Api.o
./blender/source/blender/ftfont/intern/FTF_Api.cpp:49:22: error: datatoc.h: No such file or directory
./blender/source/blender/ftfont/intern/FTF_Api.cpp: In function 'int FTF_GetNewFont(const unsigned char*, int, int)':
./blender/source/blender/ftfont/intern/FTF_Api.cpp:74: error: 'datatoc_bfont_ttf' was not declared in this scope
./blender/source/blender/ftfont/intern/FTF_Api.cpp:74: error: 'datatoc_bfont_ttf_size' was not declared in this scope


Apparently, ./blender/source/blender/include/ isn't in the header
search path, so datatoc.h isn't found. I fixed it for now with a hack:


$ svn diff FTF_Api.cpp
Index: FTF_Api.cpp
===================================================================
--- FTF_Api.cpp (revision 11476)
+++ FTF_Api.cpp (working copy)
@@ -46,7 +46,7 @@
 #ifdef __cplusplus
 extern "C" {
 #endif
-       #include "datatoc.h"
+       #include "../../include/datatoc.h"
 #ifdef __cplusplus
 }
 #endif

m.


More information about the Bf-committers mailing list