[ Technical exchange] 第一次编译打包 notepadnext 遇到问题
Tofloor
poster avatar
玲泷沙.spark
deepin
2025-08-14 19:06
Author
libQt5Network.so /runtime/lib/x86_64-linux-gnu/libQt5Core.so -lGL -lpthread   
/bin/ld: build/obj/loslib.o: in function `os_tmpname':
loslib.c:(.text+0x380): 警告:the use of `tmpnam' is dangerous, better use `mkstemp'
make[1]: 离开目录“/project/linglong/sources/NotepadNext.git/build/NotepadNext”
+ rm -f /usr/share/icons/hicolor/scalable/mimetypes/NotepadNext.svg
rm: 无法删除 '/usr/share/icons/hicolor/scalable/mimetypes/NotepadNext.svg': Read-only file system
(20162) /home/james/linyaps-1.9.5/apps/ll-builder/src/main.cpp:279 Build failed:  [code -1 ] message:
        /home/james/linyaps-1.9.5/libs/linglong/src/linglong/builder/linglong_builder.cpp:1503 build project /home/james/linyaps/Notepadnext/com.github.notepadnext.linyaps/linglong.yaml: stage build error
        /home/james/linyaps-1.9.5/libs/linglong/src/linglong/builder/linglong_builder.cpp:968 build stage build
        /home/james/linyaps-1.9.5/libs/linglong/src/linglong/runtime/container.cpp:272 run container 0f386d57061a61bed23bbcb1185b939fdb1c917ef1c5af89298a3ebfb43b3178: cli run: run command failed: /usr/bin/ll-box --cgroup-manager=disabled run -b /run/user/1000/linglong/0f386d57061a61bed23bbcb1185b939fdb1c917ef1c5af89298a3ebfb43b3178 0f386d57061a61bed23bbcb1185b939fdb1c917ef1c5af89298a3ebfb43b3178 retval=256

是不是和默认安装到/usr/bin 的问题啊?已经成功编译出notepadnext二进制文件了,应该是卡在make install上了

linglong.yaml

version: "1"

package:
  id: com.github.notepadnext.linyaps
  name: NotepadNext #set your application name
  version: 0.12.0.0 
  kind: app
  description: |
    跨平台的Notepad++的实现 #set a brief text to introduce your application.

command: 
  - NotepadNext

base: org.deepin.foundation/23.0.0 
runtime: org.deepin.Runtime/23.0.1
#set the runtime environment if you need, a example of setting deepin runtime is as follows.
#runtime:
#org.deepin.runtime.dtk/23.1.0

#set the source if you need, a simple example of git is as follows.
sources:
  - kind: git
    url: "https://gitee.com/humanfans/NotepadNext.git"
    version: master
    commit: a0889dd76cbb9721223bdca0f9cd9becaf837cb2
buildext:
  apt:
    build_depends: []
#      - qtbase5-dev
#      - qt5-qmake
#      - qt5-default
#      - qtbase5-dev-tools
#      - qttools5-dev-tools
#      - qtbase5-private-dev
#      - libqt5x11extras5-dev
#      - build-essential
#      - git
    depend: []

build: |
    set -x
    cd /project/linglong/sources/NotepadNext.git
    mkdir build
    cd build
    qmake ../src/NotepadNext.pro
    make -j$(nproc)
    rm -f /usr/share/icons/hicolor/scalable/mimetypes/NotepadNext.svg
    make install
y
Reply Favorite View the author
All Replies
Ziggy
deepin
2025-08-14 19:14
#1
/usr是在base里的,容器base、runtime都是只读的
不太能理解,这里为啥要删除这个图标?
Reply View the author
玲泷沙.spark
deepin
2025-08-14 20:00
#2
Ziggy
/usr是在base里的,容器base、runtime都是只读的
不太能理解,这里为啥要删除这个图标?

哈哈删除了 好把图标放进去啊。那我怎么改 才能放到/opt/里对应目录下啊

Reply View the author
Ziggy
deepin
2025-08-14 20:07
#3
玲泷沙.spark

哈哈删除了 好把图标放进去啊。那我怎么改 才能放到/opt/里对应目录下啊

CC

https://linyaps.org.cn/guide/lessons/build-offline-src.html

Reply View the author