Hello,
I am trying to compile the firmware of my DLink wireless camera on my computer from the sources (got from the DLink website). The device is an ARMv5 system and my computer uses Archlinux x86_64. In the source archive, there was mv_pro_5.0 (from MontaVista) which ships an ARM compiler
added to the $PATH.
While building the software, (using the provided
makefile), it fails while building the app ipvsadm (in the subdirectory apps/public/ipvsadm-1.24/,
makefile). The error is the following :
Code:
$ arm_v5t_le-gcc -Wall -Wunused -Wstrict-prototypes -g -O2 -o ipvsadm ipvsadm.o config_stream.o dynamic_array.o libipvs/libipvs.a -L/usr/lib -lpopt
/usr/lib/libpopt.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
I have the problematic library exists and seems fine
Code:
$ file /usr/lib/libpopt.*
/usr/lib/libpopt.a: current ar archive
/usr/lib/libpopt.so: symbolic link to `libpopt.so.0.0.0'
/usr/lib/libpopt.so.0: symbolic link to `libpopt.so.0.0.0'
/usr/lib/libpopt.so.0.0.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x096d17e510cee6b9ec0e28f64b2ce67cc910cd27, stripped
$ whereis arm_v5t_le-gcc
arm_v5t_le-gcc: /opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc
Any idea how to fix it ?
Thank you