thtk icon indicating copy to clipboard operation
thtk copied to clipboard

Fatal Error: anm_types.h: No such file or directory

Open leikaisho opened this issue 1 year ago • 2 comments

Compilation failure in Debian 12. Full log:

[  1%] Building C object util/CMakeFiles/util.dir/file.c.o
[  3%] Building C object util/CMakeFiles/util.dir/list.c.o
[  5%] Building C object util/CMakeFiles/util.dir/program.c.o
[  6%] Building C object util/CMakeFiles/util.dir/util.c.o
[  8%] Building C object util/CMakeFiles/util.dir/value.c.o
[ 10%] Building C object util/CMakeFiles/util.dir/mygetopt.c.o
[ 12%] Building C object util/CMakeFiles/util.dir/seqmap.c.o
[ 13%] Building C object util/CMakeFiles/util.dir/path.c.o
[ 15%] Building C object util/CMakeFiles/util.dir/cp932.c.o
[ 17%] Linking C static library libutil.a
[ 17%] Built target util
[ 18%] [FLEX][AnmScan] Building scanner with flex 2.6.4
[ 20%] [BISON][AnmParse] Building parser with bison 3.8.2
[ 22%] Building C object thanm/CMakeFiles/thanm.dir/anmparse.c.o
In file included from /home/sukitumin/thtk/thanm/anmparse.y:41:
/home/sukitumin/thtk/thanm/thanm.h:33:10: fatal error: anm_types.h: No such file or directory
   33 | #include <anm_types.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [thanm/CMakeFiles/thanm.dir/build.make:87: thanm/CMakeFiles/thanm.dir/anmparse.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:286: thanm/CMakeFiles/thanm.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

leikaisho avatar Jan 04 '25 22:01 leikaisho

The <anm_types.h> file needed by thanm lives in the thtypes submodule (another repo). I suspect you git cloned without a --recursive flag, preventing git from downloading nested repositories. This would cause the thtk/extlib/thtypes folder to be empty, leading to the error.

I managed to reproduce your error on Nobara by removing the thtypes directory. If all the submodules are present, the latest commit 1e38aee of thtk can usually be compiled with the GNU toolchain.

C0LDfinch avatar Jan 05 '25 03:01 C0LDfinch

You can run git submodule update --init --recursive to get the submodules.

DankRank avatar Jan 05 '25 13:01 DankRank