WrapEarnPass created an issue (geany/geany#4620)
I do not have access to a modern windows OS.
I have only been able to test my plugin contribs against Linux, or a packaged
Windows version of Geany.
I do have a wine10 environment that runs geany-2.1 from geany.org, geany from
msys2(mingw64) and geany from msys2(ucrt)
```
mingw64/mingw-w64-x86_64-geany 2.1-3 [installed]
Fast and lightweight IDE (mingw-w64)
mingw64/mingw-w64-x86_64-geany-plugins 2.1-5 [installed]
Plugins for Geany (mingw-w64)
ucrt64/mingw-w64-ucrt-x86_64-geany 2.1-3 [installed]
Fast and lightweight IDE (mingw-w64)
ucrt64/mingw-w64-ucrt-x86_64-geany-plugins 2.1-5 [installed]
Plugins for Geany (mingw-w64)
```
I would like to contribute to development, but I have been unable to make any
version of Geany compile locally without geany exiting as soon as I type in
Scintilla.
<img width="547" height="372" alt="Image"
src="https://github.com/user-attachments/assets/6b38b3b1-1640-4cdf-ba57-c15662769193"
/>
Exit. Not crash. Exit. 3.
Winedebug says the last app call was in libgeany-0.
Autogen/configure builds, and seems entirely normal until I try to type in
Scintilla.
Meson builds close immediately on launch.
Both mingw64 and ucrt64 do those things.
I have no idea what else to try. Suggestions, advice, or a good strong slap
requested.
My build process is checkout geany/2.1.0:
```
build@debian:~/Projects/geany/geany$ git status
HEAD detached at 2.1.0
nothing to commit, working tree clean
build@debian:~/Projects/geany/geany$ git log | head -n 1
commit cb5ff3cf0b63971010e60ea2feedd1a0181c1ace
```
and do the following:
```
_DEST=/home/build/geany-windows/ _SYSROOT="/usr/windows/ucrt64"
export CFLAGS="-O2"
export CXXFLAGS="-O2"
export CC=x86_64-w64-mingw32-gcc-posix
export CXX=x86_64-w64-mingw32-g++-posix
export LDFLAGS='-static-libgcc'
export PKG_CONFIG="/usr/bin/pkg-config --define-prefix --env-only"
export PKG_CONFIG_PATH="${_SYSROOT}/lib/pkgconfig:${_SYSROOT}/share/pkgconfig"
export ARCH="x86_64"
export MINGW_ARCH="mingw64"
export HOST="x86_64-w64-mingw32"
export WINEPREFIX="$HOME/.wine/win64"
export NOCONFIGURE=1
export lt_cv_deplibs_check_method='pass_all'
#export SYSROOT=${_SYSROOT}
cd ~/Projects/geany/geany
#build and install
./configure --build x86_64-pc-linux-gnu --host x86_64-w64-mingw32
--prefix=${_DEST}
make && make install-strip
#copy dependencies
mkdir -p ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libatk-1.0-0.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libbrotlicommon.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libbrotlidec.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libbz2-1.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libcairo-2.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libcairo-gobject-2.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libdatrie-1.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libdeflate.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libepoxy-0.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libexpat-1.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libffi-8.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libfontconfig-1.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libfreetype-6.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libfribidi-0.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libgcc_s_seh-1.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libgdk-3-0.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libgdk_pixbuf-2.0-0.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libgio-2.0-0.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libglib-2.0-0.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libgmodule-2.0-0.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libgobject-2.0-0.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libgraphite2.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libgtk-3-0.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libharfbuzz-0.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libiconv-2.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libintl-8.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libjbig-0.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libjpeg-8.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libLerc.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/liblzma-5.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libpango-1.0-0.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libpangocairo-1.0-0.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libpangoft2-1.0-0.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libpangowin32-1.0-0.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libpcre2-8-0.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libpixman-1-0.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libpng16-16.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libsharpyuv-0.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libstdc++-6.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/librsvg-2-2.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libthai-0.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libtiff-6.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libwebp-7.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libwinpthread-1.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libxml2-16.dll ${_DEST}/bin/
cp -pn ${_SYSROOT}/bin/libzstd.dll ${_DEST}/bin/
mkdir -p "${_DEST}/etc/fonts/"
cp -pnR ${_SYSROOT}/etc/fonts/. "${_DEST}/etc/fonts/"
mkdir -p "${_DEST}/etc/gtk-3.0/"
cp -pnR ${_SYSROOT}/etc/gtk-3.0/. "${_DEST}/etc/gtk-3.0/"
mkdir -p "${_DEST}/lib/gdk-pixbuf-2.0/"
cp -pnR ${_SYSROOT}/lib/gdk-pixbuf-2.0/. "${_DEST}/lib/gdk-pixbuf-2.0/"
mkdir -p "${_DEST}/share/fontconfig/"
cp -pnR ${_SYSROOT}/share/fontconfig/. "${_DEST}/share/fontconfig/"
mkdir -p "${_DEST}/share/glib-2.0/"
cp -pnR ${_SYSROOT}/share/glib-2.0/. "${_DEST}/share/glib-2.0/"
mkdir -p "${_DEST}/share/icons/"
cp -pnR ${_SYSROOT}/share/icons/. "${_DEST}/share/icons/"
mkdir -p "${_DEST}/share/libthai/"
cp -pnR ${_SYSROOT}/share/libthai/. "${_DEST}/share/libthai/"
mkdir -p "${_DEST}/share/locale/"
cp -pnR ${_SYSROOT}/share/locale/. "${_DEST}/share/locale/"
mkdir -p "${_DEST}/share/mime/"
cp -pnR ${_SYSROOT}/share/mime/. "${_DEST}/share/mime/"
mkdir -p "${_DEST}/share/themes/"
cp -pnR ${_SYSROOT}/share/themes/. "${_DEST}/share/themes/"
#fix perms
find ${_DEST} -type d ! -perm -go+rx -exec chmod go+rx {} \;
find ${_DEST} -type f ! -perm -go+r -exec chmod go+r {} \;
#only if the msys2 root or git has changed
#find ${_DEST} -type f -exec file --mime-type -e apptype -e compress -e elf -e
tar -e encoding {} \; |& grep 'text/' > files.log
#refresh all known files
grep 'text/' files.log | awk -F ':' '{print $1}' | xargs -I{} unix2dos {}
```
I then copy from my build root to my wine root.
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/4620
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/issues/[email protected]>