iHow to add netifaces to imx8mm board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iHow to add netifaces to imx8mm board

929 Views
santhosh2
Contributor IV

Hi,

i tried adding the netifaces package using pip3 install netifaces but i am getting the below error

Linux Version 4.14.78-imx_4.14.78_1.0.0_ga+g94da7bd

I had earlier tested but now when i try to install its giving me the error

Collecting netifaces
Using cached https://files.pythonhosted.org/packages/0d/18/fd6e9c71a35b67a73160ec80a49da63d1eed2d2055054cc2995714...
Installing collected packages: netifaces
Running setup.py install for netifaces ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-lip5v39r/netifaces/setup.py';f=get:
running install
running build
running build_ext
checking for getifaddrs...not found.
checking for getnameinfo...not found.
checking for socket IOCTLs...not found.
checking for optional header files...none found.
checking whether struct sockaddr has a length field...no.
checking which sockaddr_xxx structs are defined...none!
checking for routing socket support...no.
checking for sysctl(CTL_NET...) support...no.
checking for netlink support...no.
building 'netifaces' extension
aarch64-poky-linux-gcc -DNDEBUG -fno-inline -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -O2 -pipe -g -felimio
unable to execute 'aarch64-poky-linux-gcc': No such file or directory
error: command 'aarch64-poky-linux-gcc' failed with exit status 1

----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-lip5v39r/netifaces/setup.py';f=getattr(tokenize, 'open', o/
You are using pip version 9.0.2, however version 20.2.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
root@imx8mmevk:~#

0 Kudos
Reply
1 Reply

921 Views
jimmychan
NXP TechSupport
NXP TechSupport

In the Chapter 4.5.12 in i.MX Linux User’s Guide​, it is talking about building the kernel and u-boot in standalone env.. I think you may try to follow the Chapter 4.5.12 to prepare the standalone environment and build your C code in the same way. 

0 Kudos
Reply