Bonjour
Here 2 methods to compile the plug-in "Deskew" created by Karl Chen for Gimp 32-bit Win.
These two methods will work on the version of Gimp 64/32bits SourceForge, Partha 32bit, ...
You must use version 4 (or more) of the small environment.
Changes plugin by Alexandre Prokoudine :
- cleanup of the code, much less old template code
- autogen.sh patched by Steve Lessard to support automake 1.11
- Layer > Transform > Deskew (origine Filters > Misc > Deskew)
Download
https://github.com/prokoudine/gimp-desk ... master.zip in the directory
C:\petit-msys-mingw-gimp28Open the terminal by clicking on "
C:\petit-msys-mingw-gimp28\start_MSYS.bat"
*****
Windows 32-bit
Type the following lines of commands with "Enter" key at the end of each line :
cd /env
export CC=/w32/bin/mingw32-gcc.exe
export CXX=/w32/bin/mingw32-g++.exe
export CFLAGS="-I/w32/include -I/mingw/include -I/python/include -pipe -O3 -mms-bitfields -march=i686 -s"
export CXXFLAGS="-I/w32/include -I/mingw/include -I/python/include -pipe -O3 -mms-bitfields -march=i686 -s"
export LDFLAGS="-L/w32/lib -L/mingw/lib -mwindows -lpthread"
unzip gimp-deskew-plugin-master.zip
cd /env/gimp-deskew-plugin-master
./autogen.sh
make
exitThe plugin "
deskew.exe" is available in the directory "
C:\petit-msys-mingw-gimp28\gimp-deskew-plugin-master\src".
Copy the DLL "
C:\petit-msys-mingw-gimp28\compilers_win32\MinGW\bin\libstdc++-6.dll" in "
C:\petit-msys-mingw-gimp28\gimp-deskew-plugin-master\src"
Declare that directory "
C:\petit-msys-mingw-gimp28\gimp-deskew-plugin-master\src" in the preferences of Gimp 2.8
*****
Windows 64 bits
Type the following lines of commands with "Enter" key at the end of each line :
cd /env
export CC=/mingw/bin/i686-w64-mingw32-gcc.exe
export CXX=/mingw/bin/i686-w64-mingw32-c++.exe
export CFLAGS="-I/mingw/include -I/python/include -pipe -O3 -mms-bitfields -march=i686 -s"
export CXXFLAGS="-I/mingw/include -I/python/include -pipe -O3 -mms-bitfields -march=i686 -s"
export LDFLAGS="-L/mingw/lib -mwindows -lpthread"
unzip gimp-deskew-plugin-master.zip
cd /env/gimp-deskew-plugin-master
./autogen.sh
make
exitThe plugin "
deskew.exe" is available in the directory "
C:\petit-msys-mingw-gimp28\gimp-deskew-plugin-master\src".
Copy the DLL "
C:\petit-msys-mingw-gimp28\base\c\bin\libstdc++-6.dll" in "
C:\petit-msys-mingw-gimp28\gimp-deskew-plugin-master\src"
Declare that directory "
C:\petit-msys-mingw-gimp28\gimp-deskew-plugin-master\src" in the preferences of Gimp 2.8
*****