TI中文支持网
TI专业的中文技术问题搜集分享网站

AM3358的 qt添加qsqlite模块编译失败

  我们使用的SDK配置文件是processor-sdk-06.03.00.106-config.txt。

   按照以下帖中所说的步骤。

   在tisdk的conf/local.conf文件末尾添加PACKAGECONFIG_append = " sql-sqlite"。再执行MACHINE=am57xx-evm bitbake qtbase。会报错,无法正常编译。报的错是:

ERROR: initscripts-1.0-r155 do_configure: Function failed: do_configure (log file is located at /home/zhang/tisdk/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/initscripts/1.0-r155/temp/log.do_configure.51765)

完整编译信息如下:

/tisdk/build$ MACHINE=am335x-evm bitbake qtbase
WARNING: Layer meta-processor-sdk should set LAYERSERIES_COMPAT_meta-processor-sdk in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer meta-processor-sdk should set LAYERSERIES_COMPAT_meta-processor-sdk in its conf/layer.conf file to list the core layer names it is compatible with.
Loading cache: 100% |###########################################| Time: 0:00:03
Loaded 4658 entries from dependency cache.
WARNING: No recipes available for:
/home/zhang/tisdk/tisdk/sources/meta-arago/meta-arago-distro/recipes-browser/chromium/chromium-wayland_%.bbappend
/home/zhang/tisdk/tisdk/sources/meta-processor-sdk/recipes-ros/navigation/move-base_1.12.14.bbappend
/home/zhang/tisdk/tisdk/sources/meta-processor-sdk/recipes-ros/navigation/rotate-recovery_1.12.14.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.40.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "arm-linux-gnueabi"
MACHINE = "am335x-evm"
DISTRO = "arago"
DISTRO_VERSION = "2019.11"
TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU = "hard"
meta-processor-sdk = "HEAD:56d9d47f18eeec31a1086ca29e54b5956c46de84"
meta-aws = "HEAD:6432f1b38b9dcbbb55020167f5b1cfe55e858c6d"
meta-ros = "HEAD:72068b17e4192b51e09c8dc633805a35edac8701"
meta-arago-distrometa-arago-extras = "HEAD:70436496d2617b281c51390faa3d421814055cd6"
meta-browser = "HEAD:5f365ef0f842ba4651efe88787cf9c63bc8b6cb3"
meta-qt5 = "HEAD:e6e464c9ed9266ce46452f953c1bdcb0e7b2d95f"
meta-virtualization = "HEAD:7685c7d415e0002c448007960837ae8898cd57a5"
meta-networkingmeta-pythonmeta-oemeta-gnomemeta-multimediameta-filesystems = "HEAD:446bd615fd7cb9bc7a159fe5c2019ed08d1a7a93"
meta-ti = "HEAD:b27317ab4f9be931a66344ca502c7e3f4ec780e5"
meta-linaro-toolchainmeta-optee = "HEAD:615ea7561b844a3867cee4299d83d605c10b02ab"
meta = "HEAD:e68991ceb5933f7d03b96697e8a0ba0829feb320"

Initialising tasks: 100% |######################################| Time: 0:00:01
Sstate summary: Wanted 350 Found 0 Missed 350 Current 7 (0% match, 1% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: initscripts-1.0-r155 do_configure: Function failed: do_configure (log file is located at /home/zhang/tisdk/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/initscripts/1.0-r155/temp/log.do_configure.51765)
ERROR: Logfile of failure stored in: /home/zhang/tisdk/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/initscripts/1.0-r155/temp/log.do_configure.51765
Log data follows:
| DEBUG: Executing shell function do_configure
| sed: can't read /home/zhang/tisdk/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/initscripts/1.0-r155/halt: No such file or directory
| WARNING: /home/zhang/tisdk/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/initscripts/1.0-r155/temp/run.do_configure.51765:1 exit 2 from 'sed -i -e "s:SED_HALTARGS:-d -f:g" /home/zhang/tisdk/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/initscripts/1.0-r155/halt'
| ERROR: Function failed: do_configure (log file is located at /home/zhang/tisdk/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/initscripts/1.0-r155/temp/log.do_configure.51765)
ERROR: Task (/home/zhang/tisdk/tisdk/sources/oe-core/meta/recipes-core/initscripts/initscripts_1.0.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 358 tasks of which 355 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/zhang/tisdk/tisdk/sources/oe-core/meta/recipes-core/initscripts/initscripts_1.0.bb:do_configure
Summary: There were 3 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Nancy Wang:

我需要咨询相关工程师,再为您解答,一旦得到回复会立即回复给您。

,

user4894142:

好的,谢谢

,

Nancy Wang:

这个帖子参考过吗?
e2e.ti.com/…/3469005
能否将您完整的编译步骤再贴出来一下。

,

user4894142:

谢谢你。
按照你回复中帖子的方法,重新编译成功了。
修改区别地方:原官方参考的帖子PACKAGECONFIG_append = " sql-sqlite" 加在SDK编译的根目录下/tisdk/build/conf/local.conf。后来替换这句话加在"/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5" and add the following line: PACKAGECONFIG_append = " sql-sqlite" in the file "qtbase_%.bbappend"中,编译通过。

问题原因,按照之前官方常夫的帖子方法加在/tisdk/build/conf/local.conf时,它首先会去编译initscripts,但我在 /home/zhang/tisdk/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/initscripts/1.0-r155/目录下,未找到任何文件拷贝到这里,这也就是编译失败的原因。猜测可能是有BUG。

疑问:为什么在配置文件/tisdk/build/conf/local.conf添加sql-sqlite支持,会先去编译initscripts,但又没有执行相关拷贝。如果您能给出这方面的解答,就好了。

赞(0)
未经允许不得转载:TI中文支持网 » AM3358的 qt添加qsqlite模块编译失败
分享到: 更多 (0)