[make] Build ipvsadm, libpopt.so: file not recognized
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 Code:
$ file /usr/lib/libpopt.* Thank you |
so you want to build a tool for your arm device on an x86_64 machine. In this case the option -L/usr/lib is definitely not usable, because the libs located in /usr/lib belong to the OS and cannot be used on arm. You need to find the appropriate libpopt. Probably locate will tell you were is it (maybe somewhere here /opt/mv_pro_5.0/montavista/pro/devkit/arm)
|
... And if there's no libpopt.so in /opt/mv_pro_5.0/montavista/pro/devkit/arm :
Then you will have to cross compile "popt" ( and all other dependencies ) to e.g. /opt/mv_pro_5.0/montavista/pro/devkit/arm. |
You are right. In the makefile there was this block
Code:
ifeq (,$(FORCE_GETOPT)) Code:
MVPATH = /opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target |
All times are GMT -5. The time now is 12:41 AM. |