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
1461cb4b
Commit
1461cb4b
authored
3 years ago
by
ADILI Robin
Browse files
Options
Downloads
Patches
Plain Diff
do not get dependencies when folders exist
parent
e485d08b
Branches
Branches containing commit
Tags
Tags containing commit
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 @
1461cb4b
...
@@ -10,26 +10,42 @@ scdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
...
@@ -10,26 +10,42 @@ scdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
builddir
=
"
$scdir
"
/build
builddir
=
"
$scdir
"
/build
fbxsdkdir
=
"
$builddir
"
/fbxsdk
fbxsdkdir
=
"
$builddir
"
/fbxsdk
fbxpydir
=
"
$builddir
"
/fbxpy
fbxpydir
=
"
$builddir
"
/fbxpy
reqsfile
=
"
${
scdir
}
"
/reqs.txt
[
-d
"
$builddir
"
]
||
mkdir
"
$builddir
"
[
-d
"
$builddir
"
]
||
mkdir
"
$builddir
"
# Download fbxsdk and fbxsdk python bindings
# download fbxsdk
while
read
l
;
do
curl
-L
-O
$l
;
done
<
"
$scdir
"
/reqs.txt
if
[
!
-d
"
$fbxsdkdir
"
]
ls
-1
*
.tar.gz|while
read
a
;
do
tar
-xvzf
"
$a
"
-C
"
$builddir
"
;
done
then
rm
fbx
*
.tar.gz
mkdir
"
$fbxsdkdir
"
url
=
$(
grep
'fbx.*fbxsdk'
$reqsfile
)
# install fbxsdk
file
=
${
url
##*/
}
[
-d
"
$fbxsdkdir
"
]
||
(
mkdir
"
$fbxsdkdir
"
&&
printf
"yes
\n
n
\n
"
|
"
$builddir
"
/fbx
*
fbxsdk_linux
"
$fbxsdkdir
"
)
tar
=
"
${
fbxsdkdir
}
/
${
f
}
"
curl
-L
-o
"
$tar
"
$url
# install fbxsdk python bindings
tar
-xvzf
"
$tar
"
-C
"
$fbxsdkdir
"
[
-d
"
$fbxpydir
"
]
||
(
mkdir
"
$fbxpydir
"
&&
printf
"yes
\n
n
\n
"
|
"
$builddir
"
/fbx
*
fbxpythonbindings_linux
"
$fbxpydir
"
)
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
# patch sip files and library headers so that they compile with sip5
patchelf
--add-needed
libz.so.1
${
fbxsdkdir
}
/lib/gcc/x64/release/libfbxsdk.so
patch
-p0
< patch
patchelf
--add-needed
libxml2.so.2
${
fbxsdkdir
}
/lib/gcc/x64/release/libfbxsdk.so
else
# patch libfbxsdk.so because it is not linked against libxml2 and libz for some reason
echo
"Skipping installation of fbxsdk because "
$fbxsdkdir
" exists"
patchelf
--add-needed
libz.so.1
${
fbxsdkdir
}
/lib/gcc/x64/release/libfbxsdk.so
fi
patchelf
--add-needed
libxml2.so.2
${
fbxsdkdir
}
/lib/gcc/x64/release/libfbxsdk.so
# 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
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