Hi
I can compile test program naming dbustest in x86 and mips. they both can be executed successfully.
now add this as test package in OpenWRT package/utils/dbustest/ folder, I can see it already cross-compiled and generated related ipk.
in install phase, it block on below error "Package xxx is missing dependencies for the following libraries:"
Actually I already add DEPENDS:=+libdbus-1 +libpthread +librt in Package/dbustest section.
and the libdbus-1.so.3 indeed already compiled under root-brcm63xx/usr/lib/libdbus-1.so.3 soft link to libdbus-1.so.3.13.0
Google search so many topic, but even add DEPENDS it can't work. But i only can copy this library to ipk bin folder then can pass compile and generate the ipk
Fixed:
#cp -fpR /home/gqin/openwrt/staging_dir/target-mips_mips32_uClibc-0.9.33.2/usr/lib/libdbus-1.so.3 /home/gqin/openwrt/build_dir/target-mips_mips32_uClibc-0.9.33.2/dbustest/ipkg-brcm63xx/dbustest/bin/
But I don't think it is good solution.
script/gen-dependencies.sh will use objcopy/readelf to check one process's dependent library such as dbustest will invoke libdbus-1.so.3. the problem is the rootfs indeed already compiled and generated this library in file system. why this test package can't pass compile.
any link path is needed ???
Look forward to your good comments
Log <<<<
....
echo "Here is Package/install"
Here is Package/install
install -d -m0755 /home/gqin/openwrt/build_dir/target-mips_mips32_uClibc-0.9.33.2/dbustest/ipkg-brcm63xx/dbustest/bin
install -m0755 /home/gqin/openwrt/build_dir/target-mips_mips32_uClibc-0.9.33.2/dbustest/dbustest /home/gqin/openwrt/build_dir/target-mips_mips32_uClibc-0.9.33.2/dbustest/ipkg-brcm63xx/dbustest/bin/
cp -fpR /home/gqin/my.dbus.test.conf /home/gqin/openwrt/build_dir/target-mips_mips32_uClibc-0.9.33.2/dbustest/ipkg-brcm63xx/dbustest/bin/
find /home/gqin/openwrt/build_dir/target-mips_mips32_uClibc-0.9.33.2/dbustest/ipkg-brcm63xx/dbustest -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
Package dbustest is missing dependencies for the following libraries:
libdbus-1.so.3
make[3]: *** [/home/gqin/openwrt/bin/brcm63xx/packages/base/dbustest_1_brcm63xx.ipk] Error 1
make[3]: Leaving directory `/home/gqin/openwrt/package/utils/dbustest'
make[2]: *** [package/utils/dbustest/compile] Error 2
make[2]: Leaving directory `/home/gqin/openwrt'
make[1]: *** [/home/gqin/openwrt/staging_dir/target-mips_mips32_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/gqin/openwrt'
make: *** [world] Error 2
>>>>>>
Thanks
Qin Guang