Skip to content

Commit

Permalink
gtk: retry2 split make
Browse files Browse the repository at this point in the history
  • Loading branch information
sam#gemmi-win10 committed Dec 2, 2023
1 parent b099c81 commit a1d0119
Showing 1 changed file with 31 additions and 29 deletions.
60 changes: 31 additions & 29 deletions compile/src/v-pcmanfm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,38 +176,40 @@ function gtk(){
$args1 #args1还是缺依赖;

log "Compiling gtk..."
make -j$(nproc) #gtk全部构建>> build.sh pcmanfm>> 生成pcmanfm静态文件成功
# make -j$(nproc) -C gdk & #first
# make -j$(nproc) -C gtk &
# wait
find |egrep "g.*k-x11.*\.a$"
# ./gdk/.libs/libgdk-x11-2.0.a
# ./gtk/.libs/libgtk-x11-2.0.a
# ./gdk/x11/.libs/libgdk-x11.a
# # bash-5.1# ls -lh ./gdk/.libs/libgdk-x11-2.0.a ./gtk/.libs/libgtk-x11-2.0.a
# -rw-r--r-- 1 root root 5.0M Dec 1 17:12 ./gdk/.libs/libgdk-x11-2.0.a
# -rw-r--r-- 1 root root 33.2M Dec 1 17:14 ./gtk/.libs/libgtk-x11-2.0.a
# with args lite?
# # bash-5.1# ls -lh ./gdk/.libs/libgdk-x11-2.0.a ./gtk/.libs/libgtk-x11-2.0.a
# -rw-r--r-- 1 root root 1.1M Dec 1 17:52 ./gdk/.libs/libgdk-x11-2.0.a
# -rw-r--r-- 1 root root 8.6M Dec 1 17:56 ./gtk/.libs/libgtk-x11-2.0.a
# without args
# # bash-5.1# ls -lh ./gdk/.libs/libgdk-x11-2.0.a ./gtk/.libs/libgtk-x11-2.0.a
# -rw-r--r-- 1 root root 1.2M Dec 1 18:26 ./gdk/.libs/libgdk-x11-2.0.a
# -rw-r--r-- 1 root root 8.9M Dec 1 18:33 ./gtk/.libs/libgtk-x11-2.0.a
# make -j$(nproc) #根目录下构建; >> build.sh pcmanfm>> 生成静态文件ok
# # bash-5.1# ls -lh ./gdk/.libs/libgdk-x11-2.0.a ./gtk/.libs/libgtk-x11-2.0.a
# -rw-r--r-- 1 root root 1.2M Dec 1 18:56 ./gdk/.libs/libgdk-x11-2.0.a
# -rw-r--r-- 1 root root 8.9M Dec 1 19:05 ./gtk/.libs/libgtk-x11-2.0.a
# make -j$(nproc) #gtk全部构建>> build.sh pcmanfm>> 生成pcmanfm静态文件成功
#
# retry2
make -j$(nproc) -C gdk & #first
make -j$(nproc) -C gtk &
wait
find |egrep "g.*k-x11.*\.a$"
# ./gdk/.libs/libgdk-x11-2.0.a
# ./gtk/.libs/libgtk-x11-2.0.a
# ./gdk/x11/.libs/libgdk-x11.a
# # bash-5.1# ls -lh ./gdk/.libs/libgdk-x11-2.0.a ./gtk/.libs/libgtk-x11-2.0.a
# -rw-r--r-- 1 root root 5.0M Dec 1 17:12 ./gdk/.libs/libgdk-x11-2.0.a
# -rw-r--r-- 1 root root 33.2M Dec 1 17:14 ./gtk/.libs/libgtk-x11-2.0.a
# with args lite?
# # bash-5.1# ls -lh ./gdk/.libs/libgdk-x11-2.0.a ./gtk/.libs/libgtk-x11-2.0.a
# -rw-r--r-- 1 root root 1.1M Dec 1 17:52 ./gdk/.libs/libgdk-x11-2.0.a
# -rw-r--r-- 1 root root 8.6M Dec 1 17:56 ./gtk/.libs/libgtk-x11-2.0.a
# without args
# # bash-5.1# ls -lh ./gdk/.libs/libgdk-x11-2.0.a ./gtk/.libs/libgtk-x11-2.0.a
# -rw-r--r-- 1 root root 1.2M Dec 1 18:26 ./gdk/.libs/libgdk-x11-2.0.a
# -rw-r--r-- 1 root root 8.9M Dec 1 18:33 ./gtk/.libs/libgtk-x11-2.0.a
# make -j$(nproc) #根目录下构建; >> build.sh pcmanfm>> 生成静态文件ok
# # bash-5.1# ls -lh ./gdk/.libs/libgdk-x11-2.0.a ./gtk/.libs/libgtk-x11-2.0.a
# -rw-r--r-- 1 root root 1.2M Dec 1 18:56 ./gdk/.libs/libgdk-x11-2.0.a
# -rw-r--r-- 1 root root 8.9M Dec 1 19:05 ./gtk/.libs/libgtk-x11-2.0.a

log "Installing gtk..."
# make[3]: *** [/usr/share/gobject-introspection-1.0/Makefile.introspection:156: Gdk-2.0.gir] Error 1
# make install #make, make install err:>> 不影响静态库的生成 及安装到/usr/local/lib/libgdk_pixbuf-2.0.a
# find /usr/local/lib |egrep "g.*k-x11.*\.a$"
# cp /usr/local/lib/libgdk-x11-2.0.a /usr/local/lib/libgtk-x11-2.0.a /usr/lib/
# make[3]: *** [/usr/share/gobject-introspection-1.0/Makefile.introspection:156: Gdk-2.0.gir] Error 1
# make install #make, make install err:>> 不影响静态库的生成 及安装到/usr/local/lib/libgdk_pixbuf-2.0.a
# find /usr/local/lib |egrep "g.*k-x11.*\.a$"
# cp /usr/local/lib/libgdk-x11-2.0.a /usr/local/lib/libgtk-x11-2.0.a /usr/lib/

# ./gdk/x11/.libs/libgdk-x11.a
\cp -a ./gdk/.libs/libgdk-x11-2.0.a ./gtk/.libs/libgtk-x11-2.0.a /usr/lib/
# ./gdk/x11/.libs/libgdk-x11.a
\cp -a ./gdk/.libs/libgdk-x11-2.0.a ./gtk/.libs/libgtk-x11-2.0.a /usr/lib/
}


Expand Down

0 comments on commit a1d0119

Please sign in to comment.