Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
JPSvis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JuPedSim
JPSvis
Commits
28c1f440
Verified
Commit
28c1f440
authored
6 years ago
by
Mohcine Chraibi
Browse files
Options
Downloads
Patches
Plain Diff
WIP: update deploy scripts
parent
1b90e21c
Branches
67-multithreading-is-plattform-dependent
No related tags found
No related merge requests found
Pipeline
#18896
failed
6 years ago
Stage: configure
Stage: compile
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
deployAPPLE.sh
+14
-2
14 additions, 2 deletions
deployAPPLE.sh
fixQtdependency.py
+35
-0
35 additions, 0 deletions
fixQtdependency.py
with
49 additions
and
2 deletions
deployAPPLE.sh
+
14
−
2
View file @
28c1f440
...
...
@@ -31,7 +31,7 @@ echo "INFO: make .."
make
-j4
echo
"INFO: running <dylibbundler -od -b -x ../bin/
${
CMD
}
.app/Contents/MacOS/
${
CMD
}
-d ../bin/
${
CMD
}
.app/Contents/libs/>"
#
echo "INFO: running <dylibbundler -od -b -x ../bin/${CMD}.app/Contents/MacOS/${CMD} -d ../bin/${CMD}.app/Contents/libs/>"
dylibbundler
-od
-b
-x
../bin/
${
CMD
}
.app/Contents/MacOS/
${
CMD
}
-d
../bin/
${
CMD
}
.app/Contents/libs/
...
...
@@ -51,8 +51,15 @@ if [[ -n $isPythonDependencyGlobal ]];then
Frameworks
=
`
echo
${
Python
}
|
awk
-F
Frameworks
'{ print "Frameworks"$2 }'
`
echo
"WARNING:
${
RED
}
change <
$Python
> to <@executable_path/../
$Frameworks
>
${
CMD
}
${
NC
}
."
echo
"cp
`
dirname
${
Python
}
`
"
echo
"in ../bin/jpsvis.app/Contents/
${
Framworks
}
"
destination
=
`
echo
${
p
}
|
awk
-F
Frameworks
'{ print $1"Frameworks" }'
`
# todo: this python stuff is hard coded yet!
mkdir
-p
../bin/jpsvis.app/Contents/Frameworks/Python.framework/Versions
cp
-r
`
dirname
${
Python
}
`
../bin/jpsvis.app/Contents/Frameworks/Python.framework/Versions
install_name_tool
-change
$Python
@executable_path/../
$Frameworks
../bin/
${
CMD
}
.app/Contents/MacOS/
${
CMD
}
install_name_tool
-change
$Python
@executable_path/../Frameworks/Python.framework/Versions/3.7/Python ../bin/
${
CMD
}
.app/Contents/MacOS/
${
CMD
}
echo
"INFO: Check again"
otool
-L
../bin/
${
CMD
}
.app/Contents/MacOS/
${
CMD
}
|
grep
Python.framework
...
...
@@ -65,4 +72,9 @@ cd ..
# check if dependencies to libs are local to .app
python checkDependencies.py bin/jpsvis.app/
# qt dependencies
python fixQtdependency.py
# because of https://github.com/auriamg/macdylibbundler/issues/12
appdmg Resources/dmg.json
${
CMD
}
-
${
VERSION
}
.dmg
This diff is collapsed.
Click to expand it.
fixQtdependency.py
0 → 100644
+
35
−
0
View file @
28c1f440
import
glob
import
subprocess
import
shlex
import
os
import
sys
from
shutil
import
copyfile
RED
=
'
\033
[0;31m
'
NC
=
'
\033
[0m
'
# No Color
executable
=
"
bin/jpsvis.app/Contents/MacOS/jpsvis
"
cmd
=
"
otool -L %s
"
%
executable
f
=
open
(
"
blah.txt
"
,
"
w
"
)
res
=
subprocess
.
call
(
shlex
.
split
(
cmd
),
stdout
=
f
)
f
.
close
()
f
=
open
(
"
blah.txt
"
,
"
r
"
)
lines
=
f
.
readlines
()
for
line
in
lines
:
if
line
.
find
(
"
Qt
"
)
>
0
and
line
.
find
(
"
vtk
"
)
<
0
:
old_qt_dep
=
line
.
split
()[
0
]
filename
=
old_qt_dep
.
split
(
"
/
"
)[
-
1
]
new_qt_dep
=
"
bin/jpsvis.app/Contents/libs/%s
"
%
filename
if
not
os
.
path
.
exists
(
new_qt_dep
):
copyfile
(
old_qt_dep
,
new_qt_dep
)
change
=
"
install_name_tool -change %s %s %s
"
%
(
old_qt_dep
,
"
@executable_path/../libs/%s
"
%
filename
,
executable
)
print
(
"
<< old:
"
,
old_qt_dep
)
print
(
"
>> new:
"
,
"
@executable_path/../libs/%s
"
%
filename
)
res
=
subprocess
.
call
(
shlex
.
split
(
change
))
# todo: The copied qt libs should not reference system libs.
# Library not loaded: /usr/local/Cellar/qt/5.12.2/lib/QtCore.framework/Versions/5/QtCore
# Referenced from: /Applications/jpsvis.app/Contents/libs/QtNetwork
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment