@@ -25,7 +25,7 @@ yum install -y fontconfig-devel libjpeg-turbo-devel libpng-devel \
2525 libuuid-devel librsvg2-devel \
2626 libX11-devel mesa-libEGL-devel mesa-libGLES-devel \
2727 wayland-devel wayland-protocols-devel \
28- harfbuzz brotli-devel
28+ harfbuzz brotli-devel, gperf
2929
3030# GLFW
3131if [[ " $BUILD_GLFW " == " 1" ]]; then
@@ -108,34 +108,33 @@ if [[ "$BUILD_FREETYPE" == "1" ]]; then
108108 ./configure --prefix=/usr/local \
109109 --enable-static \
110110 --enable-shared \
111- --with-freetype-config=/usr/local/bin/freetype-config \
112111 FREETYPE_CFLAGS=" $FREETYPE_CFLAGS " \
113112 FREETYPE_LIBS=" $FREETYPE_LIBS "
114113
115114 make -j3 && make install
116115
117- # Verify fontconfig is using our FreeType
118- echo " fontconfig dependencies:"
119- ldd /usr/local/lib/libfontconfig.so | grep freetype || echo " No freetype dependency found"
120-
121- cd ../
122-
123- # Step 3: Update system library paths to prefer our versions
124- echo " Setting up library paths..."
125-
126- # Create symlinks so the system finds our libraries first
127- ln -sf /usr/local/lib/libfreetype.so.6 /usr/lib64/libfreetype.so.6 || true
128- ln -sf /usr/local/lib/libfreetype.so /usr/lib64/libfreetype.so || true
129- ln -sf /usr/local/lib/libfontconfig.so.1 /usr/lib64/libfontconfig.so.1 || true
130- ln -sf /usr/local/lib/libfontconfig.so /usr/lib64/libfontconfig.so || true
131-
132- # Update ld cache
133- echo " /usr/local/lib" > /etc/ld.so.conf.d/custom-libs.conf
134- ldconfig
135-
136- # Set build environment
137- export PKG_CONFIG_PATH=" /usr/local/lib/pkgconfig:$PKG_CONFIG_PATH "
138- export LD_LIBRARY_PATH=" /usr/local/lib:$LD_LIBRARY_PATH "
116+ # # Verify fontconfig is using our FreeType
117+ # echo "fontconfig dependencies:"
118+ # ldd /usr/local/lib/libfontconfig.so | grep freetype || echo "No freetype dependency found"
119+ #
120+ # cd ../
121+ #
122+ # # Step 3: Update system library paths to prefer our versions
123+ # echo "Setting up library paths..."
124+ #
125+ # # Create symlinks so the system finds our libraries first
126+ # ln -sf /usr/local/lib/libfreetype.so.6 /usr/lib64/libfreetype.so.6 || true
127+ # ln -sf /usr/local/lib/libfreetype.so /usr/lib64/libfreetype.so || true
128+ # ln -sf /usr/local/lib/libfontconfig.so.1 /usr/lib64/libfontconfig.so.1 || true
129+ # ln -sf /usr/local/lib/libfontconfig.so /usr/lib64/libfontconfig.so || true
130+ #
131+ # # Update ld cache
132+ # echo "/usr/local/lib" > /etc/ld.so.conf.d/custom-libs.conf
133+ # ldconfig
134+ #
135+ # # Set build environment
136+ # export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
137+ # export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
139138
140139else
141140 yum install -y freetype-devel
@@ -160,15 +159,15 @@ ls -lh ./gwplot
160159
161160echo " === DEBUGGING LIBGW SYMBOLS ==="
162161echo " Checking if FT_Get_Color_Glyph_Layer is in libgw:"
163- nm -D libgw/libgw.so | grep FT_Get_Color_Glyph_Layer || echo " Symbol NOT found in libgw"
162+ nm -D gw/ libgw/libgw.so | grep FT_Get_Color_Glyph_Layer || echo " Symbol NOT found in libgw"
164163
165164echo " All FreeType symbols in libgw:"
166- nm -D libgw/libgw.so | grep " ^[0-9a-f]* [TW] FT_" | head -10 || echo " No FreeType symbols found"
165+ nm -D gw/ libgw/libgw.so | grep " ^[0-9a-f]* [TW] FT_" | head -10 || echo " No FreeType symbols found"
167166
168167echo " libgw dependencies:"
169- ldd libgw/libgw.so | grep freetype || echo " No freetype dependency"
168+ ldd gw/ libgw/libgw.so | grep freetype || echo " No freetype dependency"
170169
171170echo " fontconfig dependency:"
172- ldd libgw/libgw.so | grep fontconfig || echo " No fontconfig dependency"
171+ ldd gw/ libgw/libgw.so | grep fontconfig || echo " No fontconfig dependency"
173172
174173echo " MANYLINUX-DEPS DONE"
0 commit comments