您尚未登录。

楼主 #1 2021-04-21 14:18:12

无根浮萍
会员
注册时间: 2021-01-14
已发帖子: 62
积分: 31

tina 勾选 CONFIG_PACKAGE_fswebcam 但是目标文件系统还是没有生成 /usr/bin/fswebcam

CONFIG_PACKAGE_fswebcam=y

这奇葩 shit SDK真是难搞

离线

楼主 #2 2021-04-21 14:30:58

无根浮萍
会员
注册时间: 2021-01-14
已发帖子: 62
积分: 31

Re: tina 勾选 CONFIG_PACKAGE_fswebcam 但是目标文件系统还是没有生成 /usr/bin/fswebcam

跟踪了一下, tslib 可以被安装到文件系统
package/libs/tslib/Makefile


而且可以用这个命令: make package/tslib/install 重新安装:

$ make package/tslib/install
WARNING: your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!
make[1]: Entering directory '/opt/f1c100s/tina/tina'
make[2]: Entering directory '/opt/f1c100s/tina/tina/package/libs/tslib'
if [ -f /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/pkginfo/tslib.default.install.clean ]; then rm -f /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/pkginfo/tslib.default.install /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/pkginfo/tslib.default.install.clean; fi; echo "tslib" >> /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/pkginfo/tslib.default.install
make[2]: Leaving directory '/opt/f1c100s/tina/tina/package/libs/tslib'
make[1]: Leaving directory '/opt/f1c100s/tina/tina'

#### make completed successfully (4 seconds) ####

然而, 重新 make package/fswebcam/install 缺出错:

make package/fswebcam/install
WARNING: your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!
make[1]: Entering directory '/opt/f1c100s/tina/tina'
make[2]: Entering directory '/opt/f1c100s/tina/tina/package/multimedia/fswebcam'
mkdir -p /opt/f1c100s/tina/tina/out/violin-F1C200s/packages /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/fswebcam-20140113/ipkg-sunxi/fswebcam/CONTROL /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/pkginfo
install -d -m0755 /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/fswebcam-20140113/ipkg-sunxi/fswebcam/usr/bin
cp -fpR /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/fswebcam-20140113/ipkg-install/usr/bin/fswebcam /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/fswebcam-20140113/ipkg-sunxi/fswebcam/usr/bin/
find /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/fswebcam-20140113/ipkg-sunxi/fswebcam -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
Package fswebcam is missing dependencies for the following libraries:
libgd.so.3
Makefile:50: recipe for target '/opt/f1c100s/tina/tina/out/violin-F1C200s/packages/base/fswebcam_20140113-1_sunxi.ipk' failed
make[2]: *** [/opt/f1c100s/tina/tina/out/violin-F1C200s/packages/base/fswebcam_20140113-1_sunxi.ipk] Error 1
make[2]: Leaving directory '/opt/f1c100s/tina/tina/package/multimedia/fswebcam'
package/Makefile:192: recipe for target 'package/multimedia/fswebcam/install' failed
make[1]: *** [package/multimedia/fswebcam/install] Error 2
make[1]: Leaving directory '/opt/f1c100s/tina/tina'
/opt/f1c100s/tina/tina/build/toplevel.mk:301: recipe for target 'package/fswebcam/install' failed
make: *** [package/fswebcam/install] Error 2

#### make failed to build some targets (4 seconds) ####

离线

楼主 #3 2021-04-21 14:39:25

无根浮萍
会员
注册时间: 2021-01-14
已发帖子: 62
积分: 31

Re: tina 勾选 CONFIG_PACKAGE_fswebcam 但是目标文件系统还是没有生成 /usr/bin/fswebcam

结贴, 搞定

慢动作,分两步:

0. 使能libgd: CONFIG_PACKAGE_libgd=y
1. make package/libgd/install
2. make package/fswebcam/install

