resynthesizer icon indicating copy to clipboard operation
resynthesizer copied to clipboard

Building 3.0

Open graemev opened this issue 1 month ago • 1 comments

I've just switched to Debian forky , which comes with gimp 3.0.4

I cloned the repo and switched resynthesizer3 branch

git clone https://github.com/bootchk/resynthesizer.git

git switch resynthesizer3

But there does not seem to be anywhere near enough stuff there to build:

No autogen.sh , no ./configure ...not even a simple Makefile ...no INSTALL file to explain HOWTO

The readme.md points at :


https://travis-ci.org/bootchk/resynthesizer.svg?branch=master
https://travis-ci.org/bootchk/resynthesizer

Neither seem to exist.

Feels like I'm in the wrong place?

graemev avatar Nov 22 '25 16:11 graemev

OK,

I managed to build it. The main point is the README.md does not have the instructions they are in the WIKI (here) so you don't have them when you clone the repo. I'll add these bits as README file, but I suspect the author will want to change some thinks making them out of date. I'll paste here also so you get an idea:

The build is described in https://github.com/bootchk/resynthesizer/wiki/Build-Resynthesizer-from-source:

meson setup resynthesizerBuild
cd resynthesizerBuild
meson compile --verbose -j 12
meson install

You need to install the package "meson" and NOT "muon-meson" (the latter will remove critical files and stop "meson" working in this tree.

The file lib/meson.build:73:14: ERROR: File engineParams.c does not exist.

lib/meson.build

This is found in the master branch:

../resynthesizer-for-GIMP2/lib/engineParams.c

Also missing:

imageFormat.h passes.h

Also found in: matser branch:

../resynthesizer-for-GIMP2/lib/

Also missing:

mapIndex.h imageFormatIndicies.h

You guessed it also in master branch:

Also missing:

engine.h

...again in master

Also missing:

matchWeighting.h

again ... master

....left with 1 warning:

In file included from ../lib/engine.c:480:
../lib/passes.h:55:1: warning: ‘estimatePixelsToSynth’ defined but not used [-Wunused-function]
   55 | estimatePixelsToSynth(TRepetionParameters repetition_params)
      | ^~~~~~~~~~~~~~~~~~~~~

... and it's just an unused function, so that's OK.

Needed sudo to do install, it goes to /usr/local/lib/....

sudo meson install
[sudo] password for graeme: 
Dropping privileges to 'graeme' before running ninja...
ninja: Entering directory `~/src/Gimp_plugins/resynthesizer/resynthesizerBuild'
[1/1] Linking target enginePlugin/resynthesizer
Installing enginePlugin/resynthesizer to /usr/local/lib/x86_64-linux-gnu/gimp/3.0/plug-ins/resynthesizer
Installing ~/src/Gimp_plugins/resynthesizer/outerPlugins/plug-in-heal-selection.scm to /usr/local/lib/x86_64-linux-gnu/gimp/3.0/plug-ins/plug-in-heal-selection
Installing ~/src/Gimp_plugins/resynthesizer/outerPlugins/plug-in-heal-transparency.scm to /usr/local/lib/x86_64-linux-gnu/gimp/3.0/plug-ins/plug-in-heal-transparency
Installing ~/src/Gimp_plugins/resynthesizer/outerPlugins/plug-in-resynth-controls.scm to /usr/local/lib/x86_64-linux-gnu/gimp/3.0/plug-ins/plug-in-resynth-controls
Installing ~/src/Gimp_plugins/resynthesizer/outerPlugins/plug-in-map-style.scm to /usr/local/lib/x86_64-linux-gnu/gimp/3.0/plug-ins/plug-in-map-style
Installing ~/src/Gimp_plugins/resynthesizer/outerPlugins/plug-in-render-texture.scm to /usr/local/lib/x86_64-linux-gnu/gimp/3.0/plug-ins/plug-in-render-texture
Installing ~/src/Gimp_plugins/resynthesizer/outerPlugins/plug-in-uncrop.scm to /usr/local/lib/x86_64-linux-gnu/gimp/3.0/plug-ins/plug-in-uncrop
Installing ~/src/Gimp_plugins/resynthesizer/outerPlugins/plug-in-resynth-fill-pattern.scm to /usr/local/lib/x86_64-linux-gnu/gimp/3.0/plug-ins/plug-in-resynth-fill-pattern

...

start gimp3 , goto:

edit -> preferences -> folders -> plugins ...add /usr/local/lib/x86_64-linux-gnu/gimp/3.0/plug-ins/plug-in-resynth-fill-pattern to list

(maybe that should be just /usr/local/lib/x86_64-linux-gnu/gimp/3.0/plug-ins)

exit and restart gimp3 goto

filters -> Enhance -> Heal Selection
filters -> map -> resynthesizer

...watch some HOWTO videos...

README.gpv.txt

graemev avatar Nov 22 '25 17:11 graemev