Switch to full style
Ask all general Gimp related questions here
Post a reply

SOLVED - Help with compile env

Sun Jul 24, 2022 3:05 am

GIMP Version: 2.10.32
Operating System: Windows
OS Version: 64
GIMP Experience: Experienced User

List any relevant plug-ins or scripts:
Mingw64x86 env for compiling GEGL and Gimp 64 bit plug-ins.



Code:
Rod@Rods MINGW64 ~
$ meson setup --buildtype=release build

ERROR: Neither directory contains a build file meson.build.


Could it be the meson.build file was not installed?

Re: Help with compile env

Sun Jul 24, 2022 4:29 am

I don't know what you want to get, so in general:

Build steps:

1. Download the old installer:

https://repo.msys2.org/distrib/x86_64/

msys2-x86_64-20211130.exe 30-Nov-2021 19:34 98M

2. Follow the 2-7 steps described on this page https://www.msys2.org/

3. You run the console: mingw64.exe

4. You supplement the msys2 libraries with:

Code:
pacman --noconfirm -S base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-meson mingw-w64-x86_64-gegl
pacman -S mingw-w64-x86_64-gimp mingw-w64-x86_64-cmake


If there is no dependency, you will find them here:
https://packages.msys2.org/search

5. You copy the source files to c:\msys64\home\Your name

6. In the console you go inside the source (where the meson.build file is), e.g.:
cd GEGL_highpass_of_mean_curvature-main/GEGL_highpass_of_mean_curvature-main
(path must be without spaces and with backslashes, i.e. /)

7. Paste code:
Code:
meson setup --buildtype=release build
ninja -C build


8. Look for the dll file in the 'build' directory.

Re: Help with compile env

Sun Jul 24, 2022 4:43 am

Thx MareroQ for your quick response however i still have errors.

Code:
error: failed retrieving file 'mingw-w64-x86_64-gimp-2.10.30-2-any.pkg.tar.zst' from mirror.msys2.org : Resolving timed out after 10006 milliseconds
error: failed retrieving file 'mingw-w64-x86_64-ghostscript-9.53.3-2-any.pkg.tar.zst' from mirror.msys2.org : Connection time-out
error: failed retrieving file 'mingw-w64-x86_64-python2-2.7.18-4-any.pkg.tar.zst' from mirror.msys2.org : Connection time-out
warning: too many errors from mirror.msys2.org, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-x86_64-cmake-3.23.2-1-any.pkg.tar.zst' from mirror.msys2.org : Connection time-out
error: failed retrieving file 'mingw-w64-x86_64-gtk2-2.24.33-4-any.pkg.tar.zst' from mirror.msys2.org : Connection time-out

Re: Help with compile env

Sun Jul 24, 2022 5:03 am

There is a problem with the connection.
Tried it now and with no hassle:

Image

Re: Help with compile env

Sun Jul 24, 2022 5:26 am

Rod wrote:GIMP Version: 2.10.32
Operating System: Windows
OS Version: 64
GIMP Experience: Experienced User

List any relevant plug-ins or scripts:
Mingw64x86 env for compiling GEGL and Gimp 64 bit plug-ins.



Code:
Rod@Rods MINGW64 ~
$ meson setup --buildtype=release build

ERROR: Neither directory contains a build file meson.build.


Could it be the meson.build file was not installed?


What is your current directory? Assuming the Windows build is more or less like the Unix one, it should be that "gimp" directory and look like this:

Code:
gimp
├── acinclude.m4
├── app
├── app-tools
├── AUTHORS
├── authors4gimp-web.xsl
├── authors.dtd
├── authors.xml
├── authors.xsl
├── autogen.sh
├── _build    ### <- You may have do mkdir this one
├── build
├── ChangeLog.*
├── config.h.win32
├── configure.ac
├── COPYING
├── cursors
├── data
├── desktop
├── devel-docs
├── docs
├── etc
├── extensions
├── gimp.doap
├── gimp.kdev4
├── gimp.pc.in
├── gimpthumb.pc.in
├── gimpui.pc.in
├── gimp-zip.in
├── icons
├── INSTALL.in
├── libgimp
├── libgimpbase
├── libgimpcolor
├── libgimpconfig
├── libgimpmath
├── libgimpmodule
├── libgimpthumb
├── libgimpwidgets
├── LICENSE
├── m4macros
├── MAINTAINERS
├── Makefile.am
├── menus
├── meson.build  ### <----------- it's here
├── meson_dist_script.sh
├── meson.make
├── meson_options.txt
├── modules
├── NEWS
├── NEWS.*
├── pdb
├── plug-ins
├── po
├── po-libgimp
├── po-plug-ins
├── po-python
├── po-script-fu
├── po-tags
├── po-tips
├── po-windows-installer
├── README
├── README.i18n
├── themes
└── tools


I assume that you have also built recent versions of babl & gegl?

Re: Help with compile env

Sun Jul 24, 2022 5:28 am

MareroQ wrote:I don't know what you want to get, so in general:

Build steps:

1. Download the old installer:

https://repo.msys2.org/distrib/x86_64/

msys2-x86_64-20211130.exe 30-Nov-2021 19:34 98M

2. Follow the 2-7 steps described on this page https://www.msys2.org/

3. You run the console: mingw64.exe

4. You supplement the msys2 libraries with:

Code:
pacman --noconfirm -S base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-meson mingw-w64-x86_64-gegl
pacman -S mingw-w64-x86_64-gimp mingw-w64-x86_64-cmake


If there is no dependency, you will find them here:
https://packages.msys2.org/search

5. You copy the source files to c:\msys64\home\Your name

6. In the console you go inside the source (where the meson.build file is), e.g.:
cd GEGL_highpass_of_mean_curvature-main/GEGL_highpass_of_mean_curvature-main
(path must be without spaces and with backslashes, i.e. /)

7. Paste code:
Code:
meson setup --buildtype=release build
ninja -C build


8. Look for the dll file in the 'build' directory.


You are really building the GEGL filters one by one?

Re: Help with compile env

Sun Jul 24, 2022 6:00 am

MareroQ wrote:There is a problem with the connection.
Tried it now and with no hassle:

[ Image ]

Code:
Rod@Rods MINGW64 ~
$ pacman -S mingw-w64-x86_64-gimp mingw-w64-x86_64-cmake
warning: mingw-w64-x86_64-gimp-2.10.30-2 is up to date -- reinstalling
warning: mingw-w64-x86_64-cmake-3.23.2-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (2) mingw-w64-x86_64-cmake-3.23.2-1  mingw-w64-x86_64-gimp-2.10.30-2

Total Installed Size:  198.53 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n]


Looks like it was installed along with meson, ninja, and gegl but i do not see a meson.build file.

Re: Help with compile env

Sun Jul 24, 2022 6:06 am

ofnuts wrote:
Rod wrote:GIMP Version: 2.10.32
Operating System: Windows
OS Version: 64
GIMP Experience: Experienced User

List any relevant plug-ins or scripts:
Mingw64x86 env for compiling GEGL and Gimp 64 bit plug-ins.



Code:
Rod@Rods MINGW64 ~
$ meson setup --buildtype=release build

ERROR: Neither directory contains a build file meson.build.


Could it be the meson.build file was not installed?


What is your current directory? Assuming the Windows build is more or less like the Unix one, it should be that "gimp" directory and look like this:

Code:
gimp
├── acinclude.m4
├── app
├── app-tools
├── AUTHORS
├── authors4gimp-web.xsl
├── authors.dtd
├── authors.xml
├── authors.xsl
├── autogen.sh
├── _build    ### <- You may have do mkdir this one
├── build
├── ChangeLog.*
├── config.h.win32
├── configure.ac
├── COPYING
├── cursors
├── data
├── desktop
├── devel-docs
├── docs
├── etc
├── extensions
├── gimp.doap
├── gimp.kdev4
├── gimp.pc.in
├── gimpthumb.pc.in
├── gimpui.pc.in
├── gimp-zip.in
├── icons
├── INSTALL.in
├── libgimp
├── libgimpbase
├── libgimpcolor
├── libgimpconfig
├── libgimpmath
├── libgimpmodule
├── libgimpthumb
├── libgimpwidgets
├── LICENSE
├── m4macros
├── MAINTAINERS
├── Makefile.am
├── menus
├── meson.build  ### <----------- it's here
├── meson_dist_script.sh
├── meson.make
├── meson_options.txt
├── modules
├── NEWS
├── NEWS.*
├── pdb
├── plug-ins
├── po
├── po-libgimp
├── po-plug-ins
├── po-python
├── po-script-fu
├── po-tags
├── po-tips
├── po-windows-installer
├── README
├── README.i18n
├── themes
└── tools


I assume that you have also built recent versions of babl & gegl?

Yes i have compiled the entire Gimp program before. Been a while though. :)

I have two other compile environments that include the entire Gimp src, but neither will build gegl filters. Perhaps i will just update one of those.

Re: Help with compile env

Sun Jul 24, 2022 6:40 am

meson.build is the source file (point 6 ;) )

Image

Image

Re: Help with compile env

Sun Jul 24, 2022 7:29 am

MareroQ wrote:meson.build is the source file (point 6 ;) )

[ Image ]

[ Image ]


Ahh okay! Now i understand. Each GEGL filter src has it's own build file. :)
Thx!

Re: SOLVED - Help with compile env

Sun Jul 24, 2022 8:26 am

Successfully compiled a Windows 10 _64 bit Starfield.dll :)

Thx for all your help!

Re: SOLVED - Help with compile env

Sun Jul 24, 2022 8:51 am

Congratulations. :hi5
You remembered quickly. :yes

Re: SOLVED - Help with compile env

Mon Jul 25, 2022 3:56 am

MareroQ wrote:Congratulations. :hi5
You remembered quickly. :yes

It has always been my experience that if you love something, or someone it or they will always remain in your memory. :bigthup :hi5
Post a reply