-
-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
win: patch from OSGeo4W applied #4121
base: main
Are you sure you want to change the base?
Changes from all commits
cc4e522
d904476
42ef646
3b2313f
fd270e0
907a884
daba1e6
feb3a5c
56dc8ef
b435503
a78f378
3d1af45
5c4bd6a
cb11b60
f9f9d52
ba31883
6e7532a
b4a86c4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ REM Uncomment if you want to use Bash instead of Cmd | |
REM Note that msys package must be also installed | ||
REM set GRASS_SH=%OSGEO4W_ROOT%\apps\msys\bin\sh.exe | ||
|
||
set PYTHONPATH=%OSGEO4W_ROOT%\apps\grass\grass@POSTFIX@\etc\python;%PYTHONPATH% | ||
set GRASS_COMPATIBILITY_TEST=0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what does this mean? |
||
set GRASS_PYTHON=%OSGEO4W_ROOT%\bin\python3.exe | ||
set GRASS_PROJSHARE=%OSGEO4W_ROOT%\share\proj | ||
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we document somewhere why and which DLL is needed to include in the winGRASS package? IIRC I was involved in a trial/error-way to check which of the DLLs we added finally back then. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,26 +108,17 @@ exec 3>&1 > >(tee mswindows/osgeo4w/package.log) 2>&1 | |
|
||
DLLS=" | ||
/mingw64/bin/libblas.dll | ||
/mingw64/bin/libbrotlicommon.dll | ||
/mingw64/bin/libbrotlidec.dll | ||
/mingw64/bin/libbz2-1.dll | ||
/mingw64/bin/libcairo-2.dll | ||
/mingw64/bin/libfftw3-3.dll | ||
/mingw64/bin/libfontconfig-1.dll | ||
/mingw64/bin/libfreetype-6.dll | ||
/mingw64/bin/libgcc_s_seh-1.dll | ||
/mingw64/bin/libgfortran-5.dll | ||
/mingw64/bin/libglib-2.0-0.dll | ||
/mingw64/bin/libgomp-1.dll | ||
/mingw64/bin/libgraphite2.dll | ||
/mingw64/bin/libharfbuzz-0.dll | ||
/mingw64/bin/libiconv-2.dll | ||
/mingw64/bin/libintl-8.dll | ||
/mingw64/bin/liblapack.dll | ||
/mingw64/bin/libpcre-1.dll | ||
/mingw64/bin/libpixman-1-0.dll | ||
/mingw64/bin/libpng16-16.dll | ||
/mingw64/bin/libomp.dll | ||
/mingw64/bin/libquadmath-0.dll | ||
/mingw64/bin/libreadline8.dll | ||
/mingw64/bin/libstdc++-6.dll | ||
/mingw64/bin/libsystre-0.dll | ||
/mingw64/bin/libtre-5.dll | ||
|
@@ -148,45 +139,46 @@ if ! [ -f mswindows/osgeo4w/configure-stamp ]; then | |
cp -uv $DLLS dist.x86_64-w64-mingw32/bin | ||
|
||
mkdir -p mswindows/osgeo4w/lib | ||
cp -uv $OSGEO4W_ROOT_MSYS/lib/libpq.lib mswindows/osgeo4w/lib/pq.lib | ||
cp -uv $OSGEO4W_ROOT_MSYS/lib/sqlite3_i.lib mswindows/osgeo4w/lib/sqlite3.lib | ||
|
||
|
||
log configure | ||
./configure \ | ||
--bindir=$OSGEO4W_ROOT_MSYS/bin \ | ||
--bindir=${OSGEO4W_ROOT_MSYS}/bin \ | ||
--enable-largefile \ | ||
--enable-shared \ | ||
--host=x86_64-w64-mingw32 \ | ||
--includedir=$OSGEO4W_ROOT_MSYS/include \ | ||
--libexecdir=$OSGEO4W_ROOT_MSYS/bin \ | ||
--prefix=$OSGEO4W_ROOT_MSYS/apps/grass \ | ||
--includedir=${OSGEO4W_ROOT_MSYS}/include \ | ||
--libexecdir=${OSGEO4W_ROOT_MSYS}/bin \ | ||
--prefix=${OSGEO4W_ROOT_MSYS}/apps/grass \ | ||
--with-blas \ | ||
--with-bzlib \ | ||
--with-cairo \ | ||
--with-cairo-includes=$OSGEO4W_ROOT_MSYS/include \ | ||
--with-cairo-ldflags="-L$PWD/mswindows/osgeo4w/lib -lcairo -lfontconfig" \ | ||
--with-cairo-includes=${OSGEO4W_ROOT_MSYS}/include \ | ||
--with-cairo-ldflags="-L$PWD/mswindows/osgeo4w/lib -lcairo" \ | ||
--with-cxx \ | ||
--with-fftw \ | ||
--with-freetype \ | ||
--with-freetype-includes=/mingw64/include/freetype2 \ | ||
--with-freetype-includes=${OSGEO4W_ROOT_MSYS}/include/freetype2 \ | ||
--with-gdal=$PWD/mswindows/osgeo4w/gdal-config \ | ||
--with-geos=$PWD/mswindows/osgeo4w/geos-config \ | ||
--with-includes=$OSGEO4W_ROOT_MSYS/include \ | ||
--with-includes=${OSGEO4W_ROOT_MSYS}/include \ | ||
--with-lapack \ | ||
--with-lapack-includes=/mingw64/include \ | ||
--with-liblas=$PWD/mswindows/osgeo4w/liblas-config \ | ||
--with-libs="$OSGEO4W_ROOT_MSYS/lib" \ | ||
--with-libpng=$PWD/mswindows/osgeo4w/libpng-config \ | ||
--with-libs="${OSGEO4W_ROOT_MSYS}/lib ${OSGEO4W_ROOT_MSYS}/bin" \ | ||
--with-netcdf=${OSGEO4W_ROOT_MSYS}/bin/nc-config \ | ||
--with-nls \ | ||
--with-odbc \ | ||
--with-opengl=windows \ | ||
--with-openmp \ | ||
--with-postgres \ | ||
--with-postgres-includes=$OSGEO4W_ROOT_MSYS/include \ | ||
--with-postgres-libs=$PWD/mswindows/osgeo4w/lib \ | ||
--with-proj-includes=$OSGEO4W_ROOT_MSYS/include \ | ||
--with-proj-libs=$OSGEO4W_ROOT_MSYS/lib \ | ||
--with-proj-share=$OSGEO4W_ROOT_MSYS/share/proj \ | ||
--with-postgres-includes=${OSGEO4W_ROOT_MSYS}/include \ | ||
--with-postgres-libs=${OSGEO4W_ROOT_MSYS}/lib \ | ||
--with-proj-includes=${OSGEO4W_ROOT_MSYS}/include \ | ||
--with-proj-libs=${OSGEO4W_ROOT_MSYS}/lib \ | ||
--with-proj-share=${OSGEO4W_ROOT_MSYS}/share/proj \ | ||
--with-regex \ | ||
--with-sqlite \ | ||
--with-sqlite-includes=$OSGEO4W_ROOT_MSYS/include \ | ||
|
@@ -248,7 +240,9 @@ if [ -n "$PACKAGE_PATCH" ]; then | |
|
||
# copy dependencies (TODO: to be reduced) | ||
cp -uv $DLLS apps/grass/grass$POSTFIX/bin | ||
cp -uv /mingw64/etc/fonts/fonts.conf apps/grass/grass$POSTFIX/etc | ||
|
||
# copy R batch files | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should be checked whether we include these files already in another way, e.g. in the NSIS installer- |
||
cp -uv $SRC/mswindows/external/rbatch/* apps/grass/grass$POSTFIX/bin | ||
|
||
# creating grass package | ||
/bin/tar -cjf $PDIR/grass$PACKAGE_POSTFIX-$VERSION-$PACKAGE_PATCH.tar.bz2 \ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@OPENMP_CFLAGS@ shouldn't be needed to be added to OPENMP_LIB (?!), OPENMP_CFLAGS should be added to Makefiles that need it (via EXTRA_CFLAGS).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just tested successfully locally without this change. There should be no need to add
OPENMP_CFLAGS
toOPENMP_LIB
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the contrary, I tried using the package.sh build on CI, more closer to OSGeo4W build, and I had some gomp errors: https://github.com/echoix/grass/actions/runs/10641753457/job/29503311365?pr=207#step:9:1864