GLib compile error (ffi.h), but libffi is installed

后端 未结 5 1918
囚心锁ツ
囚心锁ツ 2021-02-02 04:36

After a succesful configure, make exits with snipped

gclosure.c:29:17: fatal error: ffi.h: No such file or directory
compilation terminated.
         


        
5条回答
  •  长情又很酷
    2021-02-02 05:22

    An old thread, but anyway...

    After putting the required files in a location where they could be found, I got it working:

    cp /usr/include/x86_64-linux-gnu/ffi* /usr/local/include/
    cp /usr/lib/libffi.so /usr/local/lib/
    

提交回复
热议问题