Skip to content

Commit a5142b9

Browse files
author
Henry Weller
committedJul 11, 2023
Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/ThirdParty-dev
2 parents de2e954 + 167de21 commit a5142b9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed
 

‎makeMesa

+9-9
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# Build script for mesa and offscreen mesa (osmesa)
3030
#
3131
#------------------------------------------------------------------------------
32-
mesaPACKAGE=mesa-20.3.5
32+
mesaPACKAGE=mesa-22.2.5
3333
offscreen=false
3434

3535
#------------------------------------------------------------------------------
@@ -111,18 +111,18 @@ prefixDIR=$installBASE/$mesaDIR
111111
options="\
112112
-Dprefix=$prefixDIR \
113113
-Dgallium-drivers=swrast \
114-
-Dllvm=true \
114+
-Dllvm=enabled \
115115
-Ddri-drivers=[] \
116116
-Dvulkan-drivers=[] \
117-
-Dgbm=false \
118-
-Degl=false"
117+
-Dgbm=disabled \
118+
-Degl=disabled"
119119
if ! $offscreen
120120
then
121-
options="$options \
122-
-Dglx=gallium-xlib"
121+
$WM_PROJECT_DIR/bin/tools/foamVersionCompare ${mesaPACKAGE#mesa-*} lt 22 \
122+
&& options="$options -Dglx=gallium-xlib" \
123+
|| options="$options -Dglx=xlib"
123124
else
124-
options="$options \
125-
-Dosmesa=gallium"
125+
options="$options -Dosmesa=gallium"
126126
fi
127127

128128
# Build mesa
@@ -168,7 +168,7 @@ Execute ParaView with mesa libraries by running:
168168
169169
Mesa_DIR=\$WM_THIRD_PARTY_DIR/platforms/\$WM_ARCH\$WM_COMPILER/$mesaDIR
170170
171-
LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$(echo \$Mesa_DIR/lib*) paraview
171+
LD_PRELOAD=\$(echo \$Mesa_DIR/lib*)/libGL.so paraview
172172
173173
USAGE
174174

0 commit comments

Comments
 (0)