Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
brittney allen
purr-data
Commits
3da0ece7
Commit
3da0ece7
authored
8 years ago
by
Jonathan Wilkes
Browse files
Options
Downloads
Patches
Plain Diff
fix #215: for OSX app bundle, search both /usr/local/opt and /usr/local/lib from dylib dependences
parent
40370442
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/darwin_app/embed-MacOSX-dependencies.sh
+22
-1
22 additions, 1 deletion
packages/darwin_app/embed-MacOSX-dependencies.sh
with
22 additions
and
1 deletion
packages/darwin_app/embed-MacOSX-dependencies.sh
+
22
−
1
View file @
3da0ece7
...
...
@@ -78,7 +78,7 @@ for dylib in $PD_APP_LIB/*.dylib; do
fi
done
# run it
one more time
to catch dylibs that depend on dylibs
# run it
again
to catch dylibs that depend on dylibs
located in /usr/local/opt
for
dylib
in
$PD_APP_LIB
/
*
.dylib
;
do
LIBS
=
`
otool
-L
$dylib
|
sed
-n
's|.*/usr/local/opt/\(.*\.dylib\).*|\1|p'
`
if
[
"x
$LIBS
"
!=
"x"
]
;
then
...
...
@@ -99,3 +99,24 @@ for dylib in $PD_APP_LIB/*.dylib; do
fi
done
# finally, run it one more time to catch dylibs that depend on dylibs from
# /usr/local/lib
for
dylib
in
$PD_APP_LIB
/
*
.dylib
;
do
LIBS
=
`
otool
-L
$dylib
|
sed
-n
's|.*/usr/local/lib/\(.*\.dylib\).*|\1|p'
`
if
[
"x
$LIBS
"
!=
"x"
]
;
then
echo
"
`
echo
$dylib
|
sed
's|.*/\(.*\.dylib\)|\1|'
`
is using:"
for
lib
in
$LIBS
;
do
echo
"
$lib
"
new_lib
=
`
echo
$lib
|
sed
's|.*/\(.*\.dylib\)|\1|'
`
if
[
-e
$PD_APP_LIB
/
$new_lib
]
;
then
echo
"
$PD_APP_LIB
/
$new_lib
already exists, skipping copy."
else
install
-vp
/usr/local/lib/
$lib
$PD_APP_LIB
fi
# @executable_path starts from Contents/Resources/app.nw/bin/pd
install_name_tool
-id
@executable_path/../../../
$LIB_DIR
/
$new_lib
$PD_APP_LIB
/
$new_lib
install_name_tool
-change
/usr/local/lib/
$lib
@executable_path/../../../
$LIB_DIR
/
$new_lib
$dylib
done
echo
" "
fi
done
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