$ make package/libgd/install
WARNING: your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!
make[1]: Entering directory '/opt/f1c100s/tina/tina'
make[2]: Entering directory '/opt/f1c100s/tina/tina/package/libs/libgd'
mkdir -p /opt/f1c100s/tina/tina/out/violin-F1C200s/packages /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/libgd-gd-2.1.1/ipkg-sunxi/libgd/CONTROL /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/pkginfo
install -d -m0755 /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/libgd-gd-2.1.1/ipkg-sunxi/libgd/usr/lib
cp -fpR /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/libgd-gd-2.1.1/ipkg-install/usr/lib/libgd.so.* /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/libgd-gd-2.1.1/ipkg-sunxi/libgd/usr/lib/
find /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/libgd-gd-2.1.1/ipkg-sunxi/libgd -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
export CROSS="arm-openwrt-linux-muslgnueabi-"  NO_RENAME=1 ; NM="arm-openwrt-linux-muslgnueabi-nm" STRIP="arm-openwrt-linux-muslgnueabi-strip --strip-all" STRIP_KMOD="/opt/f1c100s/tina/tina/scripts/strip-kmod.sh" PATCHELF="/opt/f1c100s/tina/tina/out/host/bin/patchelf" /opt/f1c100s/tina/tina/scripts/rstrip.sh /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/libgd-gd-2.1.1/ipkg-sunxi/libgd
rstrip.sh: /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/libgd-gd-2.1.1/ipkg-sunxi/libgd/usr/lib/libgd.so.3.0.0: shared object
(cd /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/libgd-gd-2.1.1/ipkg-sunxi/libgd/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm;  )
install -d -m0755 /opt/f1c100s/tina/tina/out/violin-F1C200s/packages/base
/opt/f1c100s/tina/tina/scripts/ipkg-build -c -o 0 -g 0 /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/libgd-gd-2.1.1/ipkg-sunxi/libgd /opt/f1c100s/tina/tina/out/violin-F1C200s/packages/base
Packaged contents of /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/libgd-gd-2.1.1/ipkg-sunxi/libgd into /opt/f1c100s/tina/tina/out/violin-F1C200s/packages/base/libgd_2.1.1-1_sunxi.ipk
rm -rf /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/rootfs/tmp-libgd
mkdir -p /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/rootfs/stamp /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/rootfs/tmp-libgd
install -d -m0755 /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/rootfs/tmp-libgd/usr/lib
cp -fpR /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/libgd-gd-2.1.1/ipkg-install/usr/lib/libgd.so.* /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/rootfs/tmp-libgd/usr/lib/
SHELL= flock /opt/f1c100s/tina/tina/tmp/.root-copy.flock -c 'cp -fpR /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/rootfs/tmp-libgd/. /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/rootfs/'
rm -rf /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/rootfs/tmp-libgd
touch /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/rootfs/stamp/.libgd_installed
if [ -f /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/pkginfo/libgd.default.install.clean ]; then rm -f /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/pkginfo/libgd.default.install /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/pkginfo/libgd.default.install.clean; fi; echo "libgd" >> /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/pkginfo/libgd.default.install
make[2]: Leaving directory '/opt/f1c100s/tina/tina/package/libs/libgd'
make[1]: Leaving directory '/opt/f1c100s/tina/tina'

#### make completed successfully (4 seconds) ####

$ make package/fswebcam/install
WARNING: your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!
make[1]: Entering directory '/opt/f1c100s/tina/tina'
make[2]: Entering directory '/opt/f1c100s/tina/tina/package/multimedia/fswebcam'
mkdir -p /opt/f1c100s/tina/tina/out/violin-F1C200s/packages /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/fswebcam-20140113/ipkg-sunxi/fswebcam/CONTROL /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/pkginfo
install -d -m0755 /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/fswebcam-20140113/ipkg-sunxi/fswebcam/usr/bin
cp -fpR /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/fswebcam-20140113/ipkg-install/usr/bin/fswebcam /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/fswebcam-20140113/ipkg-sunxi/fswebcam/usr/bin/
find /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/fswebcam-20140113/ipkg-sunxi/fswebcam -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
export CROSS="arm-openwrt-linux-muslgnueabi-"  NO_RENAME=1 ; NM="arm-openwrt-linux-muslgnueabi-nm" STRIP="arm-openwrt-linux-muslgnueabi-strip --strip-all" STRIP_KMOD="/opt/f1c100s/tina/tina/scripts/strip-kmod.sh" PATCHELF="/opt/f1c100s/tina/tina/out/host/bin/patchelf" /opt/f1c100s/tina/tina/scripts/rstrip.sh /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/fswebcam-20140113/ipkg-sunxi/fswebcam
rstrip.sh: /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/fswebcam-20140113/ipkg-sunxi/fswebcam/usr/bin/fswebcam: executable
(cd /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/fswebcam-20140113/ipkg-sunxi/fswebcam/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm;  )
install -d -m0755 /opt/f1c100s/tina/tina/out/violin-F1C200s/packages/base
/opt/f1c100s/tina/tina/scripts/ipkg-build -c -o 0 -g 0 /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/fswebcam-20140113/ipkg-sunxi/fswebcam /opt/f1c100s/tina/tina/out/violin-F1C200s/packages/base
Packaged contents of /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/fswebcam-20140113/ipkg-sunxi/fswebcam into /opt/f1c100s/tina/tina/out/violin-F1C200s/packages/base/fswebcam_20140113-1_sunxi.ipk
rm -rf /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/rootfs/tmp-fswebcam
mkdir -p /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/rootfs/stamp /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/rootfs/tmp-fswebcam
install -d -m0755 /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/rootfs/tmp-fswebcam/usr/bin
cp -fpR /opt/f1c100s/tina/tina/out/violin-F1C200s/compile_dir/target/fswebcam-20140113/ipkg-install/usr/bin/fswebcam /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/rootfs/tmp-fswebcam/usr/bin/
SHELL= flock /opt/f1c100s/tina/tina/tmp/.root-copy.flock -c 'cp -fpR /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/rootfs/tmp-fswebcam/. /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/rootfs/'
rm -rf /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/rootfs/tmp-fswebcam
touch /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/rootfs/stamp/.fswebcam_installed
if [ -f /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/pkginfo/fswebcam.default.install.clean ]; then rm -f /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/pkginfo/fswebcam.default.install /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/pkginfo/fswebcam.default.install.clean; fi; echo "fswebcam" >> /opt/f1c100s/tina/tina/out/violin-F1C200s/staging_dir/target/pkginfo/fswebcam.default.install
make[2]: Leaving directory '/opt/f1c100s/tina/tina/package/multimedia/fswebcam'
make[1]: Leaving directory '/opt/f1c100s/tina/tina'

#### make completed successfully (3 seconds) ####

make;pack 之后:

$ find . |grep /fswebcam$
./out/violin-F1C200s/staging_dir/target/rootfs/usr/bin/fswebcam
./out/violin-F1C200s/compile_dir/target/rootfs/usr/bin/fswebcam
./out/violin-F1C200s/compile_dir/target/rootfs-tmp/usr/bin/fswebcam
./out/violin-F1C200s/compile_dir/target/fswebcam-20140113/ipkg-install/usr/bin/fswebcam
./out/violin-F1C200s/compile_dir/target/fswebcam-20140113/ipkg-sunxi/fswebcam
./out/violin-F1C200s/compile_dir/target/fswebcam-20140113/ipkg-sunxi/fswebcam/usr/bin/fswebcam
./out/violin-F1C200s/compile_dir/target/fswebcam-20140113/fswebcam
./package/multimedia/fswebcam

这样就能顺利产生了

最近编辑记录 无根浮萍 (2021-04-21 14:42:09)

离线

#4 2021-04-21 15:16:39

potato
会员
注册时间: 2021-03-18
已发帖子: 14
积分: 6

Re: tina 勾选 CONFIG_PACKAGE_fswebcam 但是目标文件系统还是没有生成 /usr/bin/fswebcam

请问大佬知道tina怎么用mtd-untils工具升级吗?我在tina里cat /proc/mtd 提示找不到mtd设备。

离线

#5 2021-04-21 21:09:15

拉轰的脚踏车
会员
注册时间: 2020-03-20
已发帖子: 288
积分: 222

Re: tina 勾选 CONFIG_PACKAGE_fswebcam 但是目标文件系统还是没有生成 /usr/bin/fswebcam

一直没明白为什么全志的tina要基于openwrt? 用buildroot有什么不妥吗?

离线

楼主 #6 2021-04-21 21:35:10

无根浮萍
会员
注册时间: 2021-01-14
已发帖子: 62
积分: 31

Re: tina 勾选 CONFIG_PACKAGE_fswebcam 但是目标文件系统还是没有生成 /usr/bin/fswebcam

potato 说:

请问大佬知道tina怎么用mtd-untils工具升级吗?我在tina里cat /proc/mtd 提示找不到mtd设备。

app start...


BusyBox v1.27.2 () built-in shell (ash)

 _____  _              __     _
|_   _||_| ___  _ _   |  |   |_| ___  _ _  _ _
  | |   _ |   ||   |  |  |__ | ||   || | ||_'_|
  | |  | || | || _ |  |_____||_||_|_||___||_,_|
  |_|  |_||_|_||_|_|  Tina is Based on OpenWrt!
 ----------------------------------------------
 Tina Linux (Neptune, 5C1C9C53)
 ----------------------------------------------
root@TinaLinux:/#
root@TinaLinux:/#
root@TinaLinux:/#
root@TinaLinux:/#
root@TinaLinux:/# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00001000 "uboot"
mtd1: 00080000 00001000 "bootlogo"
mtd2: 00020000 00001000 "env"
mtd3: 00300000 00001000 "boot"
mtd4: 00a00000 00001000 "rootfs"
mtd5: 00180000 00001000 "rootfs_data"
mtd6: 00010000 00001000 "misc"
mtd7: 00010000 00001000 "private"
mtd8: 00040000 00001000 "UDISK"
root@TinaLinux:/#

木得问题噢

离线

#7 2021-04-22 11:17:34

potato
会员
注册时间: 2021-03-18
已发帖子: 14
积分: 6

Re: tina 勾选 CONFIG_PACKAGE_fswebcam 但是目标文件系统还是没有生成 /usr/bin/fswebcam

额 我的版本和你一样,我想用mtd-untils工具升级,你会弄吗?看能不能帮我弄一下,有偿的,你邮件给我下,我把具体需求给到你。

无根浮萍 说:
potato 说:

请问大佬知道tina怎么用mtd-untils工具升级吗?我在tina里cat /proc/mtd 提示找不到mtd设备。

app start...


BusyBox v1.27.2 () built-in shell (ash)

 _____  _              __     _
|_   _||_| ___  _ _   |  |   |_| ___  _ _  _ _
  | |   _ |   ||   |  |  |__ | ||   || | ||_'_|
  | |  | || | || _ |  |_____||_||_|_||___||_,_|
  |_|  |_||_|_||_|_|  Tina is Based on OpenWrt!
 ----------------------------------------------
 Tina Linux (Neptune, 5C1C9C53)
 ----------------------------------------------
root@TinaLinux:/#
root@TinaLinux:/#
root@TinaLinux:/#
root@TinaLinux:/#
root@TinaLinux:/# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00001000 "uboot"
mtd1: 00080000 00001000 "bootlogo"
mtd2: 00020000 00001000 "env"
mtd3: 00300000 00001000 "boot"
mtd4: 00a00000 00001000 "rootfs"
mtd5: 00180000 00001000 "rootfs_data"
mtd6: 00010000 00001000 "misc"
mtd7: 00010000 00001000 "private"
mtd8: 00040000 00001000 "UDISK"
root@TinaLinux:/#

木得问题噢

离线

#8 2023-07-06 17:50:04

qdk0901
会员
注册时间: 2019-04-08
已发帖子: 14
积分: 7.5

Re: tina 勾选 CONFIG_PACKAGE_fswebcam 但是目标文件系统还是没有生成 /usr/bin/fswebcam

拉轰的脚踏车 说:

一直没明白为什么全志的tina要基于openwrt? 用buildroot有什么不妥吗?

可能是因为脑残吧

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn