-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# make, make install: 非静态 - ff_built: 尝试Xvnc下启动(验证fontconfig)
- Loading branch information
Showing
1 changed file
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
|
||
- ff_built: 尝试Xvnc下启动(验证fontconfig) | ||
|
||
```bash | ||
# /mnt2/docker-x11base/compile/src # ls -lh /tmp/openbox/openbox/openbox | ||
-rwxr-xr-x 1 root root 6.3M Nov 6 05:43 /tmp/openbox/openbox/openbox | ||
/mnt2/docker-x11base/compile/src # xx-verify --static /tmp/openbox/openbox/openbox | ||
/mnt2/docker-x11base/compile/src # echo $? | ||
0 | ||
|
||
# opbox @builder_tmux2 | ||
/tmp/openbox-install/usr/bin # ls -lh | ||
total 10M | ||
-rwxr-xr-x 1 root root 871.0K Oct 30 13:42 gdm-control | ||
-rwxr-xr-x 1 root root 992.2K Oct 30 13:42 gnome-panel-control | ||
-rwxr-xr-x 1 root root 1.8M Oct 30 13:42 obxprop | ||
-rwxr-xr-x 1 root root 6.3M Oct 30 13:42 openbox | ||
-rwxr-xr-x 1 root root 2.0K Oct 30 13:42 openbox-gnome-session | ||
-rwxr-xr-x 1 root root 476 Oct 30 13:42 openbox-kde-session | ||
-rwxr-xr-x 1 root root 585 Oct 30 13:42 openbox-session | ||
|
||
# try-run @builder_tmux2 | ||
/tmp/openbox-install/usr/bin # ps -ef | ||
PID USER TIME COMMAND | ||
1 root 0:02 sh | ||
474491 root 0:00 ./Xvnc :21 | ||
474527 root 0:00 ps -ef | ||
|
||
# 需带配置项,不然启不来 | ||
/tmp/openbox-install/usr/bin # ./openbox | ||
Openbox-Message: Unable to find a valid config file, using some simple defaults | ||
ObRender-Message: Unable to load the theme 'Clearlooks' | ||
Openbox-Message: Unable to load a theme. | ||
``` | ||
|
||
|
||
- err ./configure @builder_tmux8 | ||
|
||
```bash | ||
# tmux2: hand正常>> 脚本make提示少依赖项; | ||
/mnt2/docker-x11base/compile/src # env |egrep "clang|FLAGS" | ||
CXXFLAGS=-Os -fomit-frame-pointer | ||
CFLAGS=-Os -fomit-frame-pointer | ||
CPPFLAGS=-Os -fomit-frame-pointer | ||
CXX=xx-clang++ | ||
CC=xx-clang | ||
|
||
|
||
# tmux8: hand ./configure正常; 脚本: C compiler cannot create executables | ||
configure: error: in '/tmp/openbox': | ||
configure: error: C compiler cannot create executables | ||
#手动 | ||
bash-5.1# env |egrep "clang|FLAGS" | ||
bash-5.1# | ||
# 脚本 | ||
CXXFLAGS=-Os -fomit-frame-pointer | ||
CFLAGS=-Os -fomit-frame-pointer | ||
CPPFLAGS=-Os -fomit-frame-pointer | ||
# LDFLAGS=-Wl,--as-needed --static -static -Wl,--strip-all | ||
CXX=xx-clang++ | ||
CC=xx-clang | ||
|
||
|
||
# 注释后,./configure正常 | ||
# export LDFLAGS="-Wl,--as-needed --static -static -Wl,--strip-all" | ||
|
||
# make, make install: 非静态 | ||
bash-5.1# ls -lh /tmp/openbox/openbox/openbox | ||
-rwxr-xr-x 1 root root 924.4K Nov 6 10:36 /tmp/openbox/openbox/openbox | ||
``` |