In my application package, evthread_use_pthreads() was called. so libevent_pthreads is included for linking. When I loaded the package, the following error showed up:
opkg install abc_1_mipsel_24kc.ipk
Installing abc (1) to root...
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for abc:
* libevent_pthreads
* opkg_install_cmd: Cannot install package abc.
I checked the device. libevent2-pthreads_2.0.22-1_mipsel_24kc.ipk is installed.
What is missing or wrong? Thanks in advance for your help.
Thanks for your quick response.
Added levent2-pthreads (or levent2_pthreads) in package/abc/src/Makefile, and made changes to package/abc/Makefile. But linker complained: ld: cannot find -levent2-pthreads.
Run "find -name .so | grep event" on the host, but no kind of libevent2-pthreads showed up on the host.
this is part of the results from "find ..":
./sdk/staging_dir/target-mipsel_24kc_musl/usr/lib/libevent_pthreads-2.0.so.5
./sdk/staging_dir/target-mipsel_24kc_musl/usr/lib/libevent_pthreads-2.0.so.5.1.10
./sdk/staging_dir/target-mipsel_24kc_musl/usr/lib/libevent_pthreads.so
It is -levent_pthreads that is being used originally.
As to your question " Have you tried depending on libevent2-pthreads ?". How the dependence should be made?