[software development] 玲珑构建失败
Tofloor
poster avatar
wlly-lzh
deepin
2024-05-24 14:48
Author
version: "1"

package:
  id: org.linglong.demo
  name: linglong-demo
  version: 0.0.0.1
  kind: app
  description: |
    simple qt demo.

command:
    - /usr/local/bin/test

base: org.deepin.foundation/23.0.0
runtime: org.deepin.Runtime/23.0.1

sources:
  - kind: git
    url: "https://gitee.com/wlly-lzh/linglongtest.git"
    version: master
    commit: df01e4830c9ef81c47c0ab3838f71ea520222ba3

build: |
  cd /project/linglong/sources/linglongtest.git
  cmake -B build
  cmake --build build
  cmake --install build

以上是用于构建的 linglong.yaml文件,大家可以拷下去,放到一个空目录里面,然后运行 ll-builder build

在我这里的情况是build没有报错,但是 ll-builder run无法正常运行,不知道错在哪里了。

原代码是能够正常构建和安装的,但是在用玲珑构建时失败了。

玲珑文档中的示例是可行的,能够成功build和run,甚至可以导出layer文件来安装,但是他是用qmake来组织和构建的,不知道是不是这方面的问题。


这里附上原文档中的示例(刚刚看见文档变了):

version: "1"

package:
  id: org.deepin.demo
  name: deepin-demo
  version: 0.0.0.1
  kind: app
  description: |
    simple qt demo.

command:
  - /opt/apps/org.deepin.demo/files/bin/demo

base: org.deepin.foundation/23.0.0
runtime: org.deepin.Runtime/23.0.1

sources:
  - kind: git
    url: "https://github.com/linuxdeepin/linglong-builder-demo.git"
    version: master
    commit: a3b89c3aa34c1aff8d7f823f0f4a87d5da8d4dc0

build: |
  cd /project/linglong/sources/linglong-builder-demo.git
  qmake -makefile PREFIX=${PREFIX} LIB_INSTALL_DIR=${PREFIX}/lib/${TRIPLET}
  make
  make install

注意:ll-builder create创建的linglong.yaml文件已经在1.5.1版本下不可用。

希望能够有一些实例能够参考!

Reply Favorite View the author
All Replies
f@deepin
deepin
2024-05-24 14:54
#1

scream

Reply View the author