csdr icon indicating copy to clipboard operation
csdr copied to clipboard

compile csdr on openwrt platform with error

Open d9394 opened this issue 5 years ago • 0 comments

error message: `NOTE: you may have to manually edit Makefile to optimize for your CPU (especially if you compile on ARM, please edit PARAMS_NEON). Auto-detected optimization parameters: -msse -msse2 -msse3 -msse4.1 -msse4.2 -msse4 -mfpmath=sse

rm -f dumpvect*.vect gcc -I /home/openwrt/openwrt/build_dir/target-mipsel_24kc_musl/fftw3-single/fftw-3.3.7/api -L /home/openwrt/openwrt/build_dir/target-mipsel_24kc_musl/fftw3-single/fftw-3.3.7/.libs -std=gnu99 -O3 -ffast-math -fdump-tree-vect-details -dumpbase dumpvect -msse -msse2 -msse3 -msse4.1 -msse4.2 -msse4 -mfpmath=sse fft_fftw.c libcsdr_wrapper.c -g -lm -lrt -lfftw3f -DUSE_FFTW -DLIBCSDR_GPL -DUSE_IMA_ADPCM -Wno-unused-result -fpic -shared -Wl,-soname,libcsdr.so.0.15 -o libcsdr.so.0.15 /usr/bin/ld: skipping incompatible /home/openwrt/openwrt/build_dir/target-mipsel_24kc_musl/fftw3-single/fftw-3.3.7/.libs/libfftw3f.so when searching for -lfftw3f /usr/bin/ld: skipping incompatible /home/openwrt/openwrt/build_dir/target-mipsel_24kc_musl/fftw3-single/fftw-3.3.7/.libs/libfftw3f.a when searching for -lfftw3f /usr/bin/ld: cannot find -lfftw3f collect2: error: ld returned 1 exit status Makefile:54: recipe for target 'libcsdr.so' failed make[4]: *** [libcsdr.so] Error 1 make[4]: Leaving directory '/home/openwrt/openwrt/build_dir/target-mipsel_24kc_musl/csdr-0.1' Makefile:81: recipe for target '/home/openwrt/openwrt/build_dir/target-mipsel_24kc_musl/csdr-0.1/.built' failed make[3]: *** [/home/openwrt/openwrt/build_dir/target-mipsel_24kc_musl/csdr-0.1/.built] Error 2 make[3]: Leaving directory '/home/openwrt/csdr.openwrt' time: package/csdr/compile#2.57#0.12#2.80 package/Makefile:111: recipe for target 'package/csdr/compile' failed make[2]: *** [package/csdr/compile] Error 2 make[2]: Leaving directory '/home/openwrt/openwrt' package/Makefile:107: recipe for target '/home/openwrt/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile' failed make[1]: *** [/home/openwrt/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/openwrt/openwrt' /home/openwrt/openwrt/include/toplevel.mk:216: recipe for target 'world' failed make: *** [world] Error 2 `

when I compile csdr on openwrt playform , and the hardware cpu is MediaTek Ralink MIPS (MT7621), the fftw3 module is also compilie from openwrt original package source.

and I checked the libfftw3f.so is elf32-little : `objdump -p /home/openwrt/openwrt/build_dir/target-mipsel_24kc_musl/fftw3-single/fftw-3.3.7/.libs/libfftw3f.so

/home/openwrt/openwrt/build_dir/target-mipsel_24kc_musl/fftw3-single/fftw-3.3.7/.libs/libfftw3f.so: file format elf32-little`

d9394 avatar Sep 06 '19 14:09 d9394