Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:win32:msys2 [2025/01/18 12:39] – fix for .dll not generated giuspenhowtos:win32:msys2 [2025/02/01 17:04] (current) – use git clean -dfx as distclean may fail if there was no configure yet giuspen
Line 10: Line 10:
 ===== Initial Setup ===== ===== Initial Setup =====
  
-Download the installer from https://msys2.github.io/Choose the 32bit or 64bit version depending on your Windows version, +Download the installer from https://msys2.github.io/Only the 64bit version is currently available/supported.
-not whether you target a 32bit or 64bit compilation of Geany (this guide will always compile for 64bit).+
  
 Run the installer and follow the instructions. In the following we will assume that you installed the 64bit version to C:\mingw64. Run the installer and follow the instructions. In the following we will assume that you installed the 64bit version to C:\mingw64.
Line 47: Line 46:
 Make sure you have not installed both `gcc` and `mingw-w64-x86_64-gcc`, or you may get errors when building Geany. Make sure you have not installed both `gcc` and `mingw-w64-x86_64-gcc`, or you may get errors when building Geany.
  
-At last, you might want to add `C:\msys64\mingw64\bin` to your `PATH` environment variable, in order to run Geany from the Windows Explorer.+At last, you might want to add `C:\geany\bin` to your `PATH` environment variable, in order to run Geany from the Windows Explorer.
  
 In case you want also compile the combined Geany-Plugins collection, you need the following dependencies: In case you want also compile the combined Geany-Plugins collection, you need the following dependencies:
Line 62: Line 61:
 You can either clone the source code from the GIT repository or download a release tarball and unpack it. You can either clone the source code from the GIT repository or download a release tarball and unpack it.
  
-    cd +    mkdir ~/git 
-    curl -L -o geany-master.zip https://github.com/geany/geany/archive/master.zip +    cd ~/git 
-    unzip geany-master.zip +    git clone https://github.com/geany/geany.git 
-    cd geany-master+    cd geany
     # autogen.sh is not needed for release tarballs!     # autogen.sh is not needed for release tarballs!
     NOCONFIGURE=1 ./autogen.sh     NOCONFIGURE=1 ./autogen.sh
Line 82: Line 81:
 You can either clone the source code from the GIT repository or download a release tarball and unpack it. You can either clone the source code from the GIT repository or download a release tarball and unpack it.
  
-    cd +    cd ~/git 
-    curl -L -o geany-plugins-master.zip https://github.com/geany/geany-plugins/archive/master.zip +    git clone https://github.com/geany/geany-plugins.git 
-    unzip geany-plugins-master.zip +    cd geany-plugins
-    cd geany-plugins-master+
     # autogen.sh is not needed for release tarballs!     # autogen.sh is not needed for release tarballs!
     NOCONFIGURE=1 ./autogen.sh     NOCONFIGURE=1 ./autogen.sh
Line 116: Line 114:
     mkdir -p ~/geany_build/bundle/geany-gtk     mkdir -p ~/geany_build/bundle/geany-gtk
     cd ~/geany_build/bundle/geany-gtk     cd ~/geany_build/bundle/geany-gtk
-    bash ~/geany-master/scripts/gtk-bundle-from-msys2.sh -3+    bash ~/git/geany/scripts/gtk-bundle-from-msys2.sh -3
  
 There are a few command line options for this script. Run it with "-h" for details. There are a few command line options for this script. Run it with "-h" for details.
Line 129: Line 127:
     mkdir -p ~/geany_build/bundle/geany-plugins-dependencies     mkdir -p ~/geany_build/bundle/geany-plugins-dependencies
     cd ~/geany_build/bundle/geany-plugins-dependencies     cd ~/geany_build/bundle/geany-plugins-dependencies
-    bash ~/geany-plugins-master/build/gtk-bundle-from-msys2.sh -3+    bash ~/git/geany-plugins/build/gtk-bundle-from-msys2.sh -3
  
 ===== Creating an installer / Making a release ===== ===== Creating an installer / Making a release =====
Line 144: Line 142:
  
     DESTINATON=$HOME/geany_build     DESTINATON=$HOME/geany_build
-    VERSION="1.39+    VERSION="2.1
-    cd ~/geany-master +    cd ~/git/geany 
-    make distclean +    git clean -dfx 
-    ./autogen.sh+    NOCONFIGURE=1 ./autogen.sh 
 +    export lt_cv_deplibs_check_method=${lt_cv_deplibs_check_method='pass_all'}
     mkdir _build     mkdir _build
     cd _build     cd _build
     ../configure --prefix=${DESTINATON}/build/geany --disable-silent-rules     ../configure --prefix=${DESTINATON}/build/geany --disable-silent-rules
-    make -j 2+    make -j
     make install     make install
     rm -rf $DESTINATON/release/geany-orig     rm -rf $DESTINATON/release/geany-orig
 +    mkdir -p $DESTINATON/release/geany-orig
     rsync -a --delete ${DESTINATON}/build/geany/ $DESTINATON/release/geany-orig     rsync -a --delete ${DESTINATON}/build/geany/ $DESTINATON/release/geany-orig
  
Line 181: Line 181:
  
     DESTINATON=$HOME/geany_build     DESTINATON=$HOME/geany_build
-    VERSION="1.39+    VERSION="2.1
-    cd ~/geany-plugins-master +    cd ~/git/geany-plugins 
-    make distclean +    git clean -dfx 
-    ./autogen.sh+    NOCONFIGURE=1 ./autogen.sh 
 +    export lt_cv_deplibs_check_method=${lt_cv_deplibs_check_method='pass_all'}
     mkdir _build     mkdir _build
     cd _build     cd _build
     ../configure --prefix=${DESTINATON}/build/geany --with-geany-libdir=${DESTINATON}/build/geany/lib --disable-silent-rules     ../configure --prefix=${DESTINATON}/build/geany --with-geany-libdir=${DESTINATON}/build/geany/lib --disable-silent-rules
-    make -j 2+    make -j
     make DESTDIR=${DESTINATON}/build/geany-plugins install     make DESTDIR=${DESTINATON}/build/geany-plugins install
 +    rm -rf $DESTINATON/release/geany-plugins-orig
 +    mkdir -p $DESTINATON/release/geany-plugins-orig
     rsync -a --delete ${DESTINATON}/build/geany-plugins/${DESTINATON}/build/geany/ $DESTINATON/release/geany-plugins-orig     rsync -a --delete ${DESTINATON}/build/geany-plugins/${DESTINATON}/build/geany/ $DESTINATON/release/geany-plugins-orig
  
Print/export