Skip to content
This repository has been archived by the owner on Mar 17, 2018. It is now read-only.

ffi.h: no such file or directory #882

Closed
hroman73 opened this issue Feb 15, 2018 · 1 comment
Closed

ffi.h: no such file or directory #882

hroman73 opened this issue Feb 15, 2018 · 1 comment

Comments

@hroman73
Copy link

Trying to use sickbeard_mp4_automator which requires requests[security] but when I run pip install requests[security] i get the following error:

x86_64-openwrt-linux-gnu-gcc -fno-strict-aliasing -O2 -pipe -fomit-frame-pointer -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -DNDEBUG -fno-inline -DNDEBUG -O2 -pipe -fomit-frame-pointer -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/opt/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-x86_64-2.7/c/_cffi_backend.o
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^
compilation terminated.
error: command 'x86_64-openwrt-linux-gnu-gcc' failed with exit status 1

----------------------------------------

Command "/opt/bin/python2.7 -u -c "import setuptools, tokenize;file='/share/CACHEDEV1_DATA/.qpkg/Entware-ng/tmp/pip-build-HV2o4K/cffi/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /opt/tmp/pip-cVZ2FZ-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /share/CACHEDEV1_DATA/.qpkg/Entware-ng/tmp/pip-build-HV2o4K/cffi/

@zyxmon
Copy link
Member

zyxmon commented Feb 16, 2018

My guess you have not unpacked headers as wiki recommends.
We do not support native compilation here, we recommend cross-compilation.
I strongly recommend to install Entware-3x on your Qnap, not Enware-ng.

@zyxmon zyxmon closed this as completed Feb 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants