It is currently Mon Aug 24, 2026 2:27 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Resynthesizer now works in GIMP 3 RC2
PostPosted: Fri Jan 24, 2025 6:56 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2013
https://github.com/bootchk/resynthesize ... nthesizer3

It has to be compiled with meson

meson prefix=/usr/local/
meson setup --buildtype=release build && ninja -C build


meson _build
ninja -C _build install


Attachment:
2025-01-24_18-51.png
2025-01-24_18-51.png [ 398.99 KiB | Viewed 10137 times ]


Attachment:
pasted_image004.png
pasted_image004.png [ 2.63 MiB | Viewed 10137 times ]


It doesn't look too good in this image but at least it works.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Resynthesizer now works in GIMP 3 RC2
PostPosted: Fri Jan 24, 2025 9:26 pm  (#2) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16167
No meson.build files for lib or main directory.
I tried autogen.sh and that produced a configure file. Ran configure and it went fine. But it still will not make. There were too many errors.

This was an attempted build for Windows. Using MySYS.

Is there a src that contains the meson.build files? I couldn't find one. I also tried to add each of the meson.build files from each folder and still got errors.

Rod@Rods MINGW64 ~
$ make
make  all-recursive
make[1]: Entering directory '/home/Rod'
Making all in lib
make[2]: Entering directory '/home/Rod/lib'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/Rod/lib'
Making all in src
make[2]: Entering directory '/home/Rod/src'
Making all in resynthesizer
make[3]: Entering directory '/home/Rod/src/resynthesizer'
gcc  -g -O2 -Wall   -o resynthesizer.exe resynthesizer-resynthesizer.o -lgimpui-2.0 -lgimpwidgets-2.0 -lgimpmodule-2.0 -lgimp-2.0 -lgimpmath-2.0 -lgimpconfig-2.0 -lgimpcolor-2.0 -lgimpbase-2.0 -lgegl-0.4 -lgegl-npd-0.4 -lgmodule-2.0 -ljson-glib-1.0 -lbabl-0.1 -lgtk-win32-2.0 -lgdk-win32-2.0 -limm32 -lshell32 -lole32 -Wl,-luuid -lpangowin32-1.0 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lgdi32 -lmsimg32 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl ../../lib/libresynthesizer.a -lm -lgthread-2.0 -lgthread-2.0
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `targetPointsToSortArray':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/brushfire.h:131:(.text+
0x20c): undefined reference to `__imp_g_array_sized_new'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `prepare_max_cartesian_along_ra
y':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/brushfire.h:83:(.text+0
x2b1): undefined reference to `__imp_g_array_append_vals'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `new_neighbor':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/synthesize.h:170:(.text
+0x483): undefined reference to `__imp_g_mutex_lock'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: C:/Users/Rod/Desktop/resynthesizer
-2.0.3/lib/synthesize.h:177:(.text+0x527): undefined reference to `_
_imp_g_mutex_unlock'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: C:/Users/Rod/Desktop/resynthesizer
-2.0.3/lib/synthesize.h:170:(.text+0x8c7): undefined reference to `_
_imp_g_mutex_lock'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `randomCorpusPoint':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/engine.c:441:(.text+0xa
70): undefined reference to `__imp_g_rand_int_range'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `synthesize':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/synthesize.h:628:(.text
+0xc31): undefined reference to `__imp_g_mutex_lock'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `randomCorpusPoint':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/engine.c:441:(.text+0xe
88): undefined reference to `__imp_g_rand_int_range'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `randomizeBandsTargetPoints':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/orderTarget.h:66:(.text
+0xfc9): undefined reference to `__imp_g_rand_int_range'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `orderTargetPointsRandomBrushfi
re':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/orderTarget.h:196:(.tex
t+0x1329): undefined reference to `__imp_g_array_sort'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `targetPointsFromSortArray':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/brushfire.h:162:(.text+
0x135e): undefined reference to `__imp_g_array_free'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `orderTargetPointsRandomDirecti
onal':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/orderTarget.h:174:(.tex
t+0x141e): undefined reference to `__imp_g_array_sort'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `free_map':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/mapOps.h:38:(.text+0x14
83): undefined reference to `__imp_g_array_free'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `new_pixmap':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/mapOps.h:61:(.text+0x14
c6): undefined reference to `__imp_g_array_sized_new'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `new_intmap':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/mapOps.h:76:(.text+0x15
0b): undefined reference to `__imp_g_array_sized_new'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `new_coordmap':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/mapOps.h:90:(.text+0x15
4b): undefined reference to `__imp_g_array_sized_new'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `new_pixmap':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/mapOps.h:61:(.text+0x15
8b): undefined reference to `__imp_g_array_sized_new'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `orderTargetPointsRandom':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/orderTarget.h:42:(.text
+0x1867): undefined reference to `__imp_g_rand_int_range'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `orderTargetPointsRandomSqueeze
':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/orderTarget.h:226:(.tex
t+0x19ad): undefined reference to `__imp_g_array_sort'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: C:/Users/Rod/Desktop/resynthesizer
-2.0.3/lib/orderTarget.h:229:(.text+0x19c4): undefined reference to
`__imp_g_array_sized_new'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `targetPointsFromSortArray':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/brushfire.h:162:(.text+
0x1a9f): undefined reference to `__imp_g_array_free'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `prepareCorpusPoints':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/engine.c:408:(.text+0x1
b7e): undefined reference to `__imp_g_array_sized_new'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: C:/Users/Rod/Desktop/resynthesizer
-2.0.3/lib/engine.c:426:(.text+0x1b9b): undefined reference to `__im
p_g_array_append_vals'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `prepareTargetPoints':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/engine.c:360:(.text+0x1
d05): undefined reference to `__imp_g_array_sized_new'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: C:/Users/Rod/Desktop/resynthesizer
-2.0.3/lib/engine.c:389:(.text+0x1d83): undefined reference to `__im
p_g_array_append_vals'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `prepareSortedOffsets':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/engine.c:483:(.text+0x1
fb2): undefined reference to `__imp_g_array_append_vals'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: C:/Users/Rod/Desktop/resynthesizer
-2.0.3/lib/engine.c:491:(.text+0x207f): undefined reference to `__im
p_g_array_sort'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `engine':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/engine.c:643:(.text+0x2
1ad): undefined reference to `__imp_g_rand_new_with_seed'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `refiner':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/refinerThreaded.h:294:(
.text+0x22a8): undefined reference to `__imp_g_mutex_init'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `startThread':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/refinerThreaded.h:241:(
.text+0x24be): undefined reference to `__imp_g_thread_try_new'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `refiner':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/refinerThreaded.h:348:(
.text+0x2519): undefined reference to `__imp_g_thread_join'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `free_map':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/mapOps.h:38:(.text+0x25
68): undefined reference to `__imp_g_array_free'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-engine.o): in function `engine':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/engine.c:686:(.text+0x2
5ec): undefined reference to `__imp_g_rand_free'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: C:/Users/Rod/Desktop/resynthesizer
-2.0.3/lib/engine.c:622:(.text+0x267e): undefined reference to `__im
p_g_array_free'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: C:/Users/Rod/Desktop/resynthesizer
-2.0.3/lib/engine.c:607:(.text+0x26e7): undefined reference to `__im
p_g_array_free'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: ../../lib/libresynthesizer.a(libre
synthesizer_a-progress.o): in function `deepProgressCallbackThreaded
':
C:/Users/Rod/Desktop/resynthesizer-2.0.3/lib/progress.c:107:(.text0
x146): undefined reference to `__imp_g_mutex_lock'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../
../x86_64-w64-mingw32/bin/ld.exe: C:/Users/Rod/Desktop/resynthesizer
-2.0.3/lib/progress.c:116:(.text+0x164): undefined reference to `__i
mp_g_mutex_unlock'
collect2.exe: error: ld returned 1 exit status
make[3]: *** [Makefile:318: resynthesizer.exe] Error 1
make[3]: Leaving directory '/home/Rod/src/resynthesizer'
make[2]: *** [Makefile:279: all-recursive] Error 1
make[2]: Leaving directory '/home/Rod/src'
make[1]: *** [Makefile:329: all-recursive] Error 1
make[1]: Leaving directory '/home/Rod'
make: *** [Makefile:269: all] Error 2


_________________
Image


Top
 Post subject: Re: Resynthesizer now works in GIMP 3 RC2
PostPosted: Fri Jan 24, 2025 9:35 pm  (#3) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16167
Is it possible that you could compile for Windows users?
Thanks.

_________________
Image


Top
 Post subject: Re: Resynthesizer now works in GIMP 3 RC2
PostPosted: Sat Jan 25, 2025 5:18 am  (#4) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2613
Love it ;)

kubuntu 24.04 / Gimp 3.0 RC2 (from PPA)

https://i.imgur.com/VHOFdDA.mp4


Top
 Post subject: Re: Resynthesizer now works in GIMP 3 RC2
PostPosted: Sun Jan 26, 2025 4:29 am  (#5) 
Offline
GimpChat Member

Joined: Sep 01, 2024
Posts: 9
Location: Alabama
rich2005 wrote:
Love it ;)


Rich, for someone that couldn't build a straw house, much less a meson build, how would you suggest to be able to obtain the resynthesizer plugin. I have the resynthesizer3. zip file and that is as far as I can progress. I took just the .scm files from the "outer plugins" folder and put them in the Gimp 3.0 scripts folder and, of course, that didn't work.

Gimp 3.0 RC2 (AppImage) - Linux Mint 22.1


Top
 Post subject: Re: Resynthesizer now works in GIMP 3 RC2
PostPosted: Sun Jan 26, 2025 7:13 am  (#6) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2613
I did not attach the plugin(s) - meant for Gimp 3.0 RC2 from https://launchpad.net/~mati75/+archive/ubuntu/gimp30 Not really for an appimage. If your appimage is from gimp.org (which is now publishing them) the plugin does not work. However if you get the ivan-hc appimage from:
https://github.com/ivan-hc/GIMP-appimage/releases
look for the section:
Continuous Developer builds (JuNest Arch Linux-based AppImages) Pre-release
and download:
GNU-Image-Manipulation-Program_DEV_3.0.0rc2-1-archimage3.5-x86_64.AppImage

There is a good chance that the plugin(s) work. Attached, unzip and put the 4 folders in ~/.config/GIMP/3.0/plug-ins/ Note: the scm files are plugins and are executable.

I do not have a Mint 22 but this in an old Mint 20 VM.

Attachment:
mint.jpg
mint.jpg [ 143.04 KiB | Viewed 9948 times ]


best of luck


Attachments:
resynth-gimp3.zip [77.12 KiB]
Downloaded 631 times
Top
 Post subject: Re: Resynthesizer now works in GIMP 3 RC2
PostPosted: Sun Jan 26, 2025 7:09 pm  (#7) 
Offline
GimpChat Member

Joined: Sep 01, 2024
Posts: 9
Location: Alabama
Rich, you are a wizard. I did have the AppImage from the main Gimp site. I downloaded the one you suggested from Ivan HC and grabbed the zip file you provided and now resynthesizer works great.

Thanks for the detailed and precise instructions.


Top
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group