Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fbxsdk_python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
ADILI Robin
fbxsdk_python
Commits
d421deb8
Commit
d421deb8
authored
4 years ago
by
w-v
Browse files
Options
Downloads
Patches
Plain Diff
do not get dependencies when folders exist
parent
9ffda682
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
build.sh
+34
-18
34 additions, 18 deletions
build.sh
with
34 additions
and
18 deletions
build.sh
+
34
−
18
View file @
d421deb8
...
...
@@ -10,26 +10,42 @@ scdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
builddir
=
"
$scdir
"
/build
fbxsdkdir
=
"
$builddir
"
/fbxsdk
fbxpydir
=
"
$builddir
"
/fbxpy
reqsfile
=
"
${
scdir
}
"
/reqs.txt
[
-d
"
$builddir
"
]
||
mkdir
"
$builddir
"
# Download fbxsdk and fbxsdk python bindings
while
read
l
;
do
curl
-L
-O
$l
;
done
<
"
$scdir
"
/reqs.txt
ls
-1
*
.tar.gz|while
read
a
;
do
tar
-xvzf
"
$a
"
-C
"
$builddir
"
;
done
rm
fbx
*
.tar.gz
# install fbxsdk
[
-d
"
$fbxsdkdir
"
]
||
(
mkdir
"
$fbxsdkdir
"
&&
printf
"yes
\n
n
\n
"
|
"
$builddir
"
/fbx
*
fbxsdk_linux
"
$fbxsdkdir
"
)
# install fbxsdk python bindings
[
-d
"
$fbxpydir
"
]
||
(
mkdir
"
$fbxpydir
"
&&
printf
"yes
\n
n
\n
"
|
"
$builddir
"
/fbx
*
fbxpythonbindings_linux
"
$fbxpydir
"
)
# patch sip files and library headers so that they compile with sip5
patch
-p0
< patch
# patch libfbxsdk.so because it is not linked against libxml2 and libz for some reason
patchelf
--add-needed
libz.so.1
${
fbxsdkdir
}
/lib/gcc/x64/release/libfbxsdk.so
patchelf
--add-needed
libxml2.so.2
${
fbxsdkdir
}
/lib/gcc/x64/release/libfbxsdk.so
# download fbxsdk
if
[
!
-d
"
$fbxsdkdir
"
]
then
mkdir
"
$fbxsdkdir
"
url
=
$(
grep
'fbx.*fbxsdk'
$reqsfile
)
file
=
${
url
##*/
}
tar
=
"
${
fbxsdkdir
}
/
${
f
}
"
curl
-L
-o
"
$tar
"
$url
tar
-xvzf
"
$tar
"
-C
"
$fbxsdkdir
"
printf
"yes
\n
n
\n
"
|
"
$fbxsdkdir
"
/fbx
*
fbxsdk_linux
"
$fbxsdkdir
"
# patch libfbxsdk.so because it is not linked against libxml2 and libz for some reason
patchelf
--add-needed
libz.so.1
${
fbxsdkdir
}
/lib/gcc/x64/release/libfbxsdk.so
patchelf
--add-needed
libxml2.so.2
${
fbxsdkdir
}
/lib/gcc/x64/release/libfbxsdk.so
else
echo
"Skipping installation of fbxsdk because "
$fbxsdkdir
" exists"
fi
# download fbxsdk python bindings
if
[
!
-d
"
$fbxpydir
"
]
then
mkdir
"
$fbxpydir
"
url
=
$(
grep
'fbx.*fbxpythonbindings_linux'
$reqsfile
)
file
=
${
url
##*/
}
tar
=
"
${
fbxpydir
}
/
${
f
}
"
curl
-L
-o
"
$tar
"
$url
tar
-xvzf
"
$tar
"
-C
"
$fbxpydir
"
printf
"yes
\n
n
\n
"
|
"
$fbxpydir
"
/fbx
*
fbxpythonbindings_linux
"
$fbxpydir
"
# patch sip files and library headers so that they compile with sip5
patch
-N
-p0
< patch
else
echo
"Skipping installation of fbx python bindings because "
$fbxpydir
" exists"
fi
sip-wheel
--verbose
LD_LIBRARY_PATH
=
$
(
pwd
)
/build/
fbxsdk/lib/gcc/x64/release/:
$LD_LIBRARY_PATH
auditwheel
-v
repair
$(
ls
-1t
fbx
*
.whl|head
-1
)
LD_LIBRARY_PATH
=
$
{
fbxsdk
dir
}
/lib/gcc/x64/release/:
$LD_LIBRARY_PATH
auditwheel
-v
repair
$(
ls
-1t
fbx
*
.whl|head
-1
)
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