Skip to content

Commit d72336d

Browse files
committed
add shell script to join in the linux app bundle. sync the doc about it
1 parent 7a3020c commit d72336d

File tree

5 files changed

+148
-4
lines changed

5 files changed

+148
-4
lines changed

documentation/buildAndDeliver/ubuntu_HowTo_BuildAndDeliverTheApp.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,9 @@ III) To help finding libraries files coming from the Qt 5 framework, you can use
444444
Edit the script to set the root_path_for_search value to the Qt 5 framework installed directory, and run the script.
445445
Example: root_path_for_search="/opt/Qt5.12.5"
446446

447-
IV) Copy the different files in its according directory in the application tree structure.
447+
IV) Copy the different files in its according directory in the application tree structure.
448+
shell scripts to join (stackprof.sh, stackprof_4Kscreen.sh and ldd_all.sh) can be found in:
449+
sourceCode/application/buildAndDeliver/linux/scriptsToAddToAppBundle
448450

449451
V) Check application binaries dependencies
450452
Call ldd_all.sh to check that joined libraries and the application binary don't rely on libraries located in /usr/local/lib.

documentation/development/implementationNotes.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -692,10 +692,17 @@ The main principle is:
692692
|
693693
`-- buildAndDeliver
694694
|
695-
|-- linux
695+
|-- linux | See files in docs_buildAndDeliver directory for more informations
696696
| |
697-
| |-- ubuntu_find_Qt5LibforAppBundle.sh | script to help to find Qt5 libs required for the app bundle (use not described in docs_buildAndDeliver)
698-
| `-- ubuntu_makeLinuxAppBundle.sh | script to copy a directory of bin and the app binary to a common directory (use not described in docs_buildAndDeliver)
697+
| |-- ubuntu_find_Qt5LibforAppBundle.sh | script to help to find Qt5 libs required for the app bundle
698+
| |-- ubuntu_makeLinuxAppBundle.sh | script to copy a directory of bin and the app binary to a common directory (not described in docs_buildAndDeliver)
699+
| |
700+
| `-- scriptsToAddToAppBundle
701+
| |
702+
| |-- stackprof.sh | script to launch the application for not 4K screen display
703+
| |-- stackprof_4Kscreen.sh | script to launch the application for 4K screen display
704+
| |
705+
| `-- ldd_all.sh | script which show shared object dependencies for all binaries which must be included in the application bundle
699706
|
700707
`-- mac | See files in docs_buildAndDeliver directory for more informations
701708
|
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#/bin/bash
2+
3+
appname=stackprof
4+
5+
dirname=`dirname $0`
6+
tmp="${dirname#?}"
7+
8+
if [ "${dirname%$tmp}" != "/" ]; then
9+
dirname=$PWD/$dirname
10+
fi
11+
LD_LIBRARY_PATH=$dirname
12+
export LD_LIBRARY_PATH
13+
echo "LD_LIBRARY_PATH = " $LD_LIBRARY_PATH
14+
15+
echo "appname: " $appname
16+
echo "dirname: " $dirname
17+
18+
export QT_QPA_PLATFORM_PLUGIN_PATH=$dirname/plugins/
19+
echo "QT_QPA_PLATFORM_PLUGIN_PATH = " $QT_QPA_PLATFORM_PLUGIN_PATH
20+
21+
export QT_DEBUG_PLUGINS=1
22+
23+
24+
25+
echo "ldd libicudata.so.56"
26+
ldd libicudata.so.56
27+
28+
echo "ldd libicui18n.so.56"
29+
ldd libicui18n.so.56
30+
31+
echo "ldd libicuuc.so.56"
32+
ldd libicuuc.so.56
33+
34+
echo "ldd libproj.so.18"
35+
ldd libproj.so.18
36+
37+
echo "ldd libQt5Core.so.5"
38+
ldd libQt5Core.so.5
39+
40+
echo "ldd libQt5DBus.so.5"
41+
ldd libQt5DBus.so.5
42+
43+
echo "ldd libQt5Gui.so.5"
44+
ldd libQt5Gui.so.5
45+
46+
echo "ldd libQt5Widgets.so.5"
47+
ldd libQt5Widgets.so.5
48+
49+
echo "ldd libQt5XcbQpa.so.5"
50+
ldd libQt5XcbQpa.so.5
51+
52+
echo "ldd libsqlite3.so"
53+
ldd libsqlite3.so
54+
55+
echo "ldd libtiff.so.5"
56+
ldd libtiff.so.5
57+
58+
echo "ldd platforms/libqxcb.so"
59+
ldd platforms/libqxcb.so
60+
61+
echo "ldd stackprof"
62+
ldd stackprof
63+
64+
65+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
appname=stackprof
3+
4+
dirname=`dirname $0`
5+
tmp="${dirname#?}"
6+
7+
if [ "${dirname%$tmp}" != "/" ]; then
8+
dirname=$PWD/$dirname
9+
fi
10+
LD_LIBRARY_PATH=$dirname
11+
export LD_LIBRARY_PATH
12+
echo "LD_LIBRARY_PATH = " $LD_LIBRARY_PATH
13+
14+
echo "appname: " $appname
15+
echo "dirname: " $dirname
16+
17+
export QT_QPA_PLATFORM_PLUGIN_PATH=$dirname/platforms/
18+
echo "QT_QPA_PLATFORM_PLUGIN_PATH = " $QT_QPA_PLATFORM_PLUGIN_PATH
19+
20+
#export QT_DEBUG_PLUGINS=1
21+
export QT_DEBUG_PLUGINS=0
22+
23+
echo "start app:"
24+
25+
echo $dirname/$appname
26+
echo "$@"
27+
28+
$dirname/$appname arg1 "$@"
29+
30+
echo "app terminated"
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/bin/sh
2+
appname=stackprof
3+
4+
dirname=`dirname $0`
5+
tmp="${dirname#?}"
6+
7+
if [ "${dirname%$tmp}" != "/" ]; then
8+
dirname=$PWD/$dirname
9+
fi
10+
LD_LIBRARY_PATH=$dirname
11+
export LD_LIBRARY_PATH
12+
echo "LD_LIBRARY_PATH = " $LD_LIBRARY_PATH
13+
14+
echo "appname: " $appname
15+
echo "dirname: " $dirname
16+
17+
export QT_QPA_PLATFORM_PLUGIN_PATH=$dirname/platforms/
18+
echo "QT_QPA_PLATFORM_PLUGIN_PATH = " $QT_QPA_PLATFORM_PLUGIN_PATH
19+
20+
#export QT_DEBUG_PLUGINS=1
21+
export QT_DEBUG_PLUGINS=0
22+
23+
echo "start app:"
24+
25+
echo $dirname/$appname
26+
echo "$@"
27+
28+
29+
# https://github.com/linuxmint/cinnamon/issues/4902
30+
# try:
31+
export QT_SCALE_FACTOR=1
32+
export QT_AUTO_SCREEN_SCALE_FACTOR=0
33+
#export QT_SCREEN_SCALE_FACTORS=1
34+
export QT_SCREEN_SCALE_FACTORS=2
35+
#
36+
37+
$dirname/$appname arg1 "$@"
38+
#$dirname/demo1 arg1 "$@"
39+
40+
echo "app terminated"

0 commit comments

Comments
 (0)