Hello,
I am using openwrt SDK to cross compile my c++ package, I was able to generate ipk file, then I installed in openwrt VM, and when I run it, it is showing "not found".
Any ideas about this issue please??
Who's showing not found?
1 Like
on router
cat /usr/lib/opkg/info/N3*list
in sdk
cat YOURPACKAGE/Makefile
(hint: there was no problem installing the package)
ls -lah /bin/N3IWFC
root@OpenWrt:~# ls -lah /bin/N3IWFC
-rwxr-xr-x 1 root root 1.7M Feb 15 15:22 /bin/N3IWFC
ldd /bin/N3IWFC
Please use the "Preformatted text </>
" button for logs, scripts, configs and general console output.
Please edit your post accordingly. Thank you!
root@OpenWrt:~# ldd /bin/N3IWFC
/lib64/ld-linux-x86-64.so.2 (0x7fa39c804000)
libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7fa39c804000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7fa39c514000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7fa39c500000)
libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7fa39c804000)
Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /bin/N3IWFC)
Error relocating /bin/N3IWFC: _ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev: symbol not found
hello,
I was able to solve the first error Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /bin/N3IWFC)
but could not figure out the second problem Error relocating /bin/N3IWFC: _ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev: symbol not found
Any clues for this one please?
great! what was the solution?
I added library ld-linux-x86-64.so.2
to openwrt under /usr/lib/
where did your take the lib